<?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 Rajdip Solanki on Medium]]></title>
        <description><![CDATA[Stories by Rajdip Solanki on Medium]]></description>
        <link>https://medium.com/@irajdps?source=rss-d73eafe80367------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*slAIHeN6WiSkaBDTGGTY9Q.jpeg</url>
            <title>Stories by Rajdip Solanki on Medium</title>
            <link>https://medium.com/@irajdps?source=rss-d73eafe80367------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 26 May 2026 07:59:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@irajdps/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[Why Pregnancy Features Cannot Predict Baby Gender: A Machine Learning Experiment]]></title>
            <link>https://irajdps.medium.com/why-pregnancy-features-cannot-predict-baby-gender-a-machine-learning-experiment-f042cb79d4ac?source=rss-d73eafe80367------2</link>
            <guid isPermaLink="false">https://medium.com/p/f042cb79d4ac</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[predictive-modeling]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Rajdip Solanki]]></dc:creator>
            <pubDate>Tue, 20 Jan 2026 10:18:49 GMT</pubDate>
            <atom:updated>2026-01-20T10:18:49.873Z</atom:updated>
            <content:encoded><![CDATA[<h4>The Age-Old Question Meets Modern AI</h4><p>For generations, predicting a baby’s gender has been a source of fun, speculation, and countless old wives’ tales. From the way a mother is carrying to specific food cravings, the myths are as numerous as they are unproven. But what happens when we move past folklore and apply modern technology to this age-old question?To find out, I created the “<a href="https://github.com/Rajdip1/Gender_prediction_myth_burster"><strong>Gender Prediction Myth Buster</strong></a>” project to see if a machine learning model could succeed where folklore fails. The algorithm was fed <a href="https://www.kaggle.com/datasets/rajdp123/gender-prediction-myth-burster"><strong>Synthetic </strong></a>pregnancy data to find a hidden pattern, but the result was a statistical dead end that speaks volumes.</p><p><strong>Quick Links</strong></p><ul><li>🔗 Live Demo: <a href="https://gender-prediction-myth-burster.onrender.com/">Gender Prediction Myth Buster</a></li><li>💻 Source : <a href="https://github.com/Rajdip1/Gender_prediction_myth_burster">GitHub</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WI4GN_jN0KSealhxrF4UFw.png" /><figcaption>Image generated using AI tools for illustration purposes</figcaption></figure><h4>The Punchline — AI Is No Better Than a Coin Flip</h4><p>In a binary classification problem like this one, where there are only two possible outcomes (“Boy” or “Girl”), an accuracy score around 50% is statistically equivalent to a random guess. After testing multiple classifiers, the project’s final model achieved a prediction accuracy of <strong>50.49%</strong> — meaning it performs no better than flipping a coin. This finding is the core of the myth-busting analysis, demonstrating that despite the data and algorithms, there was no predictable signal to be found.The project’s key finding can be distilled into a single, powerful conclusion:After analyzing pregnancy-related data with multiple classifiers, the final model achieved 50.49% accuracy — proving it had virtually no predictive power.</p><h4>The Data Fallacy — Not All Patterns Are Real</h4><p>To reach its conclusion, the machine learning model was fed several quantifiable metrics related to the pregnancy. The features analyzed included:</p><ul><li>mother_age</li><li>delivery_week</li><li>health_score</li><li>stress_level</li><li>work_hours</li><li>sleep_hours</li></ul><p>The counter-intuitive result highlights a critical concept in data science: just because data seems relevant doesn’t mean it contains a meaningful pattern. The AI’s inability to find a reliable signal in these features suggests that the “patterns” many people believe exist are likely just noise or coincidence.</p><h4>The Proof is in the Project — How the Myth Was Tested</h4><p>This analysis was more than a theoretical exercise; it was a transparent and fully functional data project. Then, I built a complete web application powered by a <strong>FastAPI server</strong> . The application even exposes a <strong>/predict</strong> endpoint that accepts a JSON body with the features, demonstrating a practical application of the findings.Furthermore, the entire process is documented and available for review. The Jupyter Notebook, located at <a href="https://github.com/Rajdip1/Gender_prediction_myth_burster/blob/master/model/pregnancy_gender_myth.ipynb"><strong>model/pregnancy_gender_myth.ipynb</strong></a>, contains all the data exploration, preprocessing, feature selection, and model evaluation steps. This transparency adds significant credibility to the result, allowing anyone to see exactly how the conclusion was reached. The project serves as a powerful example of how even a focused experiment can rigorously test and debunk a widely-held belief.</p><h4>What Myths Should We Test Next?</h4><p>Using a structured, data-driven approach, this project successfully demonstrated that common pregnancy-related features are not reliable predictors of a baby’s gender. <strong>The AI model, for all its complexity, could do no better than a simple coin toss</strong>.This raises an interesting question: <strong>If AI can so cleanly debunk this age-old myth, what other “common knowledge” beliefs might not stand up to the data?</strong></p><p><strong>Resources</strong></p><ul><li>🔗 Live Demo: <a href="https://gender-prediction-myth-burster.onrender.com/">Gender Prediction Myth Buster</a></li><li>💻 Source : <a href="https://github.com/Rajdip1/Gender_prediction_myth_burster">GitHub</a></li><li>Dataset : <a href="https://www.kaggle.com/datasets/rajdp123/gender-prediction-myth-burster">Kaggle</a></li></ul><h3>Disclosure</h3><p>This article was written with the assistance of AI-based tools to improve structure and clarity. All experiments, analysis, code, and conclusions are based on my original work, with my GitHub project serving as the primary source.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f042cb79d4ac" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>