<?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 Navin on Medium]]></title>
        <description><![CDATA[Stories by Navin on Medium]]></description>
        <link>https://medium.com/@navin092546?source=rss-e475d3247339------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*2jgOHDy5DIl1lJmT</url>
            <title>Stories by Navin on Medium</title>
            <link>https://medium.com/@navin092546?source=rss-e475d3247339------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 09:21:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@navin092546/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[Finding the Core of Medical Student Distress with PCA and K-means]]></title>
            <link>https://medium.com/@navin092546/finding-the-core-of-medical-student-distress-with-pca-and-k-means-054221a6c0d0?source=rss-e475d3247339------2</link>
            <guid isPermaLink="false">https://medium.com/p/054221a6c0d0</guid>
            <category><![CDATA[medical-student]]></category>
            <category><![CDATA[mental-health]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Navin]]></dc:creator>
            <pubDate>Wed, 04 Nov 2026 10:49:00 GMT</pubDate>
            <atom:updated>2026-11-04T10:49:00.113Z</atom:updated>
            <content:encoded><![CDATA[<h4>Exploratory Item Reduction of Four Depression, Anxiety, Burnout and Quality-of-Life Instruments in Medical Students Using Principal Component Analysis and Clustering</h4><p><strong>Natthaphat Apithambaiboon · Jin Rushchano </strong>— Brain Code Camp 2026</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kzeatgauhfZu_nQ8g_XFLg.png" /></figure><h3>Background</h3><h4>Medical students are struggling, and most don’t get help</h4><p>Medical school is hard on mental health. A large meta-analysis in <em>JAMA</em> found that about <strong>27% of medical students have depression or depressive symptoms</strong> and <strong>11% report suicidal ideation</strong>. Only about <strong>16% of students who screen positive seek treatment</strong> (Rotenstein et al., 2016).</p><p>So the problem is twofold: distress is common, and most of it goes untreated. Screening is how the faculty notices students who are struggling and refers them for help, but it only works when students answer every item carefully and the screening is repeated across all six years of the curriculum.</p><h4>The friction: screening takes too long</h4><p>At our school, the Faculty of Medicine Ramathibodi Hospital, the annual mental-health survey asks students to complete at least four standard questionnaires:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wt8uSeUTtjBSbOM4JhYj2A.png" /></figure><p>These four alone add up to <strong>57 questions</strong>. Each tool is well validated, and together they give a full picture of a student’s wellbeing. But length has a cost. Survey research consistently shows that longer questionnaires get <strong>fewer responses, more people quitting partway through, and more careless “just click anything” answers</strong> (Galesic &amp; Bosnjak, 2009; Rolstad et al., 2011; Edwards et al., 2009).</p><h3>The questionnaires overlap</h3><p>There is a second issue. These four tools are not independent. When we compute the correlation between every pair of the 57 items, <strong>almost all correlations are positive</strong>. A student who scores badly on depression items tends to score badly on anxiety, burnout and quality-of-life items too (Figure 1).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4KvmrL6s7I4iCULw7O3moQ.png" /><figcaption><strong>Figure </strong>1<strong>. </strong>Correlation matrix of all 57 items (N = 307 students). Every item was first aligned so that a higher score always means more distress (see Step 1). Almost every cell is positive, so the four questionnaires overlap.</figcaption></figure><p>This matches earlier work by our seniors, P’Palm, P’Joe and their colleagues. Using <strong>network analysis</strong> on 701 Ramathibodi medical students, they treated each symptom as a node in a network and showed that depression, anxiety, burnout and quality-of-life domains are <strong>tightly interconnected</strong>, with quality of life playing a protective role against psychological distress (Wongjarupun et al., <em>The Protective Role of Quality of Life in Psychological Distress: A Network Analysis in Medical Students</em>).</p><p>If the questionnaires overlap this much, some questions must be <strong>redundant</strong>. They partly measure the same thing. That raised our question: how many of the 57 do we actually need?</p><h3>Project Question</h3><p>We had two questions to answer:</p><ol><li><strong>Reduction.</strong> Can we reduce the number of items while keeping the ability to screen for psychological distress, as a first step toward a <em>candidate short form</em>?</li><li><strong>Understanding.</strong> What latent dimensions sit underneath these 57 items? Which groups of questions “go together,” and what do those groups mean?</li></ol><h3>Methodology</h3><h4>The data</h4><p>We used the <strong>2025 annual mental-health survey of Ramathibodi medical students</strong>. After cleaning, the analytic sample was <strong>307 students</strong> (years 2–6; 57% female, 43% male), each answering all 57 items.</p><p>Our pipeline has five steps:</p><ol><li><strong>Align, standardize and transpose </strong>the data</li><li><strong>PCA</strong> (Principal Component Analysis)</li><li><strong>Choose the number of components</strong> with a scree plot and parallel analysis</li><li><strong>K-means clustering</strong> of the items, checked with silhouette scores</li><li><strong>Select one item per cluster</strong>: the one closest to the cluster’s centroid</li></ol><h4>Step 1: Align, standardize and transpose the data</h4><p>On some items, a higher score means more distress (e.g., PHQ-9 item 2: <em>“ไม่สบายใจ ซึมเศร้า หรือท้อแท้”</em>); meanwhile, higher score means better wellbeing on some items (e.g., WHOQOL-BREF item 4: <em>“ท่านพอใจกับการนอนหลับของท่านมากน้อยเพียงใด”</em>). We <strong>reverse-scored</strong> every positively worded item (all WHOQOL-BREF items and the MBI <strong>efficacy</strong> items) so that <strong>a higher score always means more distress</strong>. Then we <strong>z-scored each item</strong> so that items with different response scales count equally.</p><p>Finally, we <strong>transposed</strong> the data. A survey spreadsheet usually has one row per student and one column per question, and PCA treats each row as a data point. Our goal was to map and group the questions, not the students, so we flipped the table: each row became one item and each column one student. The final data matrix is <strong>57 × 307</strong> (57 items × 307 students).</p><h4>Step 2: PCA, and why we chose it</h4><p><strong>What PCA does.</strong> PCA uses linear algebra to find a few hidden (latent) dimensions, called principal components (PCs), that capture most of the variation shared by many variables. This makes it a dimensionality-reduction method: 57 overlapping items can be summarized by a handful of PCs.</p><p><strong>An unusual move: items as points, not students.</strong> Because we transposed the data in Step 1, each of the 57 items is a point described by the answers of 307 students. We ran PCA through <strong>Singular Value Decomposition (SVD)</strong>:</p><p><strong>A = U · S · Vᵀ</strong></p><p>where <strong>A</strong> is the 57 × 307 matrix of z-scored answers. <strong>U · S</strong> gives each item’s coordinates (its <em>loadings</em>) on each component. Because A·Aᵀ/n is exactly the items’ correlation matrix, this is mathematically the same as standard PCA on item correlations. The advantage is that it hands us a <strong>map of the items</strong> that we can cluster directly in the next steps (Figure 2).</p><p><strong>Why not just call scikit-learn’s PCA?</strong> Its PCA class always centres each column before it decomposes the matrix. In our transposed matrix the columns are students, so it would subtract each student’s average score across all 57 items. That average is almost exactly what PC1 measures (r = 0.997 with the students’ PC1 scores), so the general-distress dimension would be wiped out: the first component would explain 11.3% of the variance instead of 27.0%, and it would simply be our PC2. Our rows (items) were already centred by the z-scoring in Step 1, so we ran SVD directly with NumPy and left the columns uncentred. (Running scikit-learn’s PCA on the original, untransposed table gives exactly the same item loadings as our SVD, because there the columns are the items.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I5NDPe6hOOL1uL_XZCM_1Q.png" /><figcaption><strong>Figure </strong>2<strong>. </strong>Singular value decomposition (SVD) of the data matrix A (57 items × 307 students). U · S gives each item’s position on each principal axis. Keeping the first five axes retains 49.3% of the total variance.</figcaption></figure><p><strong>Why PCA, and not UMAP or t-SNE?</strong></p><ul><li><strong>The output is interpretable.</strong> Each loading is simply the correlation between an item and a component, so we can read off what each component “means.”</li><li><strong>It is deterministic and transparent.</strong> The same data always give the same answer, and every step is linear algebra that can be checked by hand.</li><li><strong>It lets us keep the original questions.</strong> PCA on its own produces <em>new</em> variables that blend all 57 items, and nobody can answer “PC1” on a survey. We follow the <strong>Principal Feature Analysis (PFA)</strong> idea of Lu et al. (2007): run PCA, cluster the items in PCA space, then pick the <strong>real item</strong> that best represents each cluster. The short form stays made of familiar, already-validated questions.</li><li><strong>Why not UMAP or t-SNE? </strong>They fit our pipeline poorly. K-means and centroid selection rely on Euclidean distances, and these non-linear maps do not preserve distances between points or clusters. They also give no loadings, so we could not read what each dimension means, which is the “understanding” half of our goal.</li></ul><h4>Step 3: How many components to keep?</h4><p>We compared four common rules for choosing the number of PCs (table below). After exploring each method’s benefits and limitations, e used parallel analysis, which shuffles each item’s answers across students to see how much variance pure noise would explain, and keeps only the components that beat it. Five components passed (Figure 3).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HcH9_uoLx6j53qiGp7-_Dg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NMHyyUofZv479qliwrEFzA.png" /><figcaption><strong>Figure </strong>3<strong>. </strong>Scree plot with parallel analysis. Bars show the variance explained by each component, and the dashed line shows what shuffled (random) data would explain. Only PC1–PC5 rise above it.</figcaption></figure><h4>Step 4: Group the items with K-means</h4><p>With each item now described by just <strong>5 numbers</strong> (its loadings on PC1–PC5), we ran <strong>K-means clustering</strong> to find groups of items that sit close together in this 5-D space. We tried <strong>K = 2 to 10</strong> (100 random starts each).</p><p>To choose K we used the <strong>mean</strong> <strong>silhouette score</strong>. For each item it compares how close the item is to its own cluster with how close it is to the nearest other cluster. Scores run from −1 to 1, and higher means cleaner, better-separated clusters.</p><h4>Step 5: Pick one representative item per cluster</h4><p>Following PFA, we chose one representative item in each cluster by calculating the item <strong>closest to each cluster’s centroid</strong> (the cluster’s average position). To clarify, the item nearest the centre is the cluster’s <em>central feature</em>, the one most typical of its group and least redundant with the other clusters.</p><h3>Results</h3><h4>Five components explain about half of everything</h4><p>Parallel analysis kept <strong>5 components</strong>, together explaining <strong>49.3%</strong> of the total variance (PC1 alone: 27.0%). Here is how we interpret the five PCs (Figure 4):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6okwJPXqQzSh4PEUGOi5rQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ymmy2kNMSEjx0MylMTb2NA.png" /><figcaption><strong>Figure </strong>4<strong>. </strong>Loadings of the 57 items on PC1–PC5, grouped by questionnaire. Red marks a positive loading and blue a negative one. PC1 is positive for every item.</figcaption></figure><p>PC1 tells us the four questionnaires share a large common core. PC2–PC4 tell us that, beyond that core, burnout, anxiety and life circumstances each carry information of their own.</p><h4>K-means finds five clusters</h4><p>In 5 dimensions, K = 5 gave the highest mean silhouette (<strong>0.485</strong>), so we split the 57 items into five clusters (Figure 5). The table below lists them from most to least distinct.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YscMvYsk01q5u_Uw0P-vrA.png" /><figcaption><strong>Figure </strong>6<strong>. </strong>Items in each of the five K-means clusters, ordered by mean silhouette. Cell colour shows the questionnaire subscale. Two WHOQOL-BREF items, WHO06r and WHO09r (red box), join the PHQ-9 and GAD-7 items in the depression &amp; anxiety cluster.</figcaption></figure><p>Figure 6 lists the items in each cluster, from the most distinct cluster at the top to the least distinct at the bottom. The first two rows show that <strong>burnout splits in two</strong>. All six MBI efficacy items form their own cluster (Reduced efficacy), apart from the nine exhaustion and cynicism items (Burnout core). Feeling drained and detached from one’s studies and feeling ineffective in class behave as two different experiences, which matches the three-part model behind the MBI.</p><p><strong>Quality of life also splits in two</strong>, in rows 3 and 5. Most psychological, social and overall WHOQOL-BREF items group together as Psychosocial wellbeing, while the physical and environmental items, such as pain, sleep, money, housing and access to health services, form a separate cluster. How students feel about themselves and their relationships moves apart from the condition of their body and living environment.</p><p><strong>In row 4, depression and anxiety merge. </strong>All nine PHQ-9 items and all seven GAD-7 items are grouped together, so in this sample they behave as one shared distress signal rather than two separate conditions.</p><p>The same row also holds two items from the WHOQOL-BREF psychological domain, WHO06r and WHO09r (red box), which joined this cluster instead of staying with the other quality-of-life items. Their wording explains why. WHO06r (“<em>ท่านมีสมาธิดีเพียงใด</em>”) asks about concentration, just like PHQ7 (“<em>สมาธิไม่ดีเวลาทำอะไร เช่น ดูโทรทัศน์ หรือ ทำงานที่ต้องใช้ความตั้งใจ</em>”), and PHQ7 is the item it correlates with most strongly (r = 0.60). WHO09r (“<em>ท่านมีความรู้สึกไม่ดี เช่น รู้สึกเหงา เศร้า หดหู่ กังวล บ่อยแค่ไหน</em>”) correlates most strongly with PHQ2 (“<em>ไม่สบายใจ ซึมเศร้า หรือท้อแท้</em>”, r = 0.55). PHQ2 asks about depressed mood, one of the two core symptoms of major depressive disorder: at least one of them, depressed mood or loss of interest or pleasure, must be present for the diagnosis (American Psychiatric Association, 2013). WHO09r is also unusually close to anxiety: its average correlation with the GAD-7 items (r = 0.39) is the highest of all 26 WHOQOL-BREF items, whose median is 0.21 (Pearson r on the aligned scores, as in Figure 1).</p><h4>The five representative items</h4><p>Picking the item nearest each centroid (Figure 7) gives our candidate set:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5hXFIzxHM4AkZ3ekZUiebw.png" /><figcaption><strong>Figure </strong>7<strong>. </strong>The five clusters with 95% covariance ellipses. ✕ marks each cluster’s centroid, and the circled item is the one closest to it in the 5-D PCA space.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*co8ZEGgEmKnNT1EB3PKldA.png" /></figure><p>So we go from <strong>57 items to 5 data-driven items.</strong></p><h3>Discussion</h3><h4>What the results mean</h4><p><strong>One question for both depression and anxiety.</strong> The centroid of the depression &amp; anxiety clusteris not a PHQ-9 or GAD-7 item. It is <strong>WHO09r</strong>, a quality-of-life question about negative feelings: <em>“ท่านมีความรู้สึกไม่ดี เช่น รู้สึกเหงา เศร้า หดหู่ กังวล บ่อยแค่ไหน”</em>. That makes sense, because the question names both depressed and anxious feelings at once. This matches the Results: WHO09r correlates most strongly with PHQ2, the depressed-mood item that maps onto a core DSM-5 criterion for major depressive disorder, and it correlates more strongly with the GAD-7 items than any other WHOQOL-BREF item does. Together, this makes WHO09r a good<strong>first-stage “who needs a closer look?” flag</strong>, in the spirit of <em>transdiagnostic</em> screening. The trade-off is that one item <strong>cannot tell depression apart from anxiety</strong>. A positive flag should lead to the full PHQ-9 and GAD-7.</p><p><strong>Body image as the core of psychosocial wellbeing.</strong> The centre of the psychosocial cluster is <strong>WHO08r</strong>, <em>“ท่านยอมรับรูปร่างหน้าตาตนเองได้ไหม”</em>, which asks about accepting one’s own appearance. This was a surprise, but it fits previous findings that body-image satisfaction is consistently linked to quality of life and psychological wellbeing in university students (Baceviciene et al., 2020).</p><p><strong>The suicide item was not selected, so we put it back.</strong> PHQ9, <em>“คิดทำร้ายตนเองหรือคิดว่าถ้าตายๆไปเสียคงจะดี”</em>, is not near any centroid. This is expected: <strong>88% of students answered “not at all”</strong> (a strong floor effect), so the item varies little and sits at the edge of its cluster. Statistically it looks unimportant; however, clinically, it is a <strong>direct suicide-risk flag</strong>, and suicide-screening experts argue against dropping direct ideation questions (Galynker, Yaseen &amp; Briggs, 2014). We kept it as a mandatory sixth item. <strong>A data-driven method should not overrule clinical safety.</strong></p><p><strong>K = 5 matching 5 components is not a coincidence.</strong> It is tempting to read “5 PCs and 5 clusters” as two independent confirmations. They are not independent. Parallel analysis uses the items’ correlations, and K-means clusters the items in the space built from those same correlations. <strong>The number of dimensions largely limits the number of clusters you can find.</strong> In a follow-up check, we re-ran K-means using 2, 3, 4 and 5 dimensions, and the best K was 2, 3, 4 and 5 respectively. So K = 5 mainly reflects our choice of 5 dimensions, not separate evidence for five groups.</p><h4>Limitations</h4><ul><li><strong>Selection and evaluation used the same data.</strong> The five items were chosen from these 307 students, so how well they represent the full questionnaires here is probably optimistic. They need testing on a new, independent sample.</li><li><strong>The structure is borderline in places.</strong> PC5 only just beat the noise line (eigenvalue 1.79 vs 1.74), and K = 5 only narrowly beat K = 4 (silhouette 0.485 vs 0.475).</li><li><strong>Position in PCA space is not measurement precision.</strong> Being at the centre of a cluster means an item is <em>typical</em>. It does not mean the item measures the trait <em>precisely</em> across mild-to-severe levels.</li><li><strong>One item per domain is fragile.</strong> Single items are less reliable than multi-item scales, and the PHQ9 case shows that statistically central and clinically important are not the same thing.</li><li><strong>One faculty, one time point.</strong> The results come from a single cross-sectional survey at one medical school.</li></ul><h4>Further work</h4><p>Our five items are <strong>candidates, not a finished screener</strong>. The next steps are:</p><ol><li><strong>Content validity.</strong> Have clinicians and psychiatrists review the 5 items + PHQ9.</li><li><strong>Item–total correlation.</strong> Check how strongly each selected item correlates with the total score of its own cluster.</li><li><strong>ROC / AUC.</strong> Test how well the items detect students above established cut-offs (e.g., moderate depression, PHQ-9 ≥ 10).</li><li><strong>Compare with existing short screeners</strong> such as PHQ-2 and GAD-2.</li><li><strong>Single-item reliability.</strong></li><li><strong>Replication.</strong> Re-run the whole pipeline on an independent dataset, such as the 701-student sample from the network-analysis study, to see whether the same structure appears and to remove the circularity of testing on the data we selected from.</li></ol><h3>Takeaway</h3><p>By treating questionnaire items as points in space, PCA and K-means let us see the <strong>shape</strong> of medical student distress: one large shared core, plus distinct pockets for burnout, efficacy, depression–anxiety, inner wellbeing and life circumstances. Picking the most central question from each pocket shrinks 57 items to a <strong>5-item candidate screen</strong>.</p><p>The bigger lesson for us was that <strong>data can propose and clinicians decide</strong>. The algorithm found structure we could not see by eye, but it also dropped the one question that matters most for safety. Good computational work in mental health needs both computing power and expert human intuition.</p><h3>References</h3><ul><li>American Psychiatric Association. (2013). <em>Diagnostic and statistical manual of mental disorders</em> (5th ed.). <a href="https://doi.org/10.1176/appi.books.9780890425596">https://doi.org/10.1176/appi.books.9780890425596</a></li><li><a href="https://doi.org/10.1176/appi.books.9780890425596">Baceviciene, M., Jankauskiene, R., &amp; Balciuniene, V. (2020). The role of body image, disordered eating and lifestyle on the quality of life in Lithuanian university students. </a><em>International Journal of Environmental Research and Public Health, 17</em>(5), Article 1593. <a href="https://doi.org/10.3390/ijerph17051593">https://doi.org/10.3390/ijerph17051593</a></li><li>Edwards, P. J., et al. (2009). Methods to increase response to postal and electronic questionnaires. <em>Cochrane Database of Systematic Reviews</em>.</li><li>Galesic, M., &amp; Bosnjak, M. (2009). Effects of questionnaire length on participation and indicators of response quality in a web survey. <em>Public Opinion Quarterly</em>, 73(2), 349–360.</li><li>Galynker, I., Yaseen, Z. S., &amp; Briggs, J. (2014). Assessing risk for imminent suicide. <em>Psychiatric Annals</em>.</li><li>Lu, Y., Cohen, I., Zhou, X. S., &amp; Tian, Q. (2007). Feature selection using principal feature analysis. <em>Proceedings of the 15th ACM International Conference on Multimedia</em>, 301–304. <a href="https://doi.org/10.1145/1291233.1291297">https://doi.org/10.1145/1291233.1291297</a></li><li>Rolstad, S., Adler, J., &amp; Rydén, A. (2011). Response burden and questionnaire length: Is shorter better? <em>Value in Health</em>, 14(8), 1101–1108.</li><li>Rotenstein, L. S., et al. (2016). Prevalence of depression, depressive symptoms, and suicidal ideation among medical students: A systematic review and meta-analysis. <em>JAMA</em>, 316(21), 2214–2236.</li><li>Wongjarupun, M., Yoadsanit, S., Tam, K. M., Kaewpila, W., Thongpan, M., Kaewkamjonchai, P., &amp; Jarukasemkit, S. <em>The Protective Role of Quality of Life in Psychological Distress: A Network Analysis in Medical Students.</em></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=054221a6c0d0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>