<?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 Minahil Ali on Medium]]></title>
        <description><![CDATA[Stories by Minahil Ali on Medium]]></description>
        <link>https://medium.com/@minahilali0q?source=rss-065dbebffe77------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*KMxw4A91sC8HxfagzPvrKw.jpeg</url>
            <title>Stories by Minahil Ali on Medium</title>
            <link>https://medium.com/@minahilali0q?source=rss-065dbebffe77------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 00:38:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@minahilali0q/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[Building a Reliable Diabetes Prediction Model: A Machine Learning Approach with SVM (Achieving 77.3%]]></title>
            <link>https://medium.com/@minahilali0q/building-a-reliable-diabetes-prediction-model-a-machine-learning-approach-with-svm-achieving-77-3-f17b50c87fd0?source=rss-065dbebffe77------2</link>
            <guid isPermaLink="false">https://medium.com/p/f17b50c87fd0</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[health-technology]]></category>
            <dc:creator><![CDATA[Minahil Ali]]></dc:creator>
            <pubDate>Sun, 23 Nov 2025 11:37:53 GMT</pubDate>
            <atom:updated>2025-11-23T11:37:53.259Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building a Reliable Diabetes Prediction Model: A Machine Learning Approach with SVM (Achieving 77.3% Accuracy)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DlfFFSf9LXWkMVw10LsN-w.png" /></figure><h3>Introduction: The Critical Need for Early Detection</h3><p>Diabetes is not just a health concern; it’s a global health crisis, affecting millions worldwide. For patients, early diagnosis is absolutely critical for effective treatment and preventing severe long-term complications.</p><p>This project details the development and validation of a machine learning classifier designed to tackle this challenge: building a reliable, data-driven system that can accurately predict the onset of diabetes based on standard diagnostic measurements.</p><h3>1. The Data Foundation</h3><p>For this classification task, we utilized the widely recognized <strong>PIMA Indians Diabetes Dataset</strong>.</p><ul><li><strong>Dataset Size:</strong> 768 patient records.</li><li><strong>Input Features:</strong> 8 diagnostic features, including Pregnancies, Glucose, Blood Pressure, BMI, and Age, which serve as the key predictors.</li><li><strong>Target:</strong> A binary outcome: 0 for Non-Diabetic and 1 for Diabetic.</li></ul><p>While the data provided a solid benchmark, it had a natural class imbalance (approximately 65% Non-Diabetic and 35% Diabetic), which required careful handling during the split and evaluation phases.</p><h3>2. A Rigorous Preprocessing Pipeline</h3><p>Before any model training could begin, two crucial preprocessing steps were executed in our Google Colaboratory environment:</p><h3>Data Standardization (The Foundation for SVM)</h3><p>An algorithm like Support Vector Machine (SVM) is sensitive to the magnitude of features. For example, Glucose levels have a much larger range than a feature like Age, which can bias the model.</p><ul><li><strong>Solution:</strong> We used the StandardScaler from the scikit-learn library. This transformed every feature to have a mean (µ) of 0 and a standard deviation (σ) of 1 , ensuring all inputs contributed equally to the learning process.</li></ul><h3>Stratified Train-Test Split (Preventing Bias)</h3><p>We divided the standardized data into training and testing sets: 80% for training and 20% for testing.</p><ul><li><strong>Key Technique:</strong> To maintain the integrity of our data, we performed a <strong>stratified split</strong>. This guaranteed that both the training and test sets contained the original proportion of diabetic and non-diabetic cases, effectively preventing sampling bias in our evaluation.</li></ul><h3>3. Model Selection: The Power of Support Vector Machines</h3><p>For this binary classification challenge, a <strong>Support Vector Machine (SVM) classifier with a Linear Kernel</strong> was chosen.</p><p>The core idea of the SVM algorithm is elegant: it seeks to find the optimal separating line, or <strong>hyperplane</strong>, that maximizes the distance (the margin) between the closest data points of the two classes. These closest points are known as <strong>Support Vectors</strong>.</p><p>By maximizing this margin, the SVM aims to achieve the best possible generalization capability, making it a robust choice for distinguishing a diabetic profile from a non-diabetic profile.</p><h3>4. Results and Validation</h3><p>After training the SVM classifier on the 80% training data, we evaluated its performance on the completely unseen 20% test data using the Accuracy Score.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kF--Kd8akaKHa4Th5tGNag.png" /></figure><h3>Key Finding: Minimal Overfitting</h3><p>The most significant finding is the <strong>closeness between the training and testing accuracy</strong>, with a difference of approximately just 1.39%. This is a strong indicator of a stable and reliable model. It proves the model learned the underlying patterns without simply memorizing the training data, demonstrating good generalization capability.</p><h3>Conclusion and Future Directions</h3><p>This project successfully built and validated an effective machine learning pipeline, achieving an overall <strong>Test Accuracy of approximately 77.3%</strong> for early diabetes detection using an SVM classifier.</p><p>The project validated the importance of strong foundational steps like data standardization and stratified splitting, which are critical for building reliable predictive systems.</p><p><strong>Future Work:</strong> While the results are promising, future improvements will focus on enhancing model generalization by:</p><ul><li>Incorporating larger, more diverse datasets.</li><li>Exploring the integration of additional features, such as lifestyle factors, to further increase predictive capabilities.</li></ul><h3>🔗 Explore the Full Project</h3><p>The complete Python code (Jupyter Notebook), methodology report, and dataset are all available on the public GitHub repository.</p><p>GitHub Repository (Code &amp; Report):</p><p><a href="https://github.com/MinahilAhmedAli/Diabetes-Prediction-Model-Machine-Learning-SVM-Classifier-">https://github.com/MinahilAhmedAli/Diabetes-Prediction-Model-Machine-Learning-SVM-Classifier-</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f17b50c87fd0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pakistan: A Nation Born in Sacrifice, Tested in Survival, Searching for Its Soul]]></title>
            <link>https://medium.com/@minahilali0q/pakistan-a-nation-born-in-sacrifice-tested-in-survival-searching-for-its-soul-c0eed8a1d9aa?source=rss-065dbebffe77------2</link>
            <guid isPermaLink="false">https://medium.com/p/c0eed8a1d9aa</guid>
            <dc:creator><![CDATA[Minahil Ali]]></dc:creator>
            <pubDate>Thu, 02 Oct 2025 18:47:10 GMT</pubDate>
            <atom:updated>2025-10-02T18:47:10.434Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/612/0*1joZ6soTktEwwAqg.jpg" /></figure><p>In August 1947, the world witnessed a miracle , the birth of Pakistan. But let’s be honest it wasn’t a birth in comfort. It was a birth soaked in blood, drenched in sacrifice, and carried on the shoulders of millions who abandoned everything except faith. Trains arrived full… not of passengers, but of corpses. Families slept under open skies with nothing but hunger and hope. Pakistan didn’t just start with challenges; it started with tragedies.</p><blockquote><strong><em>وَاصْبِرْ وَمَا صَبْرُكَ إِلَّا بِاللَّهِ</em></strong><em><br> </em>“Be patient, and your patience is only through Allah.”<em> (Qur’an 16:127)</em></blockquote><p>It was this very patience and faith that allowed a fragile nation to rise from the ashes.</p><h3>1947: Challenges of a Newborn Nation</h3><p>Imagine a country without proper offices, no files, no institutions, and no funds in its treasury. A state created, but stripped of its resources. Refugees poured in by the millions, desperate for food and shelter. India withheld assets and within weeks Pakistan faced its first war over Kashmir. For any ordinary state, survival itself would have been impossible. But Pakistan survived because it was never meant to be ordinary.</p><blockquote><strong><em>فَإِنَّ مَعَ الْعُسْرِ يُسْرًا . إِنَّ مَعَ الْعُسْرِ يُسْرًا</em></strong><em><br> </em>“Indeed, with hardship comes ease. Surely, with hardship comes ease.”<em> (Qur’an 94:5–6)</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*d8B9uMKc7pYI10c4.jpg" /></figure><h3>Today: A Different Battlefield</h3><p>Fast forward 78 years, and here we are. The nature of challenges has changed, but the intensity hasn’t.</p><ul><li><strong>Economic collapse</strong>: Families crushed under inflation, youth drowning in unemployment, and a nation shackled by foreign debt.</li><li><strong>Political instability</strong>: Governments rise and fall like sandcastles in the tide, while corruption eats away at the core.</li><li><strong>Education and healthcare</strong>: Millions of children never see a classroom. Hospitals struggle with resources.</li><li><strong>Social fractures</strong>: Sectarianism, class divides, and moral decay eat away at the unity we once dreamed of.</li><li><strong>Global pressure</strong>: Kashmir remains unresolved, Palestine cries for justice, and Pakistan stands cornered on the international stage.</li></ul><p>This is not just a list of issues. This is an alarm bell. A warning that history will not forgive us if we fail to act.</p><blockquote><strong><em>إِنَّ اللَّهَ لَا يُغَيِّرُ مَا بِقَوْمٍ حَتَّىٰ يُغَيِّرُوا مَا بِأَنفُسِهِمْ</em></strong><em><br> </em>“Indeed, Allah will not change the condition of a people until they change what is within themselves.”<em> (Qur’an 13:11)</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Y9MqqDkdDJg3P4M-.jpg" /></figure><h3>What Islamic Ideology Offers Us</h3><p>Pakistan was created in the name of Islam. If we forget that foundation, we lose our identity. But if we return to it, we might just find our cure.</p><ul><li><strong>Justice as the backbone:</strong> <em>“Indeed, Allah commands justice and excellence…”</em> (Qur’an 16:90)</li><li><strong>Education as power:</strong> The Prophet ﷺ said: <em>“Seeking knowledge is an obligation upon every Muslim.”</em></li><li><strong>Equality and brotherhood:</strong> <em>“Indeed the believers are but brothers…”</em> (Qur’an 49:10)</li><li><strong>Economy with compassion:</strong> Islam commands zakat and prohibits riba (interest) to ensure fairness.</li><li><strong>Leaders of integrity:</strong> <em>“The best of your leaders are those whom you love and who love you, who pray for you and you pray for them.”</em> (Hadith)</li><li><strong>Moral revival:</strong> Without character, no nation can stand.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WSNcQ1j-UT_fI1qD.jpg" /></figure><h3>A Call to Conscience</h3><p>The truth is bitter, Pakistan is still fighting for survival not against external enemies but against its own failures. The same spirit that carried our ancestors through blood-soaked migrations is what we need today. But hope is not enough. Faith is not enough. Action, rooted in justice and Islamic values, is what can rescue Pakistan from drowning.</p><blockquote><strong><em>وَاعْتَصِمُوا بِحَبْلِ اللَّهِ جَمِيعًا وَلَا تَفَرَّقُوا</em></strong><em><br> </em>“Hold firmly to the rope of Allah all together and do not become divided.”<em> (Qur’an 3:103)</em></blockquote><p>If 1947 was a story of sacrifice, let today be a story of revival. Pakistan was not created to vanish on the sidelines of history. It was created to shine. And shine it will the day we return to the very ideology that gave it life.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c0eed8a1d9aa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Climate Change in Pakistan and its Impacts: An Analysis in the Context of Agricultural Economy”]]></title>
            <link>https://medium.com/@minahilali0q/climate-change-in-pakistan-and-its-impacts-an-analysis-in-the-context-of-agricultural-economy-7477a4607227?source=rss-065dbebffe77------2</link>
            <guid isPermaLink="false">https://medium.com/p/7477a4607227</guid>
            <dc:creator><![CDATA[Minahil Ali]]></dc:creator>
            <pubDate>Thu, 18 Sep 2025 17:52:26 GMT</pubDate>
            <atom:updated>2025-09-18T17:52:26.599Z</atom:updated>
            <content:encoded><![CDATA[<p><em>“Climate change is one of the most serious issues of the 21st century. It means long-term changes in temperature, rainfall, and weather patterns of the world.”</em></p><p>In the past, climate used to change slowly, but today because of human activities like deforestation, pollution, and burning of fuels, the process has become very fast. For a developing country like Pakistan, climate change is not only an environmental issue but also an economic and social challenge. Our economy depends heavily on agriculture, and when climate changes, it directly affects our crops, farmers, and food security. Therefore, to understand the impacts of climate change in Pakistan, it is very important to study how it influences our agricultural economy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*1r7Xk-FHbQDcqraN64zQkw.png" /></figure><h3>Agriculture in Pakistan</h3><p>Agriculture is the backbone of Pakistan’s economy. Almost 40% of our people are linked with farming directly or indirectly. Agriculture provides food for the nation, raw material for industries, and also exports that bring foreign exchange. Crops like wheat, rice, cotton, and sugarcane are the main pillars of our agricultural system. We also produce fruits and vegetables in large quantity, which not only fulfill local needs but are also sent abroad. Agriculture contributes about one-fifth of Pakistan’s GDP, which shows its vital role in keeping the country’s economy stable. Without agriculture, millions of Pakistanis will lose their jobs and our economy will suffer badly. Because of this central importance, whenever climate change strikes, agriculture is the first sector to face the damage.</p><p><strong>Climate Change Trends in Pakistan</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*n-5cNVHJRZE1jMysJIetbw.png" /></figure><p>In recent years, Pakistan has faced unusual and extreme weather conditions. Temperatures are rising every year, and heat waves have become common in cities as well as villages. Rainfall patterns have also changed. Sometimes there is too much rain causing floods, and sometimes there is almost no rain leading to drought. The melting of glaciers in northern areas is creating water management problems. Our rivers depend on glacier water, and when glaciers melt too fast, it first brings floods and later creates shortage of water. The monsoon season has also become unpredictable. Instead of steady rain, we now see sudden heavy downpours which damage crops and infrastructure. All these trends show that climate change is real and it is hitting Pakistan harder than many other countries.</p><h3>Impacts on Agriculture</h3><p>The agricultural sector of Pakistan is highly sensitive to climate conditions. Rising temperature reduces the productivity of crops. For example, wheat requires moderate temperature to grow, but now heat waves often damage wheat during its growth season. Floods destroy standing crops of rice, cotton, and sugarcane. On the other hand, drought conditions make it difficult for farmers in Sindh and Balochistan to irrigate their lands.</p><p>Water shortage is another big problem. Agriculture in Pakistan mostly depends on irrigation through rivers and canals. When glaciers melt unevenly and rainfall becomes irregular, water supply for crops is disturbed. Farmers cannot get water at the right time, and this reduces overall crop yield.</p><p>Pests and crop diseases are also spreading more because of changing weather. Insects that used to die in cold weather are now surviving and attacking crops in large numbers. This increases the cost for farmers as they need pesticides, and sometimes even then crops are lost. Livestock is also affected because heat waves and lack of fodder decrease milk and meat production. In short, climate change is damaging agriculture from all sides.</p><h3>Case Studies and Real Examples</h3><p>The 2022 floods in Pakistan were one of the worst climate disasters in the country’s history. More than one-third of Pakistan was under water. Sindh and South Punjab, which are major agricultural regions, were badly hit. Cotton, rice, and sugarcane crops were completely destroyed in many areas. Farmers lost not only their crops but also their seeds, animals, and even homes. This disaster caused a shortage of food in the market and increased prices of vegetables and grains. Millions of people became food insecure because of these floods.</p><p>Another example is the continuous decline in wheat production. Pakistan is an agricultural country, but still we have to import wheat in some years. This is because changing weather conditions do not allow wheat to grow properly. Sometimes unexpected rains damage the crop just before harvesting. These examples clearly show that climate change is not a future threat, it is already harming our agriculture and economy today.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*Jhe3tIlRWlX-1l_toXI09g.png" /></figure><h3>Government and International Responses</h3><p>The government of Pakistan has realized the seriousness of climate change. A national climate change policy has been made to control environmental problems. Projects like the “10 Billion Tree Tsunami” were started to increase forest cover and reduce the effects of rising temperature. However, much more needs to be done in the agricultural sector. Farmers should be trained to adopt climate-resilient practices. For example, the use of drought-resistant seeds, modern irrigation systems like drip irrigation, and better storage facilities can reduce the loss.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/453/1*ZdJDKfHbt0kTSbWQBNVHBg.png" /></figure><p>International cooperation is also important. Pakistan contributes very little to global pollution, but it is among the most affected countries. Therefore, developed countries and global organizations should help Pakistan with funds, technology, and training to fight the impacts of climate change on agriculture.</p><h3>Conclusion</h3><p>Climate change is no longer a distant problem; it is a present reality. Our agriculture, which is the backbone of our economy, is under threat from rising temperatures, irregular rainfall, floods, droughts, and water shortages. Farmers are struggling, food insecurity is rising, and the economy is facing new challenges. If strong steps are not taken, the situation will become worse in the future.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*Cfw-zgY4o9HBNNjNEeVt4Q.png" /></figure><p>We must adopt modern and sustainable methods of farming, manage its water resources wisely, and spread awareness among people. Climate change cannot be stopped completely, but its impacts can be reduced if we act responsibly. Protecting agriculture means protecting the livelihood of millions of Pakistanis and securing the future of our nation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7477a4607227" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>