Self-Calibrating Spike Inference for Calcium Imaging Across Alzheimer's Cell Models

Calcium imaging works on a simple trick: a genetically encoded fluorescent protein (a "calcium indicator") brightens when calcium floods into a cell, and since every action potential lets calcium into a neuron, a movie of brightness is a movie of firing. The newest indicator family, GCaMP8, finally crosses a long-standing threshold — it can detect single isolated spikes with over 80% reliability — but that number was established in exactly one setting: healthy mouse visual cortex, with ground truth from juxtacellular electrophysiology across 117 neurons Spike inference from calcium imaging data acquired with GCaMP8 indicators. Nobody has asked what happens when the cell itself is diseased. This matters because the same indicators are now being pointed at human Alzheimer's disease models, where the core pathology includes precisely the things that break indicator math: chronically elevated resting calcium, slowed mitochondrial calcium handling, and genotype-dependent drug responses. The field's answer to Alzheimer's heterogeneity so far has been entirely static — co-expression modules and polygenic risk scores from postmortem single-nucleus RNA sequencing, validated by qRT-PCR endpoints in induced pluripotent stem cell (hiPSC) astrocytes Brain Cell-based Genetic Subtyping and Drug Repositioning for Alzheimer Disease — while the live functional physiology that fails decades before plaques form goes unmeasured.

My claim is that the bottleneck in diseased human cell models is not the sensor but the operating point. Disease-relevant stressors shift resting calcium and endogenous buffering so that a deconvolution model calibrated on healthy tissue silently fails, and this failure can be repaired without new sensors by estimating, per cell and per recording, the cell's own baseline drift, decay time constant, and indicator non-linearity from its own trace. The proposal therefore builds a multi-line benchmark of GCaMP8 recordings across Alzheimer's-relevant human cell models with matched electrophysiological ground truth, develops a self-calibrating spike inference method, and uses it to re-run the genotype-specific drug tests that static assays have already flagged.

Core Claim

Two facts in the literature set up the gap. First, spike inference is already known to be cell-type specific: algorithms tuned on excitatory pyramidal neurons degrade on inhibitory interneurons, which have elevated baseline firing and smaller transients, and absolute spike rates remain unestimatable because calcium buffering capacity varies cell to cell Spike inference from calcium imaging data acquired with GCaMP8 indicators. Second, Alzheimer's-relevant genetic backgrounds demonstrably shift baseline calcium physiology: cybrid cell lines carrying the mitochondrial Complex I variant 10398A showed elevated basal mitochondrial calcium and higher histamine-stimulated cytosolic calcium peaks (2.56 vs. 2.26 in 10398G lines), alongside a shifted matrix pH of roughly 8.03 vs. 8.13 Identification of Mitochondrial DNA Polymorphisms That Alter Mitochondrial Matrix pH and Intracellular Calcium Dynamics. But that work used an early ratiometric pericam sensor in osteosarcoma cybrids — it could see gross stimulation peaks, not single-spike dynamics. Nobody has measured what a diseased resting calcium level does to the fractional fluorescence change $\Delta F/F_0$, the indicator's dynamic range, and the accuracy of deconvolution. The specific hypothesis: elevated resting calcium moves the indicator onto the saturating part of its calibration curve, shrinking per-spike $\Delta F/F_0$ and stretching apparent decay — exactly the regime where unsupervised deconvolution over-smooths and supervised networks trained elsewhere hallucinate Robustness of Spike Deconvolution for Neuronal Calcium Imaging. Per-cell self-calibration, jointly estimating baseline, operating point, and decay by alternating minimization on top of a non-negative deconvolution core, should restore transferability across lines where a single global parameterization fails.

Research Program

The program has three parts. The first is the benchmark: a panel of human cell lines chosen so that disease stressors vary while the recording apparatus is held fixed. The panel spans isogenic hiPSC-derived cortical neurons and astrocytes in APOE3 versus APOE4 backgrounds (the exact contrast in which pioglitazone's efficacy was shown to collapse from APOE3 to APOE4 astrocytes Brain Cell-based Genetic Subtyping and Drug Repositioning for Alzheimer Disease), cybrid-style lines segregating the 10398A/8701A mitochondrial haplotype from the 10398G background following the design of Identification of Mitochondrial DNA Polymorphisms That Alter Mitochondrial Matrix pH and Intracellular Calcium Dynamics, tau-seeded neurons using the seeding protocol established in Seeding biosensor cell line that reproduces the Alzheimer tau fold but transferred out of HEK293T into neural lineages (that paper itself flags that its HEK293T milieu produced a non-native "head-to-head" filament packing, and never measured any physiological consequence of seeding), and a convenience immortalized line (SH-SY5Y) as the reductionist control. Each line expresses GCaMP8s or GCaMP8m, with GCaMP6f in a subset to quantify how much indicator generation itself contributes. Simultaneous whole-cell patch clamp on a subset of at least 50 cells per line class supplies ground-truth firing, mirroring the paired electrophysiology design of Spike inference from calcium imaging data acquired with GCaMP8 indicators.

The second part is the method. I extend the noise-constrained non-negative deconvolution core — chosen deliberately over supervised networks, because unconstrained non-negative deconvolution already matched or beat supervised CNNs on out-of-sample data while running roughly 100 times faster Robustness of Spike Deconvolution for Neuronal Calcium Imaging, and its linear-time active-set implementation (OASIS) deconvolved 100,000 zebrafish neurons in about 80 seconds on a laptop Fast Active Set Methods for Online Spike Inference from Calcium Imaging — with a per-trace calibration layer. That layer estimates, by alternating minimization: a slow baseline drift $b(t)$; the resting-calcium operating point, expressed as a gain $g$ and saturation scale $s$ applied to the indicator's response kernel; and the autoregressive decay time constant $\tau$ of the calcium transient per cell. The point is not more model capacity but explicitly fitting the three quantities that disease shifts. For comparison, the same architecture with a single global $(g, s, \tau)$ shared across all cells is the key ablation: it isolates whether per-cell calibration, rather than the richer kernel, is what buys transfer.

The third part is the application: re-testing the drugs that the subtyping study flagged, in the same APOE3/APOE4 astrocyte-neuron co-cultures, but with dynamic endpoints — spontaneous calcium oscillation frequency, mitochondrial calcium load, and evoked burst kinetics — read out through the calibrated inference pipeline. The static result to beat is that $\beta$-estradiol and levetiracetam reduced APOE, C4A, and C4B expression by more than two-fold in hiPSC astrocytes, while pioglitazone worked in APOE3 but lost efficacy in APOE4 lines Brain Cell-based Genetic Subtyping and Drug Repositioning for Alzheimer Disease. The open question is whether the genotype-specific failure is already visible as a failure to rescue calcium kinetics — and whether some drugs rescue function without moving transcripts, or vice versa.

Proposed Experiments

Experiment 1 characterizes the operating-point shift. For each line, I measure resting $F_0$, per-spike $\Delta F/F_0$ from single patched spikes, decay $\tau$, and saturation onset during evoked trains. The prediction, grounded in the cybrid finding of elevated basal calcium in 10398A lines Identification of Mitochondrial DNA Polymorphisms That Alter Mitochondrial Matrix pH and Intracellular Calcium Dynamics, is that APOE4 and 10398A lines show systematically smaller per-spike $\Delta F/F_0$ and longer apparent $\tau$ than their isogenic controls, quantifying exactly how much sensitivity the disease state costs.

Experiment 2 quantifies domain collapse and repair, using leave-one-line-out evaluation with median correlation to ground-truth electrophysiology as the primary metric, following the Spikefinder convention where the top-performing algorithms achieved an average correlation with ground truth of 0.44 against a previous baseline of 0.36 on earlier indicators Spikefinder Challenge Benchmark, and the modern in-domain reference of 0.79–0.84 median correlation for CASCADE retrained on GCaMP8 Spike inference from calcium imaging data acquired with GCaMP8 indicators. For lines where patch-clamp ground truth is impractical at scale, repeated pharmacological stimulation (histamine pulses, following the cybrid protocol) provides a stimulus-repeat reliability metric analogous to the $\rho_{\text{stim}}$ measure used across roughly 10,000 mouse V1 neurons Robustness of Spike Deconvolution for Neuronal Calcium Imaging. Success for the calibrated method means staying within a fixed margin of its in-domain performance when transferred across lines, while default-parameter methods drop.

Experiment 3 runs the drug re-evaluation in APOE3 versus APOE4 co-cultures, reporting both the transcript endpoints (for direct comparability with the published >2-fold reductions Brain Cell-based Genetic Subtyping and Drug Repositioning for Alzheimer Disease) and the dynamic calcium endpoints, with a pre-registered concordance analysis between the two readout modalities.

Baselines

The naive reference point is raw $\Delta F/F_0$ thresholding — detecting "events" as brightness excursions above a fixed multiple of noise, with no inference model at all. It requires nothing, but by construction it cannot recover spike counts from overlapping transients, and its detection rate collapses exactly where disease lines live: small, saturating, slow transients. It defines the floor the method must beat by a wide margin to justify any machinery.

The strongest existing competitor is the GCaMP8-tuned CASCADE network, the supervised deep learning spike inference model that achieved median correlations of 0.79 to 0.84 with ground-truth electrophysiology when retrained on GCaMP8 data Spike inference from calcium imaging data acquired with GCaMP8 indicators. It is the strongest because it is the only method whose numbers were established on the very indicators I will use. To make the comparison fair, CASCADE gets the same recording data, the same per-line tuning budget as my method's calibration search, and is evaluated both in-domain (trained and tested within a line) and leave-one-line-out. A second strong baseline is OASIS with default parameters, the fast unsupervised deconvolution package Fast Active Set Methods for Online Spike Inference from Calcium Imaging; a third is a supervised network of CASCADE's architecture trained by standard empirical risk minimization on data pooled from all lines, which tests whether simply mixing lines in training substitutes for explicit calibration. Beating the baselines means: (a) higher median correlation than CASCADE in leave-one-line-out transfer at matched tuning budget; (b) higher correlation than default OASIS on diseased lines while remaining unsupervised (no electrophysiology required at test time); and (c) smaller cross-line variance than the pooled-ERM network. The key ablation is my own architecture with a single global calibration shared across cells — if per-cell calibration is the real ingredient, the global version should fail on the same lines where OASIS fails, recovering only when the disease shift is small.

Why not just…?

Why not just use OASIS or plain non-negative deconvolution and be done? This is the most serious objection, because the robustness study showed that unconstrained non-negative deconvolution is already robust to mismatched decay parameters, matching supervised CNNs out-of-sample at 100 times the speed Robustness of Spike Deconvolution for Neuronal Calcium Imaging. But that robustness was demonstrated for one axis of mismatch (decay) in healthy mouse cortex. The disease shift I am targeting moves a different axis: the resting-calcium operating point, which rescales per-spike amplitude through the indicator's saturation curve — something a decay-tolerant deconvolver has no mechanism to correct. The GCaMP8 study independently documents that model-based deconvolution over-smooths precisely in the regime of elevated baseline activity and small transients, i.e. interneurons Spike inference from calcium imaging data acquired with GCaMP8 indicators. Experiment 2 settles this directly: if default OASIS holds up across the diseased lines, my method's extra machinery is unjustified and I would report that. The benchmark is constructed so this can go either way.

Why not just measure static endpoints (qRT-PCR, RNA-seq) as everyone else does? The subtyping study already succeeded with static endpoints, finding 54 repositioning candidates and validating two with >2-fold marker reductions Brain Cell-based Genetic Subtyping and Drug Repositioning for Alzheimer Disease, and static assays are cheaper and more scalable. What static assays cannot see is temporal physiology: the cybrid work proved that genotype changes dynamic calcium peaks and pH in ways no fixed-cell assay captures Identification of Mitochondrial DNA Polymorphisms That Alter Mitochondrial Matrix pH and Intracellular Calcium Dynamics, and the multifactorial analysis of late-onset Alzheimer's disease places functional dysregulation before any static accumulation Early role of vascular dysregulation on late-onset Alzheimer's disease based on multifactorial data-driven analysis. The honest caveat is that if the concordance analysis in Experiment 3 shows transcript and calcium readouts always agree, the static pipeline wins on cost — in which case the dynamic readout's value reduces to earlier detection, and I would say so plainly.

Why not just build everything in one robust immortalized reporter line, like the HEK293T tau biosensor? The tau biosensor line is a genuine success story — it reproduces the authentic Alzheimer's tau fold and enabled high-throughput inactivation testing (5% bleach eliminated 99.5% of seeding activity in one hour) Seeding biosensor cell line that reproduces the Alzheimer tau fold. But that same paper shows the trap: the HEK293T milieu produced an interprotofilament packing never seen in human brain, and the line reported only static puncta counts, no physiology. Spatial proteomics across 218,000 cilia in three lines showed organellar composition diverges between lines independently of whole-cell expression Intrinsic Heterogeneity of Primary Cilia Revealed Through Spatial Proteomics, and drug efficacy itself splits by genetic background, as pioglitazone did between APOE3 and APOE4 astrocytes Brain Cell-based Genetic Subtyping and Drug Repositioning for Alzheimer Disease. A single line would have made every one of these splits invisible — which is the entire phenomenon under study.

Why not just pool all lines and train one supervised model with standard empirical risk minimization? Because pooled training without invariance enforcement is documented to collapse under domain shift: on out-of-domain multi-organ histopathology, standard empirical risk minimization fell to 54.5% accuracy while an explicitly aligned model held 70.6% Are nuclear masks all you need for improved out-of-domain generalisation? A closer look at cancer classification in histopathology, and ontology-aware alignment improved cross-cohort composition correlation by up to 714% over unaligned encoders Cross-modal transfer learning for mapping bulk transcriptomes at cellular level. The pooled-ERM baseline in Experiment 2 is included precisely to test whether calcium traces are an exception; the supervised-hallucination results Robustness of Spike Deconvolution for Neuronal Calcium Imaging predict they are not.

Decisive Checks

Three results would decide the proposal. First, Experiment 1 must show a measurable operating-point shift across disease backgrounds — if APOE4, 10398A, and tau-seeded lines show per-spike $\Delta F/F_0$ and $\tau$ statistically indistinguishable from isogenic controls, the premise is wrong and the project reduces to a useful negative benchmark. Second, the leave-one-line-out comparison must show the calibrated method transferring where default OASIS and GCaMP8-tuned CASCADE degrade — and if they do not degrade, the calibration layer is unnecessary and I should report that OASIS is already disease-robust, which would itself be a finding no paper in this literature has established. Third, the drug concordance analysis must show at least one drug where dynamic and transcript readouts dissociate across APOE genotypes, since that is the concrete payoff for Alzheimer's screening. On metrics with no precedent in this literature — such as cross-line transfer error for spike inference on human lines — no reported result exists; no reported result found on Lacuna for cross-cell-line spike inference transfer in human Alzheimer's models, which is exactly the hole this work fills.