Back

Personalized Brain-Based Analgesia Detection with Portable fNIRS and AI

Minoccheri, C.; Joo, P.; Hu, X.-S.; Affendi, H.; Elayyan, F.; Harville, A.; McDonald, N. J.; Botero, T.; DaSilva, A. F.

2026-05-28 dentistry and oral medicine
10.64898/2026.05.20.26353377 medRxiv
Show abstract

Neuroimaging based pain decoding faces two underappreciated challenges: between subject variability that prevents classifiers from generalizing across patients, and within session cross validation designs that inflate reported accuracy by conflating within person and between person variance. Here we address both using portable functional near infrared spectroscopy (fNIRS) during pharmacologically verified local nerve anesthesia. Twentyfive patients with clinically painful teeth underwent 36 channel bilateral fNIRS during percussion before ("Pre") and after ("Post") local nerve anesthesia. In 13 block-success patients, a paired Pre versus Post comparison with healthy tooth control identified three temporal hemodynamic response function (HRF) features (late slope, mean first derivative, and baseline normalized amplitude) whose analgesia interaction effects (d = 0.63 to 0.79) exceeded that of raw general linear model (GLM) amplitude (d = 0.56), with a significant difference-in-differences interaction (p = 0.011). Per-patient calibration with these features yielded leave one subject out (LOSO) AUC = 0.68 to 0.76 for nonlinear classifiers (permutation p = 0.002), with HbO-specific feature selection achieving the best performance (RF AUC = 0.760); a healthy tooth negative control was non-significant. End to end deep learning on raw time series (CNN LSTM AUC = 0.719) was competitive with feature based classifiers, while linear models did not reach significance. Critically, head to head comparison of within-session CV and LOSO on the same data revealed mean inflation of +0.13 AUC across all model types, including deep learning, demonstrating that high within session accuracy alone does not establish subject-independent validity. Exploratory analyses suggested complementary roles for oxyhemoglobin (HbO; within patient analgesia detection) and deoxyhemoglobin (HbR; cross patient information), and that trial to trial response variability may complement amplitude for cross patient pain detection. These results show that per patient calibration with temporal HRF features supports subject independent analgesic-state detection under strict LOSO evaluation, and that within-session validation (standard in the fNIRS pain- decoding literature) can substantially overestimate performance.

Matching journals

The top 2 journals account for 50% of the predicted probability mass.

1
eLife
5422 papers in training set
Top 0.1%
41.8%
2
Nature Communications
4913 papers in training set
Top 16%
10.7%
50% of probability mass above
3
Scientific Reports
3102 papers in training set
Top 12%
7.2%
4
Brain
154 papers in training set
Top 2%
3.3%
5
Science Translational Medicine
111 papers in training set
Top 2%
2.2%
6
Nature Machine Intelligence
61 papers in training set
Top 2%
2.0%
7
Biology Methods and Protocols
53 papers in training set
Top 0.7%
1.8%
8
Communications Biology
886 papers in training set
Top 7%
1.8%
9
PLOS Biology
408 papers in training set
Top 11%
1.6%
10
NeuroImage
813 papers in training set
Top 4%
1.6%
11
Nature Biomedical Engineering
42 papers in training set
Top 1.0%
1.6%
12
Proceedings of the National Academy of Sciences
2130 papers in training set
Top 35%
1.6%
13
Advanced Science
249 papers in training set
Top 13%
1.4%
14
Neurophotonics
37 papers in training set
Top 0.3%
1.4%
15
Human Brain Mapping
295 papers in training set
Top 3%
1.4%
16
Frontiers in Medicine
113 papers in training set
Top 4%
1.3%
17
Science Advances
1098 papers in training set
Top 22%
1.3%
18
PLOS ONE
4510 papers in training set
Top 61%
1.0%
19
npj Digital Medicine
97 papers in training set
Top 3%
0.8%
20
eBioMedicine
130 papers in training set
Top 4%
0.8%
21
Brain Communications
147 papers in training set
Top 3%
0.8%
22
Imaging Neuroscience
242 papers in training set
Top 3%
0.8%
23
PLOS Computational Biology
1633 papers in training set
Top 28%
0.5%
24
Cell Reports Methods
141 papers in training set
Top 6%
0.5%