<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Suhani Sahai on Medium]]></title>
        <description><![CDATA[Stories by Suhani Sahai on Medium]]></description>
        <link>https://medium.com/@suhanisahai?source=rss-8607cc7c600------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*q_r6zSBSGplj2eZ6UAopxQ.jpeg</url>
            <title>Stories by Suhani Sahai on Medium</title>
            <link>https://medium.com/@suhanisahai?source=rss-8607cc7c600------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 05:04:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@suhanisahai/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[I Built an Explainable AI Model for Autism Screening Using Behavioral Data]]></title>
            <link>https://suhanisahai.medium.com/i-built-an-explainable-ai-model-for-autism-screening-using-behavioral-data-99c98678f28f?source=rss-8607cc7c600------2</link>
            <guid isPermaLink="false">https://medium.com/p/99c98678f28f</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[ai-ml-solution]]></category>
            <category><![CDATA[healthcare]]></category>
            <category><![CDATA[autism-spectrum-disorder]]></category>
            <dc:creator><![CDATA[Suhani Sahai]]></dc:creator>
            <pubDate>Tue, 12 May 2026 13:03:37 GMT</pubDate>
            <atom:updated>2026-05-12T13:06:02.225Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UCmgSsflgo9CiwJgqxjJ4w.jpeg" /></figure><h3>What a machine learned from 292 children — and why it matched what I already knew from 300 hours of therapy</h3><p>Every session starts the same way.</p><p>I say a child’s name.</p><p>I wait.</p><p>I watch.</p><p>Whether they look up — and how long it takes — tells me more than any standardized test.</p><p>I have been doing this for over 300 hours as a behavioral interventionist at ICAN, working one-on-one with children on the autism spectrum.</p><p>I am also a computer science student , learning machine learning on the side.</p><p>This project brought both worlds together.</p><h3>1. Introduction</h3><p>This project builds an interpretable ML pipeline for pediatric ASD screening using the UCI Autism Spectrum Disorder Screening dataset.</p><p>It trains and compares six classifiers, applies feature scaling, and uses SHAP explainability to map predictions back to individual behavioral indicators.</p><p>The goal was not just a high-accuracy model.</p><p>It was a model that could explain itself — one whose predictions could be traced back to specific behaviors that clinicians already understand and work with every day.</p><p><strong>Key findings:</strong></p><ul><li>Logistic Regression achieved AUC of 1.00 on the test set</li><li>Applying StandardScaler enabled SVM from 50.8% to 98.3% accuracy</li><li>SHAP identified joint attention and communication behaviors as the strongest predictors — consistent with ABA therapy goal areas</li><li>All code is open source: <a href="https://github.com/ssahai0307-collab/autism-screening-explainability">autism-screening-explainability</a></li></ul><h3>2. Why This Matters</h3><p>Machine learning models for ASD screening exist.</p><p>Most stop at accuracy numbers.</p><p>But a model that says “this child is at risk” is only useful if clinicians understand <em>why</em>.</p><p>A black box prediction cannot inform a therapy plan. It cannot explain itself to a parent. It cannot be questioned, challenged, or improved.</p><blockquote><em>“A model that cannot explain itself cannot guide therapy.”</em></blockquote><p>This is not a hypothetical problem.</p><p>In clinical settings, trust is everything.</p><p>A tool that produces a number without a rationale will not be adopted — and should not be.</p><p>Clinicians need to understand the reasoning behind a prediction before they act on it. SHAP makes that possible by assigning each feature a value for each individual prediction — showing exactly which behavioral responses pushed the model toward YES or NO, and by how much.</p><p>That is what makes this project different from a standard classifier comparison.</p><h3>3. The Dataset</h3><p>The data comes from the UCI Machine Learning Repository: the Autism Spectrum Disorder Screening dataset for children, collected using the Q-CHAT behavioral screening tool.</p><p><strong>292 children. 21 features. Balanced classes: 151 NO, 141 YES.</strong></p><p>The 10 behavioral screening questions (A1–A10):</p><p># Question A1 Does your child look at you when you call his/her name? A2 How easy is it to get eye contact with your child? A3 Does your child point to indicate that s/he wants something? A4 Does your child point to share interest with you? A5 Does your child pretend? (e.g. care for dolls, toy phone) A6 Does your child follow where you’re looking? A7 If visibly upset, does your child show signs of comfort? A8 Would you describe your child’s first words as typical? A9 Does your child use simple gestures? A10 Does your child stare at nothing with no apparent purpose?</p><p>Anyone who has spent time in ABA therapy will recognize these immediately.</p><p>They map directly to the behavioral goals tracked in real sessions — name response, joint attention, gestural communication, social referencing.</p><h3>4. Pipeline Overview</h3><p>The system moves through 8 stages:</p><ol><li>Data ingestion</li><li>Leakage detection</li><li>Correlation analysis</li><li>Preprocessing</li><li>Feature scaling</li><li>Model training</li><li>Cross-validation</li><li>SHAP explainability</li></ol><p>Each stage saves its own output chart — making every step of the pipeline auditable and reproducible.</p><h3>5. The Most Dangerous Bug Was Hidden in Plain Sight</h3><p>Before training a single model, I ran a correlation check between every feature and the ASD label.</p><p>Two columns jumped out immediately: result and age_desc.</p><p>result was a direct sum of the A1–A10 scores — the diagnosis encoded as a number and hiding inside the feature set.</p><p>Keeping it in would have given the model the answer before asking the question.</p><p>This is called <strong>data leakage</strong> — one of the most common reasons clinical ML models publish accuracy numbers that look impressive but fall apart in the real world.</p><p>Both columns were dropped before any modeling began:</p><pre>drop_cols = [&#39;result&#39;, &#39;age_desc&#39;]<br>dropped = [c for c in drop_cols if c in X.columns]<br>X = X.drop(columns=dropped)</pre><p>A full correlation analysis confirmed no remaining leakage. A4 scored highest at 0.569 — meaningful, but well within acceptable range.</p><p>The model would have to earn its results.</p><h3>6. The Scaling Mistake That Changed Accuracy by 47%</h3><p>Six classifiers were trained: Logistic Regression, Random Forest, Gradient Boosting, Decision Tree, K-Nearest Neighbor, and Support Vector Machine.</p><p>In the first version, without scaling, <strong>SVM performed at 50.8% accuracy</strong>.</p><p>A coin flip on a binary classification task.</p><p>The solution was three lines:</p><pre>scaler = StandardScaler()<br>X_train_scaled = scaler.fit_transform(X_train)<br>X_test_scaled  = scaler.transform(X_test)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nx--BoWyvfTYjcZL7ZoxVA.png" /></figure><p>After applying StandardScaler — which normalizes all features to mean zero and standard deviation one — <strong>SVM reached 98.3% accuracy</strong>.</p><p>Same model. Same data. Same hyperparameters.</p><p>SVM is a distance-based algorithm. When one feature ranges from 0 to 1 (a binary behavioral response) and another ranges from 0 to 80 (age), the model treats age as more important — not because it is, but because the numbers are larger.</p><p>Scaling puts every feature on equal footing.</p><p>In a clinical dataset mixing binary behavioral responses with continuous demographic variables, this step is not optional.</p><h3>7. Results</h3><p>After scaling, all six models were evaluated on accuracy, AUC-ROC, and 5-fold stratified cross-validation:</p><p>Model Accuracy AUC <strong>Logistic Regression</strong> <strong>98.3%</strong> <strong>1.00</strong> Support Vector Machine 98.3% 1.00 Random Forest 96.6% 1.00 Gradient Boosting 91.5% 0.98 Decision Tree 89.8% 0.90 K-Nearest Neighbor 83.1% 0.94</p><p>Logistic Regression and SVM both achieved AUC of 1.00.</p><p>Out of 59 test cases, only one was misclassified.</p><h3>8. The Problem With Black Box Clinical AI</h3><p>Most projects stop at the results table.</p><p>But a confusion matrix does not tell a clinician which behaviors to focus on.</p><p>It does not help a therapist explain a prediction to a parent.</p><p>It does not reveal whether the model is learning something real — or exploiting a statistical artifact.</p><blockquote><em>“The goal was not just accuracy. It was trust.”</em></blockquote><p>SHAP was applied to the Random Forest model to generate feature-level importance values for every child in the test set.</p><p><strong>Global view — which features matter most on average:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WlwoGJW1Dr4fj36f_M7ffw.png" /></figure><p>The top five features are all behavioral A-scores.</p><p>Demographic features — age, gender, ethnicity, country of residence — cluster near zero.</p><p>The model is not making decisions based on who a child is. It is making them based on what a child does.</p><h3>9. What the Model Learned — and What It Means for Therapy</h3><p>The most interesting part was not the ranking itself.</p><p>It was <em>which</em> behaviors rose to the top.</p><blockquote><em>“The model learned to recognize the same behaviors therapists spend years learning to identify.”</em></blockquote><p><strong>Individual view — what drove each prediction:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Uj9FY6NpVW889gXO8dojSA.png" /></figure><p>Each dot is one child. Red means a high feature value, blue means a low value.</p><p>Dots to the right push the prediction toward ASD. Dots to the left push it away.</p><p>The separation is clean.</p><p>Looking at A4 sitting at the top of both SHAP charts, I felt something click.</p><p>In ABA therapy, we distinguish between two types of pointing.</p><p><strong>Imperative pointing</strong> is when a child points to request something — “I want that.”</p><p><strong>Declarative pointing</strong> is when a child points to share an experience — “Look at that!” No request. Just the impulse to show you something.</p><p>Declarative pointing is a joint attention behavior. Its absence is one of the earliest and most clinically significant markers clinicians look for.</p><p>The model found this without being told.</p><p>From 292 data points, it learned to weight the same behavior that takes human therapists years of training to recognize.</p><p>A9 (simple gestures) and A1 (name response) follow close behind — both of which map directly to the goal areas tracked in one-on-one sessions at ICAN every day.</p><h3>10. Challenges</h3><p><strong>Leakage hides in administrative fields.</strong></p><p>The result column was not obviously named as a target proxy. Without a correlation check, it would have sailed through preprocessing undetected and inflated every accuracy metric in the pipeline.</p><p><strong>SVM without scaling looks like a broken model.</strong></p><p>50.8% accuracy looks like evidence that SVM is wrong for this dataset. The real issue was feature scale — a preprocessing decision, not a model selection one.</p><p><strong>SHAP output format changes across library versions.</strong></p><p>A compatibility check was required to handle both old and new SHAP output shapes:</p><pre>if isinstance(shap_values, list):<br>    sv = shap_values[1]<br>elif len(shap_values.shape) == 3:<br>    sv = shap_values[:, :, 1]<br>else:<br>    sv = shap_values</pre><p><strong>292 children is a small sample.</strong></p><p>StratifiedKFold cross-validation was essential. A single train/test split on a dataset this size produces unreliable estimates.</p><h3>11. Future Improvements</h3><ul><li><strong>Larger, multi-site dataset</strong> — 292 children is insufficient for clinical generalization</li><li><strong>Longitudinal tracking</strong> — apply SHAP to repeated assessments over time to track which behaviors shift most with intervention</li><li><strong>Web interface</strong> — a simple input form where a clinician enters Q-CHAT responses and receives a SHAP-explained prediction</li><li><strong>Clinician validation</strong> — does the SHAP output align with what experienced clinicians would flag? That is the real test</li><li><strong>Comparison with other explainability methods</strong> — LIME and Integrated Gradients alongside SHAP</li><li><strong>Multi-class output</strong> — predict severity level or flag specific behavioral domains rather than binary YES/NO</li></ul><h3>Conclusion</h3><p>The most important result of this project was not achieving high accuracy.</p><p>It was discovering that the model independently learned to prioritize the same behavioral patterns clinicians focus on every day: joint attention, communication, and social engagement.</p><p>That alignment matters.</p><p>In healthcare, an AI system should not only make predictions. It should help humans understand them. It should be auditable, questionable, and improvable.</p><p>A black box that scores well on a test set is not a clinical tool. It is a liability.</p><p>When AI enters healthcare, explainability is not optional.</p><p>It is responsibility.</p><p><em>Code and all charts: </em><a href="https://github.com/ssahai0307-collab/autism-screening-explainability"><em>autism-screening-explainability</em></a></p><p><em>Dataset: </em><a href="https://archive.ics.uci.edu/dataset/419/"><em>UCI ML Repository — ASD Screening Data for Children</em></a></p><p><em>Suhani Sahai — Behavioral Interventionist, ICAN</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=99c98678f28f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>