Multimodal AI for risk stratification in autism spectrum disorder: integrating voice and screening tools

Multimodal AI for risk stratification in autism spectrum disorder: integrating voice and screening tools

This study employed a two-stage AI framework (Fig. 8) for ASD risk stratification, integrating multimodal data from surveys, parent-child interactions, and clinical assessments.

Fig. 8: Schematic diagram of the two-stage multimodal AI framework for ASD risk stratification.Fig. 8: Schematic diagram of the two-stage multimodal AI framework for ASD risk stratification.

The framework shows a sequential process beginning with initial classification and culminating in actionable risk stratification. This diagram illustrates how Stage 1 (Model 1) uses voice and questionnaire data to classify individuals as Typically Developing (TD) or at-risk (High+ASD). Individuals flagged as at-risk proceed to Stage 2 (Model 2), which uses semantic features and task outcomes to further classify them as High-Risk or diagnosed ASD, leading to stratification into three clinical risk categories with recommended actions.

Study design and participants

This study recruited 1242 children aged 18–48 months from clinical settings across 9 hospitals in the Republic of Korea. Data collection was primarily conducted using a mobile application, which gathered responses to key ASD screening questionnaires (including the M-CHAT-R/F, SCQ-L, and SRS) —with the M-CHAT-R/F administered for children aged 18–30 months and the SCQ-L for those aged 24–48 months— and recorded voice data from parent-child interaction videos during standardized tasks. Participants were categorized into three groups: TD, high-risk for ASD, and confirmed ASD. This categorization was based on results from these screening tools and clinical diagnoses performed according to DSM-5 criteria. Figure 9 details the participant flow through the study, illustrating the inclusion and exclusion criteria applied based on data availability and clearly delineating the sample sizes and specific data inputs for both Stage 1 and Stage 2 of the two-stage AI model analysis.

Fig. 9: Study flowchart and multimodal AI framework overview.Fig. 9: Study flowchart and multimodal AI framework overview.

This flowchart details participant recruitment, exclusion criteria, and data allocation for the two-stage AI model. It shows how participants were selected based on the availability of mobile application data, including screening tool responses and voice recordings. Stage 1 included 818 participants to differentiate TD from non-TD individuals, while Stage 2 included 515 participants from the non-TD group to differentiate between High-Risk and ASD individuals. (MCHAT: Modified Checklist for Autism in Toddlers; SCQ-L: Social Communication Questionnaire-Lifetime; SRS: Social Responsiveness Scale; ASD: Autism Spectrum Disorder; TD: Typically Developing; non-TD: Non-Typically Developing).

Participants in the study were categorized into three distinct groups: ASD, High-Risk (HR), and TD (TD). The ASD group included toddlers with a confirmed diagnosis based on a combination of screening tools and clinical diagnoses using DSM-5 criteria6. These diagnoses were further supported by comprehensive clinical evaluations utilizing standardized assessment tools, including the Autism Diagnostic Observation Schedule, Second Edition (ADOS-2)45, and the Korean Childhood Autism Rating Scale, Second Edition (K-CARS-2)5. The High-Risk (HR) group comprised toddlers identified through primary screening tools such as the Modified Checklist for Autism in Toddlers, Revised with Follow-Up (M-CHAT-R/F), Q-CHAT, SCQ, SRR, and Bedevel46,47. Toddlers with delayed language development, a family history of ASD, or preterm birth before 36 weeks were also classified into this group. These children exhibited potential ASD traits requiring follow-up evaluations but did not meet the full criteria for an ASD diagnosis. Finally, the TD group consisted of toddlers exhibiting typical developmental patterns without any indications of ASD traits, as determined by the M-CHAT-R/F47, and who had no family history of developmental disorders.

Ethical considerations

This study was conducted in accordance with the Declaration of Helsinki. The study protocol was approved by the Institutional Review Board (IRB) of Severance Hospital, Yonsei University College of Medicine (IRB No. 4-2022-1468), and the IRBs of all participating hospitals in this multi-center study: Seoul National University Hospital (IRB No. 2209-096-1360), Eunpyeong St. Mary’s Hospital (IRB No. 2022-3419-0002), Wonkwang University Hospital (IRB No. 2022-12-023-001), Seoul National University Bundang Hospital (IRB No. 2305-829-401), Hanyang University Hospital (IRB No. 2022-12-007-001), Chungbuk National University Hospital (IRB No. 2023-04-034), and Seoul St. Mary’s Hospital (IRB No. KC24ENDI0198). Written informed consent was obtained from the legal guardian of every participant before any data collection.

Procedures for data protection were implemented to uphold the highest ethical standards for collecting data from minors. Upon enrollment, each child was assigned a unique, non-identifiable “Study ID,” and no direct identifiers appear in analysis files. All data were stored on encrypted servers at Yonsei University, using AES-256 and HASH-256 encryption for sensitive information. Access to the database was restricted to authorized personnel through role-based permissions. Data management complied with the Personal Information Protection Act and the Bioethics and Safety Act. Raw audio recordings were deleted after feature extraction, and pseudonymized data will be stored for 10 years from the study’s conclusion before being securely destroyed, with any extension requiring further IRB review. All methods and procedures are described here in the main manuscript, not in Supplementary Information.

Recruitment

The study employed a multi-pronged recruitment strategy, partnering with clinical institutions, community childcare centers, and pediatric clinics specializing in developmental delays to reach a diverse population. Targeted outreach to high-risk groups was conducted through inclusive daycare centers and by distributing brochures in specialized clinics. Participant engagement was fostered by offering incentives like detailed developmental assessment reports.

Data collection

Data collection for this study involved three primary sources: survey data, digital phenotyping data, and clinical data.

Survey data was acquired through standardized questionnaires completed by parents, including the Modified Checklist for Autism in Toddlers (MCHAT)12,46, the Social Communication Questionnaire Lifetime (SCQ-L)12,46, and the Social Responsiveness Scale second edition (SRS-2)20,23. These surveys provided text-based data for the AI model. The initial sample based on MCHAT and SCQ-L scores consisted of 1242 children, including 434 TD, 331 High-Risk, and 477 with ASD. For the Stage 2 analysis requiring SRS and 5-task audio data, 32 participants were excluded, resulting in a sample of 162 High-Risk and 353 ASD children (Total = 515).

Digital phenotyping data was collected from 897 children via a custom-developed mobile application. This included audio data from parent-child interactions, where the app guided parents through a series of standardized tasks designed to elicit specific behaviors relevant to ASD diagnosis (Table 4). The number of interaction tasks varied by age, with children aged 18–23 months completing four tasks, those aged 24–35 months completing five, and those aged 36–48 months completing six. These tasks included Responding to Name, Imitation (one-step for 18–23 months, two-step for 24–48 months), Ball Play, Symbolic Play, Requesting Help, and Free Play. Audio from the Free Play task was analyzed for the Stage 1 model using data from 294 TD, 214 High-Risk, and 389 ASD children. Audio from 547 children was used in the Stage 2 model. Additionally, task success/failure data was collected for each of the five structured tasks (excluding Free Play), where caregivers evaluated and recorded the child’s performance based on predefined criteria; this binary information was used directly in the Stage 2 model.

Table 4 Parent-Child Interaction Tasks

Finally, clinical data was collected, including assessments from ADOS-2 Module 1 (ADOS-2 Mod1), ADOS-2 Module 2 (ADOS-2 Mod2), and the ADOS-2 Toddler Module (ADOS-2 ModT). To ensure consistency across modules, a composite score—referred to as the ADOS-2 total(T) score—was calculated by summing the ADOS social affect (ADOS_SA) score and the ADOS restricted and repetitive behavior (ADOS_RRB) score. This ADOS-2 total(T) score served as the ground truth for model validation and risk stratification.

Language delay definition and calculation

In this study, language delay was defined as a delay of 7 months or more in either receptive or expressive language age compared to the child’s chronological age. Language development was assessed using either the Preschool Receptive-Expressive Language Scale (PRES) or the Sequenced Language Scale for Infants (SELSI). For each child, the obtained receptive and expressive language ages were subtracted from their chronological age. If the receptive or expressive language delay was 7 months or greater, the child was classified as having a language delay.

Stage 1 model development

The development of the AI model employed a two-stage approach. This section details the methodology used for Stage 1, focusing on distinguishing TD children from those at High-Risk (HR) for or diagnosed with ASD.

The initial dataset comprised data from 1242 participants. Following the exclusion of 61 participants due to missing free-play audio data or the presence of specific confounding factors (high-risk ASD with family history or high-risk ASD with premature birth), the final dataset for Stage 1 analysis consisted of 818 children. This cohort included 273 TD children, 175 children identified as High-Risk for ASD, and 370 children diagnosed with ASD.

Data preprocessing

Text-based analysis utilized responses from the Modified Checklist for Autism in Toddlers (MCHAT) and the Social Communication Questionnaire – Lifetime (SCQ-L). We employed a mapping strategy to enhance the extraction of ASD-relevant information from these questionnaires. Specifically, 1943 medical concepts derived from Zhao et al. (2022)13 were used to map the survey items to a broader set of 3336 ASD-related terms, creating a richer textual representation for identifying high-risk individuals. Subsequently, a Sentence Transformer model (Reimers & Gurevych, 2019) was implemented to calculate cosine similarity scores between each survey item and the expanded set of ASD terms. The top five matching terms for each item, based on cosine similarity, were identified. From this subset, 1–2 clinically relevant terms were carefully selected as keywords, guided by expert clinical judgment. These selected keywords served as the foundation for training a RoBERTa-based binary classification model. This model was designed to differentiate between TD children and the combined group of high-risk and ASD children, leveraging the textual information derived from the MCHAT and SCQ-L.

The audio data consisted of recordings from parent-child interaction tasks. Each recording, with a total duration of 3 min, was segmented into 30-s intervals. These segments were then processed using a Multiple Instance Learning (MIL) framework (Ilse et al.)48, with the Whisper model (Radford et al.)34 serving as the feature extraction backbone. To address the presence of language delay, children’s receptive and expressive language development ages were assessed. Children exhibiting a delay of 7 months or more compared to their chronological age were labeled as having a language delay. This language delay status was then predicted using the Whisper model (Radford et al.)34 within the MIL framework (Ilse et al.)48, enabling effective feature extraction from the variable-length audio inputs.

Model architecture

A multi-modal neural network was constructed to integrate both text and audio data. This network was based on the pre-trained ‘RoBERTa-large’ and Whisper Encoder models. The ‘RoBERTa-large’ model served as the text pathway, extracting features from the preprocessed textual data derived from the questionnaires. Concurrently, a pre-trained whisper Encoder model, which was fine-tuned as part of this study, formed the audio pathway, extracting features from the segmented audio data. The extracted text and audio features were then concatenated to form a unified representation. This combined feature vector was fed into a final classification layer, which produced logits for classifying children into either the TD group or the combined HR + ASD group. As an auxiliary task, a separate output layer was included to predict the presence or absence of language delay (Yes/No) based on the fused features. Finally, a hard ensemble approach was implemented to combine the predictions generated by the MCHAT/SCQ-L-based binary classification model and the language delay prediction model, ultimately classifying children into the TD or combined HR + ASD groups.

The overall loss function for Stage 1 was a composite of losses from the main classification task and the auxiliary language delay prediction task. The total loss function, which equally weighted the classification loss and the language-delay prediction loss, is defined in Eq. (1).

$$L=\frac{1}{2}({L}_{{CE}}+{L}_{{LD}})$$

(1)

Here, \({{\rm{L}}}_{{\rm{CE}}}\) and \({L}_{{LD}}\) represent the cross-entropy losses for the main classification task and the auxiliary language delay task, respectively.

The classification error for the primary task (classifying TD vs. High-Risk/ASD) is computed using Eq. (2):

$${L}_{{CE}}=-\frac{1}{N}\mathop{\sum }\limits_{i=1}^{N}\left[{y}_{i}\cdot \log ({p}_{i})+(1-{y}_{i})\cdot \log (1-{p}_{i})\right]$$

(2)

In this equation, N is the total number of samples, \({y}_{i}\) is the true class label for sample \(i\) (0 for TD, 1 for High-Risk/ASD), and \({p}_{i}\) is the predicted probability of the positive class (High-Risk/ASD) for sample \(i\).

The classification error for predicting language delay is computed using Eq. (3):

$${L}_{{LD}}=-\frac{1}{N}\mathop{\sum }\limits_{i=1}^{N}\left[{z}_{i}\cdot \log ({q}_{i})+(1-{z}_{i})\cdot \log (1-{q}_{i})\right]$$

(3)

Here, \(N\) represents the total number of samples, \({z}_{i}\) is the true binary label for language delay (1 for delay, 0 for no delay), and \({q}_{i}\) is the predicted probability of language delay for sample \(i\).

Model training and evaluation

The dataset used for training and evaluation for Stage 1 comprised data from 273 TD, 175 high-risk, and 370 ASD participants. Model training was conducted using 5-fold stratified cross-validation. For each fold, the data was split into ~70% training, 10% validation, and 20% held-out test set. The splits were stratified by class (TD, HR, ASD) to maintain class balance across all subsets. The same partitioning was used consistently across both training stages.

The ‘RoBERTa-large’ model was initialized with pre-trained weights, serving as the text pathway for feature extraction from the preprocessed textual data. Concurrently, the Whisper model encoder was fine-tuned across all its layers on our dataset, rather than being used as a frozen feature extractor, to form the audio pathway. In addition to the primary classification task (distinguishing typically developing from high-risk/ASD children), an auxiliary classifier was included to predict language delay status, leveraging the model’s ability to capture clinically relevant vocal features. The model was trained using the cross-entropy loss function for both the main classification task and the auxiliary language delay task. No explicit data augmentation was applied to the audio recordings; this decision was based on the natural variability and ambient noise present in the real-world clinical and home environments, as preliminary experiments showed that artificial augmentation degraded performance.

Features from the audio (Whisper encoder hidden states) and text (RoBERTa embeddings) models were concatenated at the feature level before being fed into a fully connected neural network for classification. This multimodal fusion allowed the model to jointly leverage both vocal and linguistic information. No ensemble methods were employed during inference; the final predictions were generated by this single integrated multimodal model.

Hyperparameters were set as follows: a batch size of 4, trained for 10 epochs, a fixed learning rate of 1e-5, and a weight decay of 0.01. The AdamW optimizer was employed, and no learning rate scheduler was used. While explicit early stopping with patience was not applied, the model checkpoint with the lowest validation loss during training was selected and saved for evaluation. During inference, the trained model was set to evaluation mode and processed test data in batches of 64, without shuffling. Model performance was evaluated using AUC, accuracy, and loss, calculated on the held-out test set for each fold.

Stage 2 model development

This stage integrated data from two sources: the outcomes of parent-child interaction tasks and responses from the Social Responsiveness Scale-2 (SRS-2). The success or failure of each of the six parent-child interaction tasks was recorded. The criteria for determining success or failure were based on clinically relevant behavioral markers. Examples of these markers include responding to a name within two attempts, correctly imitating at least one action, and engaging in symbolic play. The initial task success/failure labels were primarily provided by parents during the assessment. To ensure validity and quality control, these parent-reported labels for a stratified sample of 50 subjects (comprising 227 total task items) were rigorously validated against video-reviewed ground truth by experienced clinicians. A subset of 10 subjects (46 tasks) underwent re-review by clinicians to ensure clarity and consistency. Consistency was further ensured through a comprehensive inter-rater reliability analysis; Cohen’s kappa (κ) was calculated to quantify the agreement between parent-reported labels and clinician video reviews, yielding κ = 0.885 (95% CI: 0.85–0.92). This indicates “almost perfect agreement” according to Landis and Koch (1977)49 benchmarks. The raw observed agreement was 94.27% (214 agreed items out of 227 total items), with only 13 discrepancies identified, representing an exceptionally low mismatch rate of 5.7% for clinical and behavioral studies. This robust reliability supports the validity and quality of the parent-reported task outcomes used in our study. Like the text preprocessing in Stage 1, SRS survey responses were mapped to ASD-related terms to enhance the extraction of relevant information. The task success/failure data, represented as binary outcomes for each task, and the mapped SRS terms were combined to train a RoBERTa-Large model using fine-tuning. The model was trained for 10 epochs with a batch size of 8 and a learning rate of 2e-5. A cross-entropy loss function and the AdamW optimizer were employed for training. To prevent overfitting, early stopping based on validation loss was implemented. This trained model achieved a promising AUC of 0.93.

Stage 2 model training and evaluation

For Stage 2, model training and evaluation involved a dataset of 162 High-Risk and 353 ASD children. We employed StratifiedGroupKFold for all splits to ensure consistency in labels and subject grouping across the dataset. An initial approximate 80:10:10 (train:validation: test) split was performed, which was later updated following the inclusion of new subjects, resulting in final sample counts of Train (455), Validation (58), and Test (57). Fixed train/validation/test sets were used for evaluation, rather than explicit cross-validation folds in this stage.

The RoBERTa-Large model was fine-tuned for 10 epochs. An effective batch size of 32 was used, achieved with a per-device train batch size of 8 and a gradient accumulation of 4 steps. The learning rate was fixed at 2e-5, and a weight decay of 1e-8 was used for regularization, with 0 warmup steps. Evaluation and model saving occurred per epoch, and the best model was loaded based on the lowest evaluation loss on the validation set (load_best_model_at_end = True, metric_for_best_model = “eval_loss”). No explicit hyperparameter search was performed, with the listed values being those used for fine-tuning. A cross-entropy loss function and the AdamW optimizer were employed for training.

Model performance was comprehensively evaluated using several metrics. The Area Under the Receiver Operating Characteristic curve (AUROC) was used to assess the model’s ability to discriminate between classes. The F1-score, the harmonic mean of precision and recall, provided a balanced measure of accuracy, while overall accuracy measured the correctness of the model’s predictions. Precision, the proportion of accurate positive predictions among all positive predictions, and recall, the proportion of accurate positive predictions among all actual positive cases, were also calculated.

Model calibration and correlation analysis

Furthermore, the ECE was computed to quantify the alignment between predicted probabilities and observed frequencies across multiple bins. The ECE is calculated using the formula shown in Eq. (4):

$${ECE}={\sum }_{\left\{i=1\right\}}^{{N}_{{bins}}}\frac{\left|{B}_{i}\right|}{N}* {|accuracy}\left({B}_{i}\right)-{confidence}\left({B}_{i}\right)|$$

(4)

In this equation, \({B}_{i}\) represents the i-th bin containing predicted probabilities, \({{|B}}_{i}|\) is the number of predictions within that bin, and N is the total number of predictions. The term \({accuracy}\left({B}_{i}\right)\) refers to the fraction of true positives in bin i, while \({confidence}\left({B}_{i}\right)\) is the mean predicted probability for the predictions in that same bin.

A lower ECE indicates better calibration, meaning the predicted probabilities more accurately reflect the actual likelihood of the outcome.

Isotonic regression was employed for calibration to ensure that the model’s predicted probabilities aligned with clinically defined ADOS-2 risk categories. Isotonic regression is a non-parametric method that adjusts the predicted probabilities to better match the observed outcomes while preserving the original ranking of predictions (monotonicity).

The calibrated probabilities \({p}_{{cal}}\) are obtained by solving the optimization problem shown in Eq. (5):

$${P}_{{cal}}={argmin}{\sum }_{\left\{i=1\right\},{P}_{{iso}}}^{N}{\left({P}_{{iso},i}-{y}_{i}\right)}^{2}{subject\; to}{P}_{\left\{{iso},{i}\right\}}\le {P}_{{iso},j}{for\; i} < j)$$

(5)

In this equation, \({P}_{{iso}}\) represents the isotonic probabilities, \({y}_{i}\) is the true label for the \({i}_{{th}}\) sample, and N is the total number of samples.

We used 10 equal-width bins (edges at 0.0, 0.1, …, 1.0) to compute ECE (Eq. 4), and we fitted a scikit-learn Isotonic Regression (PAV algorithm, out_of_bounds = “clip”) to obtain calibrated probabilities under the monotonicity constraint (Eq. 5).

To investigate the relationship between the model’s predicted probabilities and ADOS scores, both Pearson and Spearman correlation analyses were conducted. The Pearson correlation coefficient (“r”), which measures the linear relationship between two variables, was calculated using the following formula.

The Pearson correlation coefficient, which measures the linear relationship between two variables, is calculated using Eq. (6):

$${\rm{r}}=\frac{{\sum }_{{\rm{i}}=1}^{{\rm{n}}}\left({{\rm{x}}}_{{\rm{i}}}-\bar{{\rm{x}}}\right)\left({{\rm{y}}}_{{\rm{i}}}-\bar{{\rm{y}}}\right)}{\sqrt{\mathop{\sum }\limits_{{\rm{i}}=1}^{{\rm{n}}}{\left({{\rm{x}}}_{{\rm{i}}}-\bar{{\rm{x}}}\right)}^{2}\mathop{\sum }\limits_{{\rm{i}}=1}^{{\rm{n}}}{\left({{\rm{y}}}_{{\rm{i}}}-\bar{{\rm{y}}}\right)}^{2}}}$$

(6)

In this equation, \({{\rm{x}}}_{{\rm{i}}}\) and \({{\rm{y}}}_{{\rm{i}}}\) are the values of the first variable (Mean Calibrated Probabilities) and the second variable (ADOS-2 total(T) score) respectively, while \(\bar{{\rm{x}}}\) and \(\bar{{\rm{y}}}\) are the means of each variable. The term n represents the total number of data points.

The Spearman rank correlation coefficient ρ, a non-parametric measure of rank correlation, was also calculated using Eq. (7):

$$\rho =1-\frac{\left(6\Sigma {{\rm{di}}}^{2}\right)}{{\rm{n}}\left({{\rm{n}}}^{2}-1\right)}$$

(7)

Here, \({d}_{i}\) is the difference in ranks between the two variables for each data point \(i\) (i.e., \(\text{Rank}\left({x}_{i}\right)-\text{Rank}\left({y}_{i}\right)\) and n is the number of data points.

ADOS scores were scaled to a range of 0–1 for these analyses. For risk stratification, a data-driven threshold optimization procedure was employed to define thresholds for classifying individuals into “Low Risk,” “Moderate Risk,” and “High Risk” categories based on the calibrated predicted probabilities. The thresholds were optimized to maximize agreement (measured by accuracy) with ADOS-2 based risk categories. These ADOS-2 based risk categories were defined as follows: Low Risk: ADOS-2 TOTAL(T) < 7; Moderate Risk: 7 ≤ ADOS-2 TOTAL(T) ≤ 13; and High Risk: ADOS-2 TOTAL(T) > 13. The optimization process involved a grid search over a range of threshold values. The lower threshold (t1) varied from 0.1 to 0.45 in increments of 0.05, and the upper threshold (t2) ranged from t1 + 0.1 to 0.85 in increments of 0.05.

Risk stratification and threshold optimization

As shown in Eq. (8), the predicted risk \({R}_{p}\) is classified based on the calibrated probability (\(P\)) using two thresholds \({T}_{1}\) and \({T}_{2}\):

$${R}_{p}=\left\{\begin{array}{l}{\rm{Low}}\,{\rm{Risk}},P < {T}_{1}\\{\rm{Moderate}}\,{\rm{Risk}},{T}_{1}\le P\le {T}_{2}\\{\rm{High}}\, {\rm{Risk}},P > {T}_{2}\end{array}\right.$$

(8)

In this equation, \(P\) represents the predicted probability (e.g., the mean calibrated probability for an individual), while \({T}_{1}\) and \({T}_{2}\) T2 are the thresholds that separate the risk groups.

As defined in Eq. (9), the ADOS risk \({R}_{a}\) is determined using the ADOS-2 TOTAL(T) score(\(S\)) with fixed thresholds S1 and S2:

$${R}_{a}=\left\{\begin{array}{l}{\rm{Low}}\, {\rm{Risk}},S < {S}_{1}\\{\rm{Moderate}} {\rm{Risk}},{S}_{1}\le S\le {S}_{2}\\{\rm{High}}\, {\rm{Risk}},S > {S}_{2}\end{array}\right.$$

(9)

In this equation, \(S\) is the ADOS-2 TOTAL(T) score for an individual, while S1 and S2 are the thresholds for the ADOS risk categories (e.g.,\({S}_{1}\) = 7, \({S}_{2}\) = 13).

The combined risk \({R}_{c}\) is fusion of \({R}_{p}\) and \({R}_{a}\), is defined as shown in Eq. (10):

$${R}_{c}=\left\{\begin{array}{l}\qquad\qquad\qquad\qquad\qquad{\text{High}}\,{\text{Risk}},\qquad{R}_{p}={\rm{High}}\; {\rm{Risk}}\; and\,{R}_{a}={\rm{High}}\; {\rm{Risk}}\\ {\rm{Moderate}}\; {\rm{Risk}},({R}_{p}={\rm{Moderate}}\; {\rm{Risk}}\; and\,{R}_{a}={\rm{High}}\; {\rm{Risk}})\,{\rm{or}}\,({R}_{p}={\rm{High}}\; {\rm{Risk}}\; and\,{R}_{a}={\rm{Moderate}}\; {\rm{Risk}})\\ \qquad\qquad\qquad\qquad\qquad\qquad\qquad{\text{Low}}\,{\text{Risk}},\qquad\text{otherwise}\end{array}\right.$$

(10)

The agreement metric (A) measures the similarity between \({{\rm{R}}}_{{\rm{p}}}\) and \({{\rm{R}}}_{{\rm{a}}}\), can be computed using accuracy as defined in Eq. (11):

$${\rm{A}}=\frac{{{\rm{Number}}\, {\rm{of}}\, {\rm{Correct}}\, {\rm{Matches}}\, {\rm{Between}}\,{{\rm{R}}}_{{\rm{p}}}{\rm{and}}\,{{\rm{R}}}_{{\rm{a}}}}}{{\rm{Total}}\, {\rm{Number}}\, {\rm{of}}\, {\rm{Predictions}}}$$

(11)

Alternatively, Eq. (12) defines the agreement using a weighted F1 score formulation:

$$\text{F}1\text{Score}=\frac{{\sum }_{{\rm{i}}=1}^{{\rm{n}}}{{\rm{W}}}_{{\rm{i}}}\cdot \frac{2\cdot {\rm{T}}{{\rm{P}}}_{{\rm{i}}}}{2\cdot {\rm{T}}{{\rm{P}}}_{{\rm{i}}}+{\rm{F}}{{\rm{P}}}_{{\rm{i}}}+{\rm{F}}{{\rm{N}}}_{{\rm{i}}}}}{{\sum }_{{\rm{i}}=1}^{{\rm{n}}}{{\rm{W}}}_{{\rm{i}}}}$$

(12)

In this formula, \(T{P}_{i}\), \(F{P}_{i}\), and \(F{N}_{i}\) are the true positives, false positives, and false negatives for class \(i\), respectively. The term \({W}_{i}\) represents the weight for class \(i\), which is proportional to its representation in the dataset.

The optimal thresholds \(\left({T}_{1}^{* },{T}_{2}^{* }\right)\), which maximize the agreement metric, are determined by solving the optimization problem shown in Eq. (13):

$$\left({T}_{1}^{* },{T}_{2}^{* }\right)=\text{argmax}A\left({T}_{1},{T}_{2}\right)$$

(13)

This optimization is performed by iterating the thresholds \({T}_{1}{and}{T}_{2}\) over a defined range (e.g., \({T}_{1}\in \left[\mathrm{0.1,0.5}\right],{T}_{2}\in \left[{T}_{1}+\mathrm{0.1,0.9}\right]\)), where \(A\left({T}_{1},{T}_{2}\right)\) is the agreement metric computed for each pair of thresholds.

A combined risk assessment strategy was implemented by integrating both the model-predicted risk and the ADOS-2-based risk. This combined risk was determined according to the following criteria: An individual was classified as “High Risk” if either the model-predicted risk or the ADOS-2 risk was high. “Moderate Risk” was assigned if one of the risks was moderate and the other was high. Finally, an individual was classified as “Low Risk” if both the model-predicted risk and the ADOS-2 risk were either low or moderate. This combined approach aimed to leverage the strengths of the AI model and the established clinical assessment.

Statistical analysis

Descriptive statistics summarized participant characteristics. Chi-square tests with post-hoc Bonferroni correction examined associations between categorical variables. Statistical significance was set at p < 0.05. Analyses used Python (version 3.9) with pandas, NumPy, SciPy, scikit-learn, statsmodels, Matplotlib, torch, torchaudio, transformers, and Seaborn libraries. We trained the model using a Quadro RTX 8000. The model was implemented using PyTorch, utilizing a GPU with fixed random seeds for ensuring reproducibility.