Skip to content
View keyur140's full-sized avatar
💭
🏗
💭
🏗

Block or report keyur140

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
keyur140/README.md

KP26 Research Lab banner

Typing intro

ORCID X Email Profile views


🏛️ KP26 Research Lab

KP26 Research Lab is the umbrella for all of my research. Every project on this page is a KP26 Research Lab project. The lab is an independent research name: it is not a registered company and not part of Brunel University London.

Verified, not just trusted. Each study is preregistered on OSF, sealed with SHA-256 fingerprints, and reports its misses and null results in public.

📫 kp26.research.lab@gmail.com · 🆔 ORCID 0009-0008-5261-043X · 𝕏 @KP26_RESEARCH


👋 About me

name:        Keyur Shaileshkumar Patel   # KP26
role:        MSc Artificial Intelligence student, Brunel University London
background:  BSc Computer Science (Software Engineering) · 1-year placement as a full-stack developer
roots:       Sanatan Dharma · Satya (truth) and Ahimsa (non-harm)
lab:         KP26 Research Lab, London (independent)
focus:
  - LLM values, reasoning and human-AI teamwork
  - AI and the diversity of scientific ideas
  - Finding forgotten science with AI
  - Knowledge transfer from AI to learners
  - Early warning, music generation, driverless racing software
how_i_work:
  - Preregistered on OSF before confirmatory data are touched
  - Every file, prompt and run fingerprinted with SHA-256
  - Free data and open-weight models, often at USD 0
  - Known-answer gates, self-checks and synthetic validation built in
  - Null and negative results reported, never hidden

All studies are conducted independently and are not official Brunel University London projects.

🤖 Use of AI assistance. An AI assistant, Claude (by Anthropic), helped write and test the code, draft documents and check preregistrations against the code in every project, under my direction. The research ideas, study designs and every key decision are my own. I reviewed all outputs and take full responsibility for the work. Claude is a tool, not an author.


🕉️ The story behind KP26

My research starts from Sanatan Dharma. Satya (truth) and Ahimsa (non-harm) are how I work, not just ideas I agree with. An AI that makes things up or causes harm goes against both. That is why every KP26 project is built to be checked: plans fixed in advance on OSF, every file sealed with SHA-256, and every miss and null result published.

The same values led me to write the Universal Ethical Charter for AI. I then preregistered a test of it on OSF (osf.io/2thbc, 22 Oct 2026). The test asks whether giving the Charter to a language model as its instructions changes how it behaves, compared with no framework, generic text of the same length, and length-matched versions of the UNESCO Recommendation, the OECD AI Principles and Floridi and Cowls's five principles. It does not ask whether the Charter is morally right. The first exploratory run found no detectable effect on one strong model, and that result is reported.

The engineering comes from a BSc in Computer Science (Software Engineering) and a one-year placement as a full-stack developer. The MSc in Artificial Intelligence added the AI layer on top. So I write the ethics, design the statistical tests, and build the software that runs them, end to end.

KP26 is a side path I walk by choice, not out of need. I can always go back to farming or a regular job. That is Nishkama Karma: doing the work well without clinging to the reward.

"My work is driven by a deep foundation in ethics and Dharma, combined with a professional background in full-stack software engineering. I don't just study AI; I build it."


🔬 Research at a glance

9 OSF preregistrations 9 public research repos 2 registered results Open-weight models SHA-256 locked

flowchart LR
    A["💡 Idea"] --> B["🧪 Synthetic validation<br/>known-answer worlds"]
    B --> C["🔍 Exploratory pilot<br/>disclosed, held out"]
    C --> D["🔒 SHA-256 freeze"]
    D --> E["📝 OSF preregistration"]
    E --> F["✅ Confirmatory run"]
    F --> G["📊 Report, hits AND misses"]
    style D fill:#e3edfb,stroke:#0072B2
    style E fill:#fde8dd,stroke:#E69F00
    style F fill:#d9f2ec,stroke:#00B894
Loading

🏆 Registered results

Project Registered result
🌾 EARLY-ACT KP26
Early warning of food price spikes worldwide
Stage A on hidden years (2020-01 to 2026-11): 11.3% less error than "no change" three months ahead over 516,400 forecasts in 81 countries; 80% ranges held the real price 80.9% of the time. H1a, H1b, H2, H3 supported; H4 (rainfall) not. Red warnings are weak: they came before 1.7% of spikes. OSF · Stage A files
🎻 KeyurTattva Orchestra
Structured prompt conditioning for AI music
Full run, 1,152 pieces: when the pipeline writes the score (MIDI route) 3 of 4 hypotheses supported, dynamics accuracy +0.92, dynamic range +22.2 dB. Prompt-only text-to-audio (MusicGen, Stable Audio) 0 of 4. Structure helps when you control the score; prompts alone do not carry it. OSF

🏛️ Benchmark & evaluation suite

Verified, not just trusted. Each project ships its own exam: fixed items, known answers and baselines anyone can re-run. Every number below is copied from the linked repository. Licences are in the table below.

Benchmark What it tests Size Key numbers so far Status
🔭 Discovery Horizon Can a time-frozen LLM pick the next real discovery? Scored as the lead time H50 1,012 puzzles (1880-1969), 806 locked, 4 fields Pilot on 70 models: none met the foresight rule (best talkie-1930, 0.545 on 22 items). Text-only guessers: best 0.295 vs chance 0.25 🔒 Preregistered
🗣️ Meaning Gate Does a model actually use a person's word-to-number dictionary? 40 known-answer games + 10 evidence games 2 of 6 open models pass the 90% line (gpt-oss-120b and Qwen 3.8 27B, 40/40) 🔒 Preregistered
🌱 Idea Diversity Index Is each field's idea diversity (Vendi score) narrowing? Every field on 6 preprint servers, 2018 onward No numbers until the confirmatory run. Pilot dose test null (β = +0.04 SD, 98,495 papers) 🔒 Preregistered
🌱 Assistant Idea-Diversity Benchmark Do AI assistants offer narrow research ideas, and can a "diversity charter" widen them? 300 questions × 3 models × 3 assistant styles × 5 proposals No numbers until the confirmatory run 🔒 Preregistered
😴 Wake-up back-test Can AI pick a "sleeping beauty" paper out of 1,000 before it woke? 1 real + 999 decoys per paper; 21 dev, 78 locked Hit@10: engine 8/21 = hybrid search 8/21, vs 1% by luck. MRR engine 0.254 vs hybrid 0.197 🧪 Exploratory
🧠 Logic × AI test kit Who catches an AI assistant's planted errors? 80 solver units, 4 difficulty levels, error planted on half the items Exactly scored by a logic engine, no judges. Logic score validated against FOLIO and LogiQA, with GSM8K and an MMLU knowledge control. Confirmatory run pending 🔒 Preregistered
🫀 ECG-age cue transfer Can a learner gain a skill from rules pulled out of an AI? PTB-XL, 610-ECG pilot test fold AI teacher 92.6% (AUROC 0.985); 6 plain rules 82.0%; placebo rules 46.6% 🔒 Preregistered
🕉️ Universal Ethical Charter test campaign Does giving an LLM the Charter as its instructions change how it behaves, and is any change due to the content rather than the length? 9 runs (Run 8 confirmatory, on held-out scenarios). Scenarios on truthfulness, honesty, harm and over-refusal, fairness, reciprocity, accountability and more. Compared with no framework, generic text, UNESCO, OECD, and Floridi and Cowls Exploratory Run 1: no detectable effect on one strong model (reported, not part of the confirmatory tests) 🔒 Preregistered
🌾 EARLY-ACT sealed forecasts Can sealed forecasts warn of food price spikes 1-12 months ahead? 516,400 forecasts, 81 countries (Stage A) 11.3% less error than "no change" at 3 months; 80% ranges held 80.9%. Red warnings came before only 1.7% of spikes ✅ Registered result
🌾 EARLY-ACT model ladder Which of 9 forecasting models beats "no change"? 9 models, from persistence to a conformal ensemble, on hidden years Best skill: boosted trees +11.9%; conformal ensemble +11.3% with the best-calibrated 80% ranges (80.9%) ✅ Registered result
🧪 Known-answer model gates Does each AI model pass a test with known answers before its scores count? Built into Wake-up Engine, Discovery Horizon, Meaning Translator, Logic × AI and ECG age Wake-up: 4 of 4 models passed (AUC 0.66-0.87). Discovery Horizon pilot: 45 of 68 models passed. Meaning Gate: 2 of 6 🧪 Pilot / exploratory
🎻 Orchestral request benchmark Does structured prompting help AI music follow a request? 48 requests, 1,152 pieces, 3 generators MIDI route 3/4 hypotheses supported; MusicGen and Stable Audio 0/4. Parser 48/48 ✅ Registered result
🏎️ fsai-open test suite Does driverless software obey every FS-AI 2026 rule and safety limit? 194 checks, 15 events, 4 inspections, 11 real-time runs 194/194 checks; 15/15 events and 4/4 inspections clean; cone detection on real LiDAR 75% vs 95% in simulation 🧪 Synthetic-validated
📊 Leaderboards (click to open)

Meaning Gate (pass line 90%, 40 games)

Model Access Correct of 40 Pass
gpt-oss-120b Groq API 40 ✅
Qwen 3.8 27B Groq API 40 ✅
Llama 3.1 8B local 35 ❌
Qwen3 8B local 32 ❌
OLMo 2 7B local 29 ❌
Gemma 3 12B local 25 ❌

Wake-up back-test (exploratory, 21 development papers, 1,000 candidates each)

Method Hit@10 MRR
Wake-up Engine 8 / 21 0.254
Hybrid search 8 / 21 0.197
Dense embeddings 6 / 21 0.203
BM25 keyword 3 / 21 0.112
Random 0 / 21 0.004

ECG age, pilot test fold (610 ECGs, under 40 vs 65 and over)

Method Accuracy AUROC
AI teacher (1D ResNet, raw ECG) 92.6% 0.985
Logistic regression, 18 measurements 88.4% 0.947
Surrogate on the 6 AI cues 86.2%
6 AI cue rules as a tally 82.0%
Placebo rules as a tally 46.6%

Discovery Horizon, text-only guessers (chance 0.25)

Guesser Accuracy
Surface classifier, 10-fold CV 0.295
Longest option 0.261
Shortest option 0.254
Longest words 0.254
Most puzzle words 0.239
Fewest puzzle words 0.198

EARLY-ACT model ladder, Stage A (3 months ahead; WIS lower is better; skill is the drop in WIS against persistence)

Model WIS Skill 80% coverage AUC
boosted trees (M4) 0.06016 +11.9% 75.3% 0.717
boosted trees, no rainfall 0.06020 +11.8% 75.4% 0.716
ensemble (M6) 0.06047 +11.4% 77.3% 0.708
conformal ensemble (M7, primary) 0.06056 +11.3% 80.9% 0.706
neural network (M5) 0.06099 +10.7% 76.3% 0.699
pooled ridge regression (M3) 0.06486 +5.0% 77.0% 0.642
persistence, "no change" (M0) 0.06828 0.0% 81.1% 0.566
drift climatology (M2) 0.06929 −1.5% 81.1% 0.536
seasonal naive (M1) 0.08876 −30.0% 71.2% 0.555

Wake-up Engine known-answer gate (exploratory, real sleeping beauties vs decoys; chance AUC 0.50)

Model Role AUC Passed
gpt-oss-20b judge 0.87 ✅
Qwen 3.8 27B engine 0.80 ✅
gpt-oss-120b judge 0.80 ✅
ALLaM 2 7B judge 0.66 ✅

Discovery Horizon pilot, closest to foresight (practice items; no model met the combined foresight rule)

Model Foresight accuracy Items Holm-adjusted p
talkie-1930 0.545 22 0.115
TypewriterLM-1913 base 0.52 25 0.131

Orchestral benchmark, FAD (lower is closer to real orchestral recordings)

Generator Plain Expert Pipeline
MIDI route 0.0984 0.0229
MusicGen 0.0279 0.0427 0.0268
Stable Audio Open 0.0236 0.0285 0.0105

🧪 Exploratory and pilot numbers are first signs, not findings. 🔒 Preregistered studies get their real answer from the locked confirmatory run.

⚙️ The core engines

The benchmarks are the exams. Underneath them, the public projects share a few reusable engines:

  • 📈 Spatial-temporal forecasting · EARLY-ACT KP26. Monthly food price forecasts for markets in about 90 countries, sealed with SHA-256 before the real prices exist, then scored in public. Inside: a 9-model ladder, conformal 80% ranges, a future-data guard and a safety cap.
  • 📚 Latent knowledge discovery · Wake-up Engine, Discovery Horizon. Finds forgotten "sleeping beauty" papers, and measures how far ahead a time-frozen model can see. Inside: the sleeping-beauty score, hybrid search with AI re-ranking, and the H50 horizon metric.
  • ⚖️ Semantic & logic audit · Monoculture Alarm, Logic × AI, Meaning Translator. Measures whether AI narrows ideas, who catches an AI's mistakes, and how humans and models read vague words. Inside: Vendi diversity with difference-in-differences, an exact logic engine with an independent SAT check, and the Meaning Gate.
  • 🕉️ Ethics as testable instructions · Universal Ethical Charter test campaign. Gives a model the Charter as its instructions and measures whether its behaviour changes, against UNESCO, OECD, and Floridi and Cowls. Inside: length-matched controls, a reciprocity-removed variant, a conflict protocol and a frozen held-out confirmatory run.
  • 🫀 AI-to-learner transfer · ECG age. Pulls an AI's strategy out as plain rules and tests whether learners can use them. Inside: five ResNet teachers, rules kept only when 3 of 5 agree, and scrambled-rule placebos.
  • 🛡️ Safety-critical verification · fsai-open. A rule-by-rule tested safety bridge and car emulator whose runs give byte-identical fingerprints. Inside: a CAN bridge, a VCU emulator, perception, SLAM, planning and an outside referee.
  • 🎻 Structured generation · KeyurTattva Orchestra. Turns a request into a score-like plan before any music is generated. Inside: an intent parser, an orchestrator, a conductor layer, a prompt compiler and a MIDI route.

They share one low-cost setup: free public data, open-weight models that can run on your own machine with Ollama, and often USD 0 in API costs.


🛡️ The KP26 method

Every study repository follows the same protocol:

  • Preregistered. Hypotheses and analysis plans are registered on OSF before the confirmatory data are touched.
  • Cryptographically sealed. Plans, code, prompts and run outputs are fingerprinted with SHA-256; EARLY-ACT and fsai-open also publish Merkle roots.
  • Known-answer gates. Where AI models are scored, a model must pass a test with known answers before its scores count.
  • Validated on fake worlds. Study pipelines must find a planted effect, and find nothing when there is none.
  • Honest by design. Null results, failures and deviations are logged in public (for example, EARLY-ACT's red warnings came before only 1.7% of spikes).
  • Open licences. Code under MIT or AGPL-3.0 (see the table below); data, documents and benchmarks under CC BY 4.0. Versions released under MIT stay MIT forever.

🚀 Featured projects

Can AI wake "sleeping beauty" papers before they wake on their own?

  • Exploratory back-test: hidden paper in top 10 of 1,000 for 8 of 21 (38%) vs 1% by luck
  • Engine ranked it higher than hybrid search (MRR 0.254 vs 0.197) but tied on top-10 hits (p = 0.75)
  • Forward-test usefulness: engine 3.10 vs random old papers 1.45

OSF cost self-checks

Does logical reasoning predict who gains most from an AI assistant?

  • 28 open-weight models × 3 reasoning modes = 80 solver units
  • Assistant plants one subtle error on half the hard items to test error-catching
  • Exact answer keys from a logic engine; 72-variant multiverse; 42 tests

OSF cost

Is AI quietly making all of science think alike?

  • Preprints from 6 servers, 2018-2026; Vendi score as "effective number of ideas"
  • Pilot (98,495 papers): dose test null, β = +0.04 SD (95% CI −0.06 to 0.14)
  • Simulation: 84% power for a planted effect of about 0.24 SD; prereg audit 75/75

OSF multiverse

How many years ahead can a time-frozen language model see?

  • Benchmark of 1,012 discovery puzzles (1880-1969), 806 sealed
  • Every item screened by two modern models over 9 rounds
  • Pilot of 70 models: no model met the foresight rule (best: talkie-1930, 0.545)

OSF audit

Measuring, predicting and fixing the private meanings of vague words.

  • "Probably not": people say about 20%, small open models 60-75%
  • Pairs of people disagree on probability words 76-80% of the time
  • Meaning Gate benchmark: gpt-oss-120b and Qwen 3.8 27B pass 40/40

OSF tests

Can a learner pick up a skill from cues pulled out of an AI?

  • AI teacher on raw 12-lead ECG: 92.6% accuracy, AUROC 0.985 (pilot)
  • Squeezed into 6 plain rules it still gets 82.0%; placebo rules 46.6%
  • Pilot: real cues beat scrambled (+6.6 pts) but not feedback-only practice

OSF audit

🏎️ fsai-open

Open, tested driverless software for the IMechE FS-AI ADS-DV car: CAN safety bridge, VCU emulator, perception, SLAM, planning and control for every FS-AI 2026 event.

  • 194 automatic checks passed, 0 failed · 15 of 15 simulated competition runs and 4 of 4 inspections clean, byte-identical on re-run
  • 11 of 11 real-time ROS 2 runs in Docker (trackdrive seed 3: 10 laps, 29.2-29.8 s, 0 cones hit)
  • Evidence level: synthetic-validated; not yet run on the real car

ROS 2 Docker

Results marked pilot or exploratory are first signs, not findings. Confirmatory runs follow the OSF registrations.


🛠️ Tech stack

Python PyTorch Hugging Face Ollama scikit-learn LightGBM
NumPy pandas SciPy statsmodels Matplotlib Gradio
ROS 2 Docker GitHub Actions pytest OSF OpenAlex

Open models used across studies: Llama · Qwen · Gemma · Mistral · OLMo · Phi · gpt-oss · MusicGen · Stable Audio Open · Whisper


📈 GitHub stats

GitHub stats Top languages

GitHub streak

Contribution activity graph


📜 Repositories & licences

Every public repository and the licence it carries, refreshed automatically every day from each repository's own LICENSE, NOTICE and COMMERCIAL files. AGPL-3.0 is still open source: anyone may use, study, change and share the code for free, as long as changed versions run as an online service share their source code too.

Repository What it is Code licence Documents & data Commercial option
🌱 monoculture-alarm Is widespread LLM use narrowing scientific idea diversity? Pre-registered computational studies on monoculture and anti-monoculture assistants. OSF DOI 10.17605/OSF.IO/WVUC7 AGPL-3.0-only · earlier MIT releases stay MIT (NOTICE) CC BY 4.0 ✅ COMMERCIAL.md
🌾 early-act-kp26 Open, pre-registered early-warning system for worldwide food-price spikes. Transparent and reproducible forecasting. AGPL-3.0-only · earlier MIT releases stay MIT (NOTICE) CC BY 4.0 ✅ COMMERCIAL.md
🗣️ meaning-translator Measuring, predicting and correcting private meanings of vague words. Pre-registered computational study. AGPL-3.0-only · earlier MIT releases stay MIT (NOTICE) CC BY 4.0 ✅ COMMERCIAL.md
🧠 logic-x-ai Preregistered computational study: does logical reasoning amplify who gains from AI help? 28 open-weight LLMs as solvers, planted AI errors, SHA-256 frozen. OSF DOI 10.17605/OSF.IO/6H89J AGPL-3.0-only CC BY 4.0 ✅ COMMERCIAL.md
🫀 ai-to-learner-ecg-age Can a learner model acquire a perceptual skill it never had using only plain-language cues from an AI teacher? ECG age classification. Pre-registered. OSF DOI 10.17605/OSF.IO/S8RDX AGPL-3.0-only · earlier MIT releases stay MIT (LICENSING) CC BY 4.0 ✅ COMMERCIAL.md
🎻 keyurtattva-orchestra KeyurTattva Orchestra: turns plain-language music requests into a score-like plan (form, sections, dynamics, instruments) for AI music generation. Code and results of a preregistered study (OSF DOI 10.17605/OSF.IO/AMBGF): 1,152 pieces, SHA-256 verified. MIT CC BY 4.0
🏎️ FS-AI-OPEN Open, tested driverless software for the IMechE FS-AI ADS-DV: CAN bridge, VCU emulator, full driving stack (perception, SLAM, planning, control) for every FS-AI 2026 event, simulator and fingerprinted results. MIT
🔭 discovery-horizon How far ahead can a time-frozen language model see? Pre-registered computational study on the temporal horizon of LLMs. MIT CC BY 4.0
😴 wakeup-engine Preregistered, $0, fully computational test of whether AI can find science's "sleeping beauties" before they wake up. OSF DOI 10.17605/OSF.IO/H948R MIT CC BY 4.0

Third-party data and model weights keep their own licences; see each repository. Commercial licences come from KP26 Research Lab, the author's personal research name (independent; not a registered company).


📚 Preregistrations

Study OSF
Wake-up Engine 10.17605/OSF.IO/H948R
Logic × AI 10.17605/OSF.IO/6H89J
The Monoculture Alarm 10.17605/OSF.IO/WVUC7
The Discovery Horizon 10.17605/OSF.IO/AEVJ8
The Meaning Translator 10.17605/OSF.IO/839BN
AI-to-learner: ECG age 10.17605/OSF.IO/S8RDX
EARLY-ACT KP26 10.17605/OSF.IO/8EYXK
KeyurTattva Orchestra 10.17605/OSF.IO/AMBGF
Universal Ethical Charter for AI: test campaign osf.io/2thbc

"Every run hashed. Every miss reported."
KP26 Research Lab · Keyur Patel · built with AI assistance from Claude (Anthropic)

footer

Pinned Loading

  1. wakeup-engine wakeup-engine Public

    Preregistered, $0, fully computational test of whether AI can find science's "sleeping beauties" before they wake up. OSF DOI 10.17605/OSF.IO/H948R

    Python

  2. logic-x-ai logic-x-ai Public

    Preregistered computational study: does logical reasoning amplify who gains from AI help? 28 open-weight LLMs as solvers, planted AI errors, SHA-256 frozen. OSF DOI 10.17605/OSF.IO/6H89J

    Python

  3. monoculture-alarm monoculture-alarm Public

    Is widespread LLM use narrowing scientific idea diversity? Pre-registered computational studies on monoculture and anti-monoculture assistants. OSF DOI 10.17605/OSF.IO/WVUC7

    HTML

  4. ai-to-learner-ecg-age ai-to-learner-ecg-age Public

    Can a learner model acquire a perceptual skill it never had using only plain-language cues from an AI teacher? ECG age classification. Pre-registered. OSF DOI 10.17605/OSF.IO/S8RDX

    Python

  5. FS-AI-OPEN FS-AI-OPEN Public

    Open, tested driverless software for the IMechE FS-AI ADS-DV: CAN bridge, VCU emulator, full driving stack (perception, SLAM, planning, control) for every FS-AI 2026 event, simulator and fingerprin…

    HTML

  6. early-act-kp26 early-act-kp26 Public

    Open, pre-registered early-warning system for worldwide food-price spikes. Transparent and reproducible forecasting.

    Python