GALENOSAPOSTOLUS

In Silico · system structure

Clinical Decision Support Software Architecture

Two engines that assist a clinician without deciding for them: adaptive difficulty control for cognitive training, and dementia risk stratification from MRI and speech.

2unitsN1 · N2
16componentsin hand-off order below
4/4audit gates passedcog16
2projectsN1 · N2

What this work is

Design specifications and a standard-library Python reference harness for two pieces of dementia software. Unit N1 sets the difficulty of each cognitive-training trial for a patient; it makes no clinical judgement and flags patients whose ability falls outside the difficulty range for clinician review. Unit N2 turns already-extracted brain MRI and speech features into a research-use risk stratification score that assists a clinician's reading; no output state is a diagnosis and every state assumes clinician review.

Scope Both units run only on synthetic cohorts that the code generates from two frozen fixtures; no raw data or summary statistics from ADNI, OASIS-3 or DementiaBank are read. The results are therefore virtual metrics under the fixtures' assumptions: they show whether the pipeline behaves as designed, not real-cohort performance, and no clinical evaluation is included.

N1 · Synthetic harness · cog16

Adaptive cognitive-training difficulty control engine

Chooses the difficulty of each training trial so that a patient's success probability settles in a target band while runs of consecutive errors stay under a limit, and checks on a virtual cohort whether that policy converges. It changes difficulty only; it makes no diagnosis or medication judgement and claims no therapeutic effect.

  1. Virtual patient samplerFixture stratum parameters and a patient seed → One patient's fixed parameter set
  2. Virtual patient response generatorTask, difficulty lattice point, trial index → Scored result, log latency, timeout flag, true success probability
  3. State estimatorScored result, log latency, timeout flag, trial context → State mean and covariance, fatigue-regime probability
  4. Safe bandit control and state machineFilter estimates, task, trial index, current error run → State code and next difficulty lattice point, or a session halt
  5. Independent safety monitorPresented lattice point, returned state code, scored result → Violation count recorded in the evidence document
  6. Convergence judgePer-trial true success probabilities, scored results, session breaks → Per-patient verdict: converged, error-run limit kept
  7. Cohort Monte Carlo and gatesFrozen fixture and its seeds → N1 block of the evidence document
  8. Independent auditorEvidence document and the frozen fixtures → Audit document with gate status and hashes
ComponentWhat it doesInput → outputCode
Virtual patient samplerDraws one virtual patient's fixed parameters (abilities, knob sensitivities, fatigue, practice, latency) from the fixture's stratum settings with a seeded generator.Fixture stratum parameters and a patient seed → One patient's fixed parameter setcog16/t162.py:sample_patient
Virtual patient response generatorFor a presented difficulty level, simulates one trial with a multidimensional item-response model that includes practice, fatigue, time-of-day and latency terms.Task, difficulty lattice point, trial index → Scored result, log latency, timeout flag, true success probabilitycog16/t162.py:Env
State estimatorUpdates three filters from each observation: an extended Kalman filter for ability and knob sensitivity, a latency-baseline filter, and a two-state fatigue-regime filter.Scored result, log latency, timeout flag, trial context → State mean and covariance, fatigue-regime probabilitycog16/t162.py:Scheduler.observe
Safe bandit control and state machineAmong moves the slew limit allows, keeps lattice points whose pessimistic success probability clears the floor, minimises a tracking loss, and sets the machine state.Filter estimates, task, trial index, current error run → State code and next difficulty lattice point, or a session haltcog16/t162.py:Scheduler.act
Independent safety monitorInside the trial loop, checks every presented level against four invariants from the lattice points and scored results, without reading the scheduler's estimates.Presented lattice point, returned state code, scored result → Violation count recorded in the evidence documentcog16/t162.py:run_patient
Convergence judgeApplies the entry-and-hold definition to one patient's trajectory: settling time within the deadline, per-trial deviation, exposure, and the consecutive-error rate.Per-trial true success probabilities, scored results, session breaks → Per-patient verdict: converged, error-run limit keptcog16/t162.py:judge
Cohort Monte Carlo and gatesRuns the primary cohort, replicates, baseline policies, distribution-shift scenarios, fault injection and protocol cases, then aggregates rates, bounds and gate flags.Frozen fixture and its seeds → N1 block of the evidence documentcog16/t162.py:run_block
Independent auditorWithout importing the solver, re-aggregates per-patient rows, rechecks exact bounds in integer arithmetic, re-derives protocol-case verdicts, and decides four gates.Evidence document and the frozen fixtures → Audit document with gate status and hashescog16/audit.py:audit

Flow

  1. The runner loads the frozen fixture, checks its lock hash, and draws each virtual patient's fixed parameters from seeds derived from the fixture.
  2. At each trial the scheduler picks a difficulty lattice point for the current task from the allowed moves, inserts an unscored assisted trial, or halts the session.
  3. The monitor checks the chosen level against its invariants, and the response generator returns a scored result, a log latency and a timeout flag.
  4. The scheduler updates its ability, latency and fatigue-regime estimates from those three observations; it never reads the generator's internals.
  5. After the last session the judge applies the convergence and consecutive-error definitions, once to the true probability and once to the scheduler's own prediction.
  6. The cohort run aggregates patient verdicts into rates, exact binomial bounds and gate flags, and the runner writes them with a hash into one evidence document.
  7. The auditor recomputes the claimed figures from that document without the solver code and writes an audit document that passes or names the first failed gate.

What is guarded

Not built or not run

Result and documents

In a synthetic virtual cohort of 1,000 patients, 962 (96.2%) settled in the 0.70–0.80 success-probability band within 4 sessions, stayed there and kept consecutive errors under the limit. The one-sided 95% lower bound is 0.9505; the internal target is 0.95.

Synthetic inputs only (synthetic_only). These are virtual metrics on synthetic cohorts. No ADNI, OASIS-3 or DementiaBank data were read, no real cohort has been evaluated, clinical validity has not been assessed and no auditor has signed the result.

Measured values, limits and gates on the N1 record · Difficulty Control for Adaptive Cognitive Training

N1 design specification: adaptive difficulty control engine (KR) · N1 and N2 replay record (KR) · N1 and N2 cross-model review log (KR) (KR) · Audit record (JSON) · Run output (JSON)

N2 · Synthetic harness · cog16

Multi-site MRI and speech fusion risk stratification

Produces a research-use dementia risk stratification score from already-extracted brain MRI features and de-identified speech features collected at different sites and devices, to assist a clinician's reading. It never issues a standalone diagnosis, and every output state assumes clinician review.

  1. Synthetic cohort builderFixture cohort, unit-effect and split settings → Subject rows with features, covariates, unit and split
  2. Manifest alignment auditManifest entries for every split in use → Violation codes; any code stops the run
  3. Site and device harmonisationRaw features, covariates, acquisition unit; calibration rows → Unit-corrected standardised residuals (the model input)
  4. Missing-modality fusion networkCorrected MRI and/or speech residual vectors → One logit and the fused representation
  5. Probability calibrationValidation-split logits and labels → Temperature per modality pattern; calibrated probability
  6. Fail-safe output routerCheck flags, age, feature deviation, probability, pair lag → One output state code
  7. Cross-cohort evaluation and gatesSynthetic cohorts and fixture evaluation settings → N2 block of the evidence document with per-case scores
  8. Independent auditorEvidence document and the frozen fixtures → Audit document with gate status and hashes
ComponentWhat it doesInput → outputCode
Synthetic cohort builderGenerates the synthetic imaging, speech and paired cohorts with site and device effects from the fixture, and assigns every subject to one split.Fixture cohort, unit-effect and split settings → Subject rows with features, covariates, unit and splitcog16/t163.py:build_cohorts
Manifest alignment auditBefore fitting, checks the manifest of the splits in use for subjects shared across splits or sites, external units or sites in training, and mismatched pairs or masks.Manifest entries for every split in use → Violation codes; any code stops the runcog16/t163.py:audit_manifest
Site and device harmonisationFits a reference on cognitively normal training rows, converts features to covariate-adjusted residuals, and removes unit effects with shrunken ComBat estimates.Raw features, covariates, acquisition unit; calibration rows → Unit-corrected standardised residuals (the model input)cog16/t163.py:Harmonised
Missing-modality fusion networkEncodes each modality that is present, weights it with a gate that also sees the other modality, and sums the gated vectors into one logit. Trained with modality dropout.Corrected MRI and/or speech residual vectors → One logit and the fused representationcog16/t163.py:FusionNet
Probability calibrationFits one temperature per modality pattern on the internal validation split only. An evidential head on the frozen fused vector outputs a probability and an uncertainty.Validation-split logits and labels → Temperature per modality pattern; calibrated probabilitycog16/t163.py:fit_temperature
Fail-safe output routerAssigns each case one of five output states in a fixed order: reject input, hold for an uncalibrated unit, abstain outside support, flag for review, or assistive report.Check flags, age, feature deviation, probability, pair lag → One output state codecog16/t163.py:route
Cross-cohort evaluation and gatesTrains on one imaging cohort and evaluates on the other, both ways, with DeLong intervals, calibration error, matching, permutation and leak controls, then grades gates.Synthetic cohorts and fixture evaluation settings → N2 block of the evidence document with per-case scorescog16/t163.py:run_block
Independent auditorWithout importing the solver, recomputes each gate AUROC and DeLong interval from per-case scores by the all-pairs definition, and re-derives calibration error and gates.Evidence document and the frozen fixtures → Audit document with gate status and hashescog16/audit.py:audit

Flow

  1. The harness checks the fixture, runs known-answer checks on its own metric code, and generates the synthetic cohorts with each subject assigned to one split.
  2. Before fitting, it audits the manifest of the splits in use and stops if any violation code appears.
  3. Harmonisation fits its reference on cognitively normal training rows and outputs unit-corrected residuals; units unseen in training are corrected from calibration rows.
  4. The fusion network is trained on image-only rows, speech-only rows and label-matched pseudo-pairs, and a temperature is fitted on the validation split.
  5. External test cases are scored under three unit-correction modes, and the default-mode scores are routed case by case to an output state code.
  6. Evaluation adds controls (covariate-only model, matching, label permutation, injected manifest faults), and gates are graded only if the checks and controls pass.
  7. The auditor recomputes the gate figures from the per-case scores in the evidence document by a different method and writes the audit document.

What is guarded

Not built or not run

Result and documents

On synthetic multi-site cohorts, the external AUROC for separating controls from MCI or dementia was 0.932 (DeLong 95% lower bound 0.909) on 540 held-out cases in one direction and 0.926 (0.905) on 560 in the other, with harmonisation referenced to control cases. The internal target is 0.90.

Synthetic inputs only (synthetic_only). These are virtual metrics on synthetic cohorts. No ADNI, OASIS-3 or DementiaBank data were read, no real cohort has been evaluated, clinical validity has not been assessed and no auditor has signed the result.

Measured values, limits and gates on the N2 record · Dementia Risk Stratification from Brain MRI and Speech

N2 design specification: multi-site MRI and speech fusion (KR) · N1 and N2 replay record (KR) · N1 and N2 cross-model review log (KR) (KR) · Audit record (JSON) · Run output (JSON)

How to read this screen

This screen describes structure: the parts, the order work passes through them and what each run is checked against. It carries no measured value of its own. The figure in each result paragraph is filled from the audit file when the site is built, and every component names the code that does the work.

Analysis registry · Replay commands · Audit results

© 2026 RISCON Co., Ltd.Privacy PolicyTerms of UseCookie SettingsContact

RISCON Labsrisconlabs.com