<?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 Mohammed Anaskhan  on Medium]]></title>
        <description><![CDATA[Stories by Mohammed Anaskhan  on Medium]]></description>
        <link>https://medium.com/@smohammedanaskhan?source=rss-09da16678817------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*VZYLhtj4U-61rbS5</url>
            <title>Stories by Mohammed Anaskhan  on Medium</title>
            <link>https://medium.com/@smohammedanaskhan?source=rss-09da16678817------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 01:18:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@smohammedanaskhan/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[Detecting Dementia Through Se mantic Analysis:A Language-Centric AI Approach]]></title>
            <link>https://medium.com/@smohammedanaskhan/detecting-dementia-through-se-mantic-analysis-a-language-centric-ai-approach-ae658f42bd4d?source=rss-09da16678817------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae658f42bd4d</guid>
            <category><![CDATA[semantic-analysis]]></category>
            <category><![CDATA[language-centric]]></category>
            <category><![CDATA[detecting-dementia]]></category>
            <dc:creator><![CDATA[Mohammed Anaskhan ]]></dc:creator>
            <pubDate>Sun, 22 Mar 2026 16:10:15 GMT</pubDate>
            <atom:updated>2026-03-22T16:10:15.493Z</atom:updated>
            <content:encoded><![CDATA[<h3>Detecting Dementia Through Semantic Analysis: A Language-Centric AI Approach</h3><h3>Introduction</h3><p>Dementia is a progressive neurological condition that affects memory, reasoning, and communication. Early detection plays a crucial role in slowing its progression and improving quality of life. However, traditional diagnostic methods often depend on clinical assessments that are time-consuming, expensive, and sometimes detect the condition only at later stages.</p><p>Recent advancements in Artificial Intelligence (AI) and Natural Language Processing (NLP) offer a promising alternative: <strong>analyzing language to detect cognitive decline</strong>.</p><p>This article presents a semantic analysis–based approach to identifying dementia using speech transcripts. Instead of focusing on acoustic signals, this work emphasizes <strong>how meaning is conveyed through language</strong>, providing a non-invasive and scalable solution.</p><h3>Why Semantic Analysis?</h3><p>Language is deeply tied to cognition. As dementia progresses, it impacts not just <em>what</em> individuals say, but <em>how</em> they structure and connect ideas.</p><p>Key linguistic changes observed in dementia include:</p><ul><li>Reduced vocabulary diversity</li><li>Increased repetition and hesitation</li><li>Difficulty maintaining topic coherence</li><li>Simpler sentence structures</li><li>Lower informational content</li></ul><p>Semantic analysis allows us to capture these patterns by examining <strong>meaning, coherence, and linguistic richness</strong>.</p><h3>Dataset Overview:</h3><p>The dataset used in this study consists of transcribed speech samples collected from individuals performing natural language tasks, such as describing scenes or narrating everyday situations. These tasks are commonly used in clinical settings to evaluate cognitive function.</p><p>Each sample in the dataset includes:</p><ul><li><strong>Speech Transcript:</strong> A textual representation of spontaneous spoken language</li><li><strong>Label:</strong> A binary classification indicating whether the speaker is diagnosed with <em>Dementia</em> or <em>Non-Dementia</em></li></ul><p>The dataset contains a total of <strong>361 samples</strong>, providing a balanced representation of both classes.</p><p>Unlike scripted or controlled text data, these transcripts reflect <strong>natural, unstructured speech</strong>, which makes them particularly valuable for analysis. They capture real-world linguistic behaviors such as pauses, repetitions, incomplete thoughts, and semantic drift — all of which are critical indicators of cognitive decline.</p><p>This real-world variability introduces challenges but also ensures that the model learns patterns that are <strong>clinically relevant and practically applicable</strong>.</p><h3>Semantic Feature Engineering</h3><p>To effectively model cognitive behavior through language, a comprehensive set of semantic and linguistic features was designed. These features aim to capture subtle changes in vocabulary usage, sentence structure, coherence, and fluency — all of which are known indicators of cognitive decline in dementia.</p><p>Each feature is carefully chosen to reflect a specific aspect of human language that is affected as cognitive abilities deteriorate.</p><h4>1. Vocabulary Richness (Type-Token Ratio)</h4><p>Vocabulary richness is measured using the <strong>Type-Token Ratio (TTR)</strong>, which represents the diversity of words used in speech.</p><p>A higher TTR indicates a richer and more varied vocabulary, whereas a lower TTR suggests repetitive language usage. Individuals with dementia often rely on a limited set of familiar words, leading to reduced lexical diversity.</p><p>This makes TTR a strong indicator of <strong>lexical degradation and memory retrieval difficulty</strong>.</p><h4>2. Dependency Length (Grammar Complexity)</h4><p>Dependency length measures the average distance between syntactically related words in a sentence.</p><p>In cognitively healthy individuals, sentences tend to have more complex grammatical structures, resulting in longer dependency relationships. In contrast, dementia patients often produce shorter and simpler sentences, leading to reduced dependency length.</p><p>This feature reflects <strong>declining grammatical complexity and reduced cognitive processing capacity</strong>.</p><h4>3. Coordination Index (Sentence Connectivity)</h4><p>The coordination index quantifies the use of coordinating conjunctions such as <em>and</em>, <em>but</em>, and <em>or</em>.</p><p>These conjunctions help connect ideas and maintain logical flow within speech. A lower coordination index indicates fragmented or disconnected thoughts, which is commonly observed in dementia.</p><p>This feature captures the ability to <strong>link ideas and maintain logical continuity</strong>.</p><h4>4. Information Units</h4><p>Information units represent meaningful content elements in speech, typically including nouns, verbs, and adjectives.</p><p>A higher number of information units indicates that the speaker is effectively conveying meaningful information. In dementia, speech often becomes vague and less informative, resulting in fewer identifiable information units.</p><p>This feature directly reflects <strong>loss of expressive clarity and reduced content richness</strong>.</p><h4>5. Lexical Density</h4><p>Lexical density measures the proportion of content words (nouns, verbs, adjectives) relative to the total number of words.</p><p>Higher lexical density indicates more informative and meaningful speech, while lower density suggests overuse of filler or function words.</p><p>Dementia patients tend to produce less content-rich speech, making lexical density an important indicator of <strong>semantic degradation</strong>.</p><h4>6. Subordinators (Clause Complexity)</h4><p>Subordinators such as <em>because</em>, <em>although</em>, and <em>while</em> are used to form complex sentence structures.</p><p>The frequency of these words reflects the ability to construct hierarchical and logically connected ideas. A reduction in subordinators indicates simpler sentence formation and reduced cognitive flexibility.</p><p>This feature captures <strong>decline in complex reasoning and sentence structuring ability</strong>.</p><h4>7. Content Density</h4><p>Content density measures how much meaningful information is conveyed within a given amount of speech.</p><p>Lower content density suggests that the speaker is using more words to convey less information, often due to difficulty in retrieving relevant concepts.</p><p>This is a key indicator of <strong>inefficient communication and cognitive slowing</strong>.</p><h4>8. Repetition Rate</h4><p>Repetition rate quantifies how frequently words or phrases are repeated within a transcript.</p><p>While some repetition is natural in speech, excessive repetition is a strong marker of dementia. It often occurs due to memory lapses or difficulty retrieving new words.</p><p>This feature is highly indicative of <strong>perseveration and cognitive impairment</strong>.</p><h4>9. Filled Pause Ratio</h4><p>Filled pauses include hesitation markers such as <em>uh</em>, <em>um</em>, and <em>ah</em>.</p><p>An increased frequency of these fillers indicates difficulty in word retrieval and speech planning. Dementia patients often exhibit higher hesitation rates as they struggle to formulate coherent sentences.</p><p>This feature reflects <strong>speech disfluency and cognitive hesitation</strong>.</p><h4>10. Semantic Coherence (Topic Maintenance)</h4><p>Semantic coherence measures how well consecutive sentences relate to each other in meaning.</p><p>In healthy speech, ideas follow a logical progression. However, dementia patients often drift off-topic or produce disconnected statements.</p><p>Lower semantic coherence indicates difficulty in maintaining a consistent topic, making it a crucial feature for detecting <strong>loss of contextual continuity</strong>.</p><h4>11. Fluency Score</h4><p>Fluency score evaluates the smoothness and continuity of speech.</p><p>It considers factors such as sentence length, flow, and interruptions. Reduced fluency is commonly observed in dementia due to pauses, hesitations, and incomplete thoughts.</p><p>This feature captures <strong>overall speech fluidity and cognitive processing efficiency</strong>.</p><h4>12. Syntactic Complexity</h4><p>Syntactic complexity measures the depth and structure of sentences, including the use of clauses and hierarchical relationships.</p><p>Healthy individuals tend to produce structurally rich sentences, while dementia patients often rely on simpler constructions.</p><p>This feature reflects <strong>decline in linguistic sophistication and cognitive capacity</strong>.</p><h3>Semantic Embeddings</h3><p>While handcrafted linguistic features capture explicit patterns in language, they may not fully represent the deeper contextual meaning of speech. To address this, we incorporated <strong>semantic embeddings</strong> using advanced transformer-based models.</p><p>In this work, we utilized <strong>Sentence Transformers (MPNet)</strong> to convert each transcript into a dense numerical representation that encodes semantic information.</p><h3>Feature Representation and Model Selection</h3><p>To effectively model cognitive patterns from language, a hybrid feature representation was developed by combining handcrafted linguistic features with deep semantic embeddings. The linguistic features capture interpretable aspects of speech such as vocabulary richness, syntactic complexity, repetition, fluency, and coherence, providing insights into how cognitive decline manifests in language structure. Complementing this, each transcript is encoded into a 768-dimensional semantic vector using Sentence Transformers (MPNet), enabling the model to capture contextual meaning, relationships between words, and subtle semantic variations that are difficult to quantify manually. Together, these components form a comprehensive representation that reflects both the explicit and implicit characteristics of language.</p><p>Given the high dimensionality of the combined feature space and the relatively small dataset size, Principal Component Analysis (PCA) is applied to reduce dimensionality while preserving the most informative patterns, thereby improving generalization and mitigating overfitting. For classification, the XGBoost algorithm is employed due to its robustness to noise, strong performance on structured and high-dimensional data, and effectiveness with limited samples. Its built-in regularization and ability to provide feature importance further enhance its suitability for healthcare applications, where both performance and interpretability are essential.</p><h3>Results</h3><p>The semantic analysis–based model achieved an overall accuracy of approximately <strong>74%</strong>, with balanced performance across both dementia and non-dementia classes. The model effectively captured key language patterns such as coherence, vocabulary usage, and repetition, which are strong indicators of cognitive decline.</p><p>Despite the relatively small dataset size of <strong>361 samples</strong>, the results demonstrate that semantic features alone can provide meaningful predictive power. This highlights the potential of language-based analysis as a scalable and non-invasive approach for early dementia detection.</p><h3>Key Insights</h3><ul><li>Semantic degradation is a strong indicator of dementia</li><li>Loss of coherence and increased repetition are highly discriminative</li><li>Vocabulary richness and syntactic complexity decline significantly</li><li>Combining handcrafted features with embeddings improves performance</li></ul><h3>Real-World Applications</h3><ul><li>Early dementia screening tools</li><li>Remote cognitive assessment systems</li><li>AI-driven telemedicine platforms</li><li>Continuous monitoring through voice-based systems</li></ul><h3>Conclusion</h3><p>Semantic analysis provides a powerful and scalable approach for detecting dementia through language. By focusing on how meaning is expressed, it is possible to uncover early signs of cognitive decline using non-invasive methods.</p><p>This approach has strong potential to transform cognitive healthcare by enabling early detection, improving accessibility, and supporting clinical decision-making.</p><h3>About the Author</h3><p>Mohammed Anaskhan S<br>AI &amp; Machine Learning Enthusiast<br>Focused on NLP, Speech Intelligence, and Healthcare AI</p><p>Semantic analysis allows us to capture these patterns by examining <strong>meaning, coherence, and linguistic richness</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae658f42bd4d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unlocking Real-Time Vehicle Fuel Consumption: How Machine Learning Drives Smarter Mobility]]></title>
            <link>https://medium.com/@smohammedanaskhan/unlocking-real-time-vehicle-fuel-consumption-how-machine-learning-drives-smarter-mobility-2f48980df1a5?source=rss-09da16678817------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f48980df1a5</guid>
            <dc:creator><![CDATA[Mohammed Anaskhan ]]></dc:creator>
            <pubDate>Thu, 06 Nov 2025 02:15:44 GMT</pubDate>
            <atom:updated>2025-11-06T02:15:44.640Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Predicting fuel consumption for a vehicle in real time is even more complicated than might first be perceived. Conventional models are based on physics-influenced equations and require extensive calibration for different vehicles which is difficult to generalize and adapt under changing driving conditions. As vehicle sensor data becomes more prevalent, machine learning offers a method of prediction using data, while drawing complex relationships from observed, real-world conditions.</em></p><h4>Understanding the Problem :</h4><p>Traditional approaches of calculating fuel consumption are based on thermodynamic and dynamic models that suffer from assumptions. Traditional models cannot handle driving behavior that is non-linear and stochastic; influenced by traffic, terrain, and habits of the driver. This led us to investigate if machine learning models would provide more accurate and adaptive fuel rate estimates based on learning patterns directly from the data rather than physical formulas alone.</p><h4>Methodology :</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Je8FMDtPBl_F-oy5sWLL7g.png" /><figcaption>1. System Architecture</figcaption></figure><p><em>The research applied the Vehicle Energy Dataset (VED), which includes a substantial amount of high-frequency sensor data from real vehicles. The data was all pre-processed thoroughly to improve data consistency and prepare it for modeling.</em></p><p>The importance of data preprocessing is crucial; it is responsible for supporting dataset trustworthiness and improvement of predictive performance. The following indicative steps were consistently employed to prepare the Vehicle Energy Dataset (VED) for analysis:</p><p>The first step was data cleaning, during which irrelevant columns (Vehicle ID, Trip Number, Timestamp) were dropped because they did not contain meaningful information for the predictive task at hand. This helped reduce dimensionality of the data (along with helping to eliminate unnecessary noise).</p><p>After that, missing values were handled. Because of sensor dropouts or an incomplete recording, there were multiple NaNs (not a number) across numerical attributes. A thorough inspection was made to know both the total count and percentage of NaN per feature, which was helpful to understand the quality of the data. The missing values were addressed by replacing some values with zeros for negligibly missing values, while other features were replaced with mean values when the proportion of missing was moderately high, to make the dataset continuous without biasing the dataset.</p><p>Some continuous features were standardized so that all numerical scales were consistent. The StandardScaler technique was applied to all continuous features into a zero mean and unit variance. Standardizing was critical for algorithms which were scale sensitive (i.e., SVR, Gradient Boosting) to make sure that the lower valued features were not disproportionably weighted because they are smaller values, in r deliberate manner;”</p><h4>Model Development:</h4><p>To estimate the vehicle fuel consumption in real-time, six supervised regression models were devised and analyzed. The models were created to learn the associations between the important vehicle parameters (engine RPM, vehicle speed, and accelerator pedal position) with the fuel consumption rate. The models used for this study were:</p><p><strong>Linear Regression (LR): </strong>This is a baseline model that assumes a linear relationship exists between the features to the target values.</p><p><strong>Decision Tree (DT):</strong> This is a non-linear model that segments the data using hierarchical splits on different features to optimize prediction error.</p><p><strong>Random Forest (RF):</strong> This is an ensemble of multiple decision trees which improves prediction stability, and minimizes overfitting by averaging predictions.</p><p><strong>Support Vector Regressor (SVR):</strong> This is a kernel-based model that models complex, non-linear relationships structured in the data.</p><p><strong>Gradient Boosting (GB):</strong> This is a sequential ensemble model that increases prediction accuracy through the iterative minimization of residual errors.</p><p><strong>XGBoost (XGB):</strong> This is an optimized version of gradient boosting designed to speed up training, scale, and provide regularization.</p><p>The dataset was sub-divided into a train-test split (80%-20%) to assure model evaluations were bias-free. The models were trained on the same pre-processed data to allow for comparisons to be reliably determined.</p><h4>Key Findings :</h4><p>Of all the models tested, the Random Forest Regressor demonstrated the best balanced accuracy and reliability, resulting in an R² score of 0.8038 and good generalization ability. Ensemble models including Random Forest, Gradient Boosting, and XGBoost were generally more effective than the simpler models of Linear Regression and SVR, primarily due to their ability to model non-linear relationships and reduce variance through aggregation. Feature importance analysis revealed that Engine RPM, Vehicle Speed, and Accelerator Pedal Position were the strongest predictors of fuel rate, establishing that both mechanical parameters and driver behavior have a substantial impact on instantaneous fuel consumption.</p><h4>Implications:</h4><p>The evidence demonstrates that machine learning can provide a feasible solution for fuel consumption estimation at any scale. Predicting fuel consumption in real-time could have valuable implications for Fleet management: allowing for the routing of vehicles which can minimize fuel use or schedule maintenance. Smart transportation systems: helping guide adaptive driving, and other strategies for reduced emissions. Energy optimization: improving sustainability while lowering costs.</p><h4><strong>Future Works:</strong></h4><p>Future research will concentrate on improving the predictive framework by including <strong>temporal deep learning architectures, principally Long Short-Term Memory networks</strong>, to better model sequence and time-dependent relationships in vehicle telemetry data. Additional enhancements will include the integration of <strong>environmental parameters</strong>, including, ambient temperature, roadway grade, and traffic conditions, to enhance contextual accuracy. Also, the study will seek to accomplish <strong>multi-vehicle generalization</strong>, where the model can generalize across various vehicle classes and driving conditions for deployment in real-world conditions.</p><h4>Reflection:</h4><p>This research greatly increased my knowledge of the machine learning workflow, from data collection and preprocessing (especially dealing with NaN) to evaluating models and interpreting features.<br>I learned that the quality of the data integrity and the preprocessing the data undergoes usually determines the success of predictive models.</p><p>Overall, this project demonstrated how data-driven modeling can help improve transportation efficiencies and provide assistance to the global transition to sustainable mobility.</p><h3>Tags</h3><p>#MachineLearning #DataScience #Transportation #Sustainability #ArtificialIntelligence</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f48980df1a5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>