<?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 veeranna-mh on Medium]]></title>
        <description><![CDATA[Stories by veeranna-mh on Medium]]></description>
        <link>https://medium.com/@veeranna.mh?source=rss-cd372c023cc9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*kSHdGqoq4akh-PmkUTw4fw.jpeg</url>
            <title>Stories by veeranna-mh on Medium</title>
            <link>https://medium.com/@veeranna.mh?source=rss-cd372c023cc9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 15:10:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@veeranna.mh/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[The Zero Batch Effect]]></title>
            <link>https://medium.com/@veeranna.mh/the-zero-batch-effect-b6ce79195cfe?source=rss-cd372c023cc9------2</link>
            <guid isPermaLink="false">https://medium.com/p/b6ce79195cfe</guid>
            <dc:creator><![CDATA[veeranna-mh]]></dc:creator>
            <pubDate>Sat, 25 Jul 2026 19:17:55 GMT</pubDate>
            <atom:updated>2026-07-25T20:21:59.530Z</atom:updated>
            <content:encoded><![CDATA[<h4>Why one missing year of medical admissions could affect India’s healthcare system for the next decade</h4><p><em>By Veeranna Hanamashetti</em></p><p>Recently, while listening to one of the Prime Minister’s public addresses, a particular statement caught my attention. He explained that the government conducted the NEET re-examination promptly so that students would not lose an academic year.</p><p>Viewed from a student’s perspective, that is undoubtedly an important objective. Losing an academic year can delay education, career progression, financial independence and personal aspirations.</p><p>However, that statement made me think about another question — one that is discussed far less often.</p><p><strong>What if an entire batch of medical admissions simply never happened?</strong></p><p>Not from the perspective of students alone, but from the perspective of medical colleges, teaching hospitals, postgraduate education and India’s healthcare system.</p><p>The more I thought about it, the more I realised that medical education is not merely an annual admission exercise. Every year’s intake becomes tomorrow’s interns, junior doctors, specialists, professors and researchers. Interrupting that pipeline even once could have consequences that extend far beyond a single academic year.</p><p>I call this phenomenon <strong>the Zero Batch Effect</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tR-WslY-0T8oJ4pTqvX3Hg.png" /></figure><p>This article is not an evaluation of any government decision, examination controversy or political viewpoint. Instead, it is a hypothetical systems analysis that asks a simple question:</p><blockquote><strong><em>If India had no new MBBS and BDS admissions for one academic year, what would be the institutional, financial and healthcare consequences?</em></strong></blockquote><h4>Understanding the Zero Batch Effect</h4><p>Most educational programmes are designed around annual admissions. Every year, one batch enters while another batch graduates.</p><p>Medical education follows the same principle — but with one important difference.</p><p>Unlike many other degree programmes, medical education is closely integrated with healthcare delivery. Medical students gradually become interns, junior doctors, postgraduate residents and specialists who actively support hospitals and patient care.</p><p>If one year’s admissions never took place, that missing batch would not simply disappear after one year. Instead, the gap would move through the entire healthcare ecosystem.</p><p>Think of it like a train where one coach is missing.</p><p>The train continues to move, but wherever that missing coach reaches, there is an empty space.</p><p>The same principle applies to medical education.</p><p>Today the gap appears in classrooms.</p><p>A few years later it appears in teaching hospitals.</p><p>Later still, it reaches postgraduate education.</p><p>Eventually, it affects the availability of specialists.</p><p>This is what I refer to as <strong>the Zero Batch Effect</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*boO-YnLtgRXrGe9dBJGW_A.png" /></figure><p>The exact years would vary depending on academic calendars, internships and postgraduate admissions. However, the overall sequence remains the same.</p><p>A missing batch today would continue to influence the healthcare system for almost a decade.</p><h4>Looking Beyond Students</h4><p>Whenever discussions arise around entrance examinations, the primary focus is naturally on students.</p><p>Will they lose one year?</p><p>Will admissions be delayed?</p><p>Will careers be affected?</p><p>These are all valid concerns.</p><p>But professional education also supports a much larger ecosystem.</p><p>Every new batch contributes to:</p><ul><li>Medical colleges</li><li>Teaching hospitals</li><li>Faculty workload</li><li>Hostel occupancy</li><li>Laboratory utilisation</li><li>Postgraduate admissions</li><li>Hospital staffing</li><li>Future specialist availability</li></ul><p>In other words, a medical college is not simply an educational institution.</p><p>It is part of the country’s healthcare infrastructure.</p><h4>Estimating the Financial Impact</h4><p>Any financial estimate must be treated carefully because fees vary widely across government, private and deemed universities.</p><p>Therefore, the numbers presented here are <strong>illustrative estimates</strong> intended to demonstrate the scale of the impact rather than exact audited figures.</p><p>According to recent publicly available information, India has approximately:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*X3-0gg7GsHzx2ISjwZ0h3A.png" /></figure><p>Not all of these seats carry the same fee.</p><p>Government colleges generally charge relatively low tuition, while private and deemed universities often charge substantially higher fees.</p><p>Rather than calculating every category separately, one simple example is sufficient to understand the logic.</p><h4>One Simple Example</h4><p>Suppose approximately <strong>65,000 students</strong> study in private medical colleges.</p><p>Assume an average tuition fee of <strong>₹15 lakh per year</strong>.</p><p>Assume students pay tuition for approximately <strong>4.5 academic years</strong>.</p><p>The calculation becomes:</p><blockquote><strong><em>65,000 × ₹15 lakh × 4.5 years ≈ ₹43,875 crore</em></strong></blockquote><p>This calculation considers only one segment of undergraduate medical education.</p><p>Once we add:</p><ul><li>Government colleges</li><li>Dental colleges</li><li>Hostel charges</li><li>Examination fees</li><li>Laboratory fees</li><li>Library charges</li><li>Postgraduate education</li></ul><p>the overall student-linked economic activity becomes significantly larger.</p><p>The objective is not to determine the exact rupee value but to appreciate the scale of the ecosystem supported by one annual admission cohort.</p><h4>Summary of the Financial Exposure</h4><p>Using moderate assumptions and publicly available seat data, the broad financial exposure associated with one missing medical and dental batch can be summarised as follows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*DmcIT5U361nVmBwjifIcWA.png" /></figure><p>These figures should <strong>not</strong> be interpreted as audited financial losses.</p><p>Instead, they indicate the approximate scale of economic activity generated by one complete medical and dental admission cohort over several years.</p><p>Some expenditure would certainly be avoided if there were no students. However, many fixed costs — such as faculty salaries, hospital infrastructure, equipment maintenance and regulatory compliance — would continue.</p><p>That is why an empty batch creates more than just a temporary loss of tuition income.</p><p>It creates an underutilisation of an already established educational and healthcare infrastructure.</p><h4>But Money Is Only Part of the Story</h4><p>Interestingly, the financial impact may not be the most significant consequence of a Zero Batch.</p><p>Money can often be recovered.</p><p>Admissions can sometimes be increased in future years.</p><p>Infrastructure can be expanded.</p><p>But rebuilding a missing healthcare workforce is far more difficult.</p><p>A medical student admitted today becomes an intern several years later.</p><p>That intern becomes a junior doctor.</p><p>Some become specialists.</p><p>Some become professors.</p><p>Others become researchers or healthcare administrators.</p><p>A missing batch interrupts this entire pipeline.</p><p>And that is where the real impact begins.</p><h4>The Institutional Impact</h4><p>Medical colleges are much more than classrooms and examination halls.</p><p>They are complex ecosystems involving teaching hospitals, laboratories, libraries, hostels, simulation centres, research facilities and thousands of faculty and support staff.</p><p>Many of these costs are <strong>fixed</strong>. Buildings still require maintenance. Laboratories must remain operational. Expensive medical equipment still needs servicing. Faculty salaries continue irrespective of whether one batch of students is present or not.</p><p>An empty admission year therefore creates a situation where significant educational infrastructure remains underutilized.</p><p>Private institutions may experience reduced fee income, while government institutions continue to incur much of the expenditure required to maintain teaching and hospital facilities.</p><p>From an institutional perspective, this represents an inefficiency in the utilization of resources that have already been created.</p><h4>The Hospital Pipeline</h4><p>Medical education does not happen in isolation.</p><p>As students progress through their degree, they gradually become part of the functioning of teaching hospitals.</p><p>Clinical postings expose them to patients under supervision.</p><p>The internship year is particularly important because interns participate in outpatient services, inpatient care, emergency duties and routine clinical activities while learning under experienced doctors.</p><p>If one batch never enters medical college, several years later there will also be <strong>no corresponding internship batch</strong>.</p><p>Hospitals would continue functioning, but one layer of the clinical training pipeline would be absent.</p><p>Teaching hospitals would need to reorganize work, redistribute responsibilities and adjust training schedules.</p><p>The impact would vary from institution to institution, but the missing cohort would certainly be felt.</p><h4>The Postgraduate Cascade</h4><p>The effect does not stop after undergraduate education.</p><p>Medical graduates become the pool from which future postgraduate students are selected.</p><p>Several years after the missing undergraduate batch, there would naturally be a smaller cohort entering MD, MS and MDS programmes.</p><p>The same gap that first appeared in classrooms would now appear in postgraduate departments.</p><p>Speciality training programmes would experience a corresponding reduction in new entrants.</p><p>The “missing batch” would simply continue moving through the system.</p><p>This is why I describe the phenomenon as a <strong>cascade</strong> rather than a one-time event.</p><pre>2026<br>No MBBS/BDS admissions<br>        │<br>        ▼<br>2032<br>No corresponding internship batch<br>        │<br>        ▼<br>2033–2035<br>Reduced MD/MS/MDS admissions<br>        │<br>        ▼<br>2035 onwards<br>Fewer newly trained specialists</pre><p>The timeline is approximate, but the sequence illustrates how one interruption can propagate through multiple stages of professional education.</p><h4>Beyond Education: The Healthcare Workforce</h4><p>Perhaps the most important consequence of a Zero Batch is its effect on the long-term healthcare workforce.</p><p>Every annual medical intake contributes to the future supply of:</p><ul><li>General physicians</li><li>Surgeons</li><li>Dentists</li><li>Anaesthesiologists</li><li>Radiologists</li><li>Paediatricians</li><li>Orthopaedic surgeons</li><li>Medical teachers</li><li>Researchers</li><li>Hospital administrators</li></ul><p>Not every graduate follows the same path, but collectively each batch replenishes India’s healthcare workforce.</p><p>If one cohort is absent, that replenishment is delayed.</p><p>For a country with a large and growing population, maintaining a continuous pipeline of trained healthcare professionals is an important long-term objective.</p><h4>Can the Gap Be Recovered Later?</h4><p>A natural question is whether the missing batch could simply be compensated by increasing admissions in subsequent years.</p><p>In theory, yes.</p><p>In practice, however, recovery would require substantial planning.</p><p>Increasing admissions is not just a matter of adding more seats.</p><p>It also requires:</p><ul><li>Additional faculty</li><li>Expanded teaching hospitals</li><li>More hostel accommodation</li><li>Additional laboratories</li><li>Greater clinical exposure</li><li>More internship positions</li><li>Regulatory approvals</li></ul><p>Expanding educational capacity takes time and investment.</p><p>Even if admissions were increased later, the original interruption would still move through the system for several years before the effects gradually diminished.</p><h4>Looking at the Bigger Picture</h4><p>One of the interesting lessons from systems thinking is that every large ecosystem contains interconnected pipelines.</p><p>Medical education is one such pipeline.</p><p>When viewed only through the lens of student admissions, the immediate concern is understandable: preventing students from losing an academic year.</p><p>However, when viewed from an institutional perspective, the same admission cycle also sustains:</p><ul><li>Educational institutions</li><li>Teaching hospitals</li><li>Clinical training</li><li>Specialist education</li><li>The future healthcare workforce</li></ul><p>Both perspectives are valid.</p><p>One focuses on students.</p><p>The other focuses on the continuity of the healthcare ecosystem.</p><p>Neither replaces the other.</p><p>Instead, together they provide a more complete understanding of why continuity in professional education matters.</p><h4>Conclusion</h4><p>The Prime Minister’s observation about preventing students from losing an academic year prompted me to think about a different, but related, question.</p><p><strong>What would happen if there were no medical admissions for one academic year?</strong></p><p>Exploring that hypothetical scenario led me to what I have called the <strong>Zero Batch Effect</strong>.</p><p>The central idea is simple.</p><p>A missing batch does not disappear after one year.</p><p>It travels through the education system and the healthcare workforce pipeline, influencing undergraduate education, internships, postgraduate training and specialist availability over many years.</p><p>The financial implications are certainly significant.</p><p>However, the more important lesson is about continuity.</p><p>Professional education is not only about the students who enter today.</p><p>It is also about ensuring that society has the doctors, dentists, specialists, teachers and researchers it will need tomorrow.</p><p>Whether viewed from the perspective of students, educational institutions or the healthcare system, maintaining a continuous flow of trained professionals remains an essential part of building a resilient healthcare ecosystem.</p><p>Perhaps that is the broader lesson from this thought experiment.</p><p>Sometimes, the true value of an annual admission cycle is not measured only by the number of students who join a college, but by the generations of healthcare professionals they eventually become.</p><h4>Disclaimer</h4><p>This article presents a hypothetical systems-level analysis intended to stimulate discussion on the long-term implications of a missing medical admission cohort. The financial figures are illustrative estimates based on publicly available information and reasonable assumptions. They are not audited financial losses or official government estimates. The purpose of this article is to explore the broader institutional and healthcare implications of a hypothetical “Zero Batch” scenario, not to comment on or evaluate any specific government decision or examination process.</p><h4>References</h4><ul><li>National Medical Commission (NMC) — MBBS seat statistics</li><li>Dental Council of India (historical seat information)</li><li>Annual reports and publicly available fee structures of government and private medical colleges</li><li>Ministry of Health and Family Welfare publications</li><li>Publicly available information on NEET admissions and medical education in India</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b6ce79195cfe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fibonacci Sequence and the Golden Ratio: Why Simple Numbers Shape Nature, Art, and Technology]]></title>
            <link>https://medium.com/@veeranna.mh/fibonacci-sequence-and-the-golden-ratio-why-simple-numbers-shape-nature-art-and-technology-86462b8095c3?source=rss-cd372c023cc9------2</link>
            <guid isPermaLink="false">https://medium.com/p/86462b8095c3</guid>
            <dc:creator><![CDATA[veeranna-mh]]></dc:creator>
            <pubDate>Sun, 28 Dec 2025 02:00:55 GMT</pubDate>
            <atom:updated>2025-12-28T02:11:10.658Z</atom:updated>
            <content:encoded><![CDATA[<p>Mathematics often feels abstract when we first learn it — numbers, formulas, and rules that seem far removed from real life.<br> Yet, some of the most powerful mathematical ideas arise from <strong>remarkably simple patterns</strong> and quietly shape the world around us.</p><p>Two such ideas are the <strong>Fibonacci sequence</strong> and the <strong>Golden Ratio</strong>.</p><p>They appear in nature, influence art and architecture, guide modern design, and even show up in technology and finance. This article explains <strong>what they are</strong>, <strong>how they are connected</strong>, and <strong>why they matter</strong>, in an intuitive, beginner-friendly way.</p><h3>1. The Fibonacci Sequence: A Simple Rule with Profound Impact</h3><p>The <strong>Fibonacci sequence</strong> is a series of numbers:</p><p>0, 1, 1, 2, 3, 5, 8, 13, 21, 34, …</p><h3>The rule</h3><p>Each number is the <strong>sum of the two preceding numbers</strong>:</p><p>Fn​=Fn−1​+Fn−2​</p><p>That is all.<br>No complex equations. No advanced mathematics.</p><p>Yet this simple recursive rule produces patterns that appear across biology, art, and technology.</p><h3>2. The Golden Ratio: A Proportion of Balance</h3><p>The <strong>Golden Ratio</strong>, usually represented by the Greek letter <strong>φ (phi)</strong>, has a value of approximately:</p><p>ϕ≈1.618</p><p>It arises when a line is divided such that:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I5SJDD_-XiPMX60k_R75UQ.png" /></figure><p>This proportion has long been associated with <strong>visual harmony and balance</strong>, which is why it has fascinated mathematicians, artists, and architects for centuries.</p><h3>3. The Hidden Link Between Fibonacci and the Golden Ratio</h3><p>Here is where the two ideas converge.</p><p>As Fibonacci numbers grow larger, the <strong>ratio of consecutive numbers</strong> approaches the Golden Ratio:</p><ul><li>13 ÷ 8 ≈ 1.625</li><li>21 ÷ 13 ≈ 1.615</li><li>34 ÷ 21 ≈ 1.619</li></ul><p>Mathematically:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dVPddja156N5QkD1r-Cjog.png" /></figure><p>The Golden Ratio is not arbitrary — it <strong>emerges naturally</strong> from the Fibonacci process.</p><h3>4. Visual Patterns and the Fibonacci Spiral</h3><p>When squares are drawn using Fibonacci numbers as side lengths (1, 1, 2, 3, 5, 8, …) and a smooth curve is traced through them, the result is the <strong>Fibonacci (Golden) Spiral</strong>.</p><p>This spiral closely resembles patterns found in shells, flowers, hurricanes, and even galaxies.</p><p>The key idea is not exactness, but <strong>growth with proportion</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/505/1*6Pn6jtWB1iUwQUf5BZM-1Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/1*NM1Pr_5x_EPdS9AWPkHcVw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*2UrigVk2M6TFA5BtWE4hfg.gif" /></figure><h3>5. Why Nature Favors These Patterns</h3><p>Nature does not “do mathematics,” yet Fibonacci and Golden Ratio patterns appear repeatedly because they represent <strong>efficient solutions</strong>.</p><p>Examples include:</p><ul><li><strong>Sunflowers and pinecones</strong>, where seed arrangements maximize packing efficiency</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*ntq6qiEKWynD-M4I-utdxw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*KXYQIj-fYFId0RiUXjmd-Q.jpeg" /></figure><ul><li><strong>Leaf placement</strong>, which reduces overlap and maximizes sunlight exposure</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fJx-n_Sl5J86u7RPpUM12g.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q8Qynn-etR4azn3zDvfVzw.jpeg" /></figure><ul><li><strong>Shell growth</strong>, which preserves shape while scaling</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*POPydbJgTqaPaKuFNdvDcg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ya8uUTQ8b7OnjnOKoyZlkA.jpeg" /></figure><ul><li><strong>Storm systems</strong>, which follow logarithmic spiral dynamics</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rD6ain-Ajb_HYNXGfc0cVw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*yFAE1VXI3eaD-RcRyjX77Q.jpeg" /></figure><p>These patterns emerge because they optimize <strong>space, energy, and stability</strong>.</p><h3>6. Does the Mona Lisa Follow the Fibonacci Sequence or the Golden Ratio?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/331/0*4Myhi8HiyhAQPBUQ" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/563/0*lamT0FCB2Epc5DGg" /></figure><p>One of the most frequently cited artistic examples of the Golden Ratio is the <strong>Mona Lisa</strong>, painted by <strong>Leonardo da Vinci</strong>.</p><p>But does the painting truly follow Fibonacci numbers or Golden Ratio proportions?</p><p>The most accurate answer is: <strong>partially and approximately — not mechanically</strong>.</p><h3>What People Observe</h3><p>Art historians and researchers have noted that:</p><ul><li>The <strong>overall dimensions</strong> of the painting are close to Golden Ratio proportions</li><li>The <strong>placement of the face, eyes, and hands</strong> aligns reasonably well with golden rectangles</li><li>Fibonacci-like spirals can be overlaid such that:</li><li>The spiral’s focal point lies near the left eye</li><li>Key facial features follow the curve</li></ul><p>These overlays are visually convincing and help explain why the composition feels <strong>balanced and harmonious</strong>.</p><h3>What Is Important to Understand</h3><p>There is <strong>no historical evidence</strong> that Leonardo explicitly calculated Fibonacci numbers or φ while painting the Mona Lisa.</p><p>However:</p><ul><li>Leonardo was deeply interested in <strong>geometry, anatomy, and proportion</strong></li><li>He collaborated with Luca Pacioli, author of <em>De Divina Proportione</em></li><li>Renaissance artists sought <strong>natural balance</strong>, not rigid numerical formulas</li></ul><p>In simple terms:</p><p><em>Leonardo did not paint by numbers.<br> He painted by </em>proportion<em>.</em></p><h3>A Balanced Perspective</h3><p>The Mona Lisa is <strong>not a strict Fibonacci blueprint</strong>.<br> Golden Ratio overlays can sometimes be applied after the fact, and similar ratios can be found in many artworks if one looks hard enough.</p><p>Yet the repeated appearance of these proportions across art, nature, and design reflects <strong>deep connections between geometry, perception, and balance</strong>.</p><h3>7. Mathematics, Design, and Human Perception</h3><p>Humans are remarkably sensitive to <strong>relative proportions</strong>.</p><p>This is why Golden Ratio–like relationships appear in:</p><ul><li>Architecture and sculpture</li><li>Logo and UI design</li><li>Photography composition</li><li>Typography and page layouts</li></ul><p>Designers often use the Golden Ratio as a <strong>guiding principle</strong>, not a strict rule.</p><h3>8. Fibonacci in Mathematics, Technology, and Finance</h3><h3>Mathematics and Computer Science</h3><ul><li>Teaching recursion and dynamic programming</li><li>Understanding growth rates and limits</li><li>Modeling trees and branching structures</li></ul><h3>Finance and Trading (with caution)</h3><p>Fibonacci ratios such as 38.2%, 50%, and 61.8% are commonly used in technical analysis to identify <strong>potential support and resistance zones</strong>.</p><p>They do not predict markets; they reflect <strong>collective human behavior</strong>, often becoming self-reinforcing reference points.</p><h3>9. The Deeper Lesson</h3><p>The real importance of the Fibonacci sequence and the Golden Ratio is not mysticism or coincidence.</p><p>They show us that:</p><ul><li>Simple rules can generate complex systems</li><li>Balance often emerges without central control</li><li>Efficiency shapes structure across domains</li></ul><p>This idea appears repeatedly in nature, engineering, data science, and systems thinking.</p><h3>10. Final Takeaway</h3><p>The Fibonacci sequence and the Golden Ratio remind us that:</p><blockquote><em>Beauty, efficiency, and structure often arise<br> from the simplest possible rules.</em></blockquote><p>Whether in a sunflower, a spiral galaxy, or the Mona Lisa’s subtle smile, the same principle appears again and again:<br> <strong>harmony emerges when growth and proportion are balanced</strong>..</p><p><em>(ChatGPT’s help taken for creating this article)</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=86462b8095c3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Understanding WordPiece Tokenization: The Engine Behind BERT’s Success]]></title>
            <link>https://medium.com/@veeranna.mh/understanding-wordpiece-tokenization-the-engine-behind-berts-success-8a10a8ba003c?source=rss-cd372c023cc9------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a10a8ba003c</guid>
            <dc:creator><![CDATA[veeranna-mh]]></dc:creator>
            <pubDate>Mon, 30 Jun 2025 03:30:56 GMT</pubDate>
            <atom:updated>2025-06-30T19:14:48.300Z</atom:updated>
            <content:encoded><![CDATA[<p>When working with Natural Language Processing (NLP) models like <strong>BERT</strong>, <strong>DistilBERT</strong>, or <strong>ALBERT</strong>, you may have come across the term <strong>WordPiece tokenizer</strong>. While it might seem like just another preprocessing step, it plays a <strong>foundational role</strong> in enabling these models to handle language efficiently and effectively.</p><p>In this blog, we’ll demystify WordPiece, understand why it’s better than traditional tokenizers, explore how it works, and look at practical code examples.</p><h3>🧠 Why Do We Need WordPiece?</h3><p>Traditional NLP tokenizers often treat words as the smallest unit (word-level tokenization). However, this has problems:</p><p>· <strong>Out-of-vocabulary (OOV) issues</strong>: If the model hasn’t seen a word during training, it can’t handle it.</p><p>· <strong>Large vocabulary size</strong>: Leads to huge embedding matrices.</p><p>· <strong>Difficulty handling morphologically rich languages</strong>: Languages like German or Turkish have long compound words.</p><h3>Enter: Subword Tokenization</h3><p>Subword tokenization — like WordPiece — breaks words into <strong>smaller, frequently occurring units</strong>. For instance, “unfriendly” might become:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/1*hPT4eMuqCNEuHu2tLspWeg.png" /></figure><h3>🧩 What Is WordPiece Tokenizer?</h3><p>WordPiece is a <strong>subword segmentation algorithm</strong> originally developed for <strong>speech recognition</strong> at Google and later adopted in <strong>BERT</strong>.</p><h3>✅ Key Features:</h3><p>· Handles <strong>rare and unknown words</strong> via subword decomposition.</p><p>· Reduces <strong>vocabulary size</strong> while maintaining expressive power.</p><p>Uses <strong>greedy longest-match-first</strong> strategy.</p><h3>⚙️ How WordPiece Works</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*teyLhdZw2ek-JHmlOHTfWw.png" /></figure><p>📦 WordPiece vs Other Tokenizers</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*hA6qrab9-T9Y0vf8s50xSA.png" /></figure><h3>💻 WordPiece in Action (Code Snippet)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*TtRP_DdKyl0gCBi3sN0x_A.png" /></figure><h3>Encoding:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*N_lDh_fVf6_jP9e9dk38ig.png" /></figure><h3>🔬 Pros and Cons</h3><h3>✅ Pros:</h3><ul><li>Robust handling of rare and compound words.</li><li>Compact vocabulary (~30K vs. millions).</li><li>Efficient and scalable.</li></ul><h3>⚠️ Cons:</h3><ul><li>Tokens don’t always align with syllables or semantics.</li><li>Requires <strong>custom decoding logic</strong> for human readability.</li><li>Not ideal for <strong>generation</strong> tasks (BPE is more common in GPT).</li></ul><h3>📚 Real-World Applications</h3><ul><li><strong>BERT and its variants</strong>: Nearly all rely on WordPiece tokenizer.</li><li><strong>Search engines</strong>: Google uses it for query understanding.</li><li><strong>Voice assistants</strong>: Helps with handling mispronunciations and rare words.</li></ul><h3>WordPiece Tokenization Flow</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*kk8l8wreoukhporiXsUP5w.png" /></figure><h4>An interesting EDA on words in WordPiece Tokenizer:</h4><p>WordPiece has a total of 30522 word tokens.</p><p>First 1000 tokens are reserved like [PAD], [CLS], [SEP], [MASK] etc.</p><p>Index from 1000 to index 1996 are individual chars including symbols.</p><p>The first word is “the” at index 1997.</p><p>Number of subwords (##subwords) is 5828 of 30522 words accounting for 19.1% of the vocab.</p><p>Maximum token lenght is 18 and most frequently occuring token size is 6, that means most frequently occurring words are of 6 charecters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/1*lSsglbUIlwH3ek-dhIp9BQ.png" /><figcaption>Image taken from ChrisMcCormickAI youtube video</figcaption></figure><h3>🤔 Final Thoughts</h3><p>WordPiece might seem like a minor technical detail, but it’s one of the unsung heroes behind modern transformer-based NLP models. By combining the best of character-level and word-level tokenization, it enables models to be <strong>compact</strong>, <strong>generalizable</strong>, and <strong>language-friendly</strong>.</p><p>So next time you tokenize text using BERT, remember that <strong>WordPiece is quietly doing the heavy lifting</strong> under the hood!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a10a8ba003c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Agile Beyond Speed: Unveiling the Role of Transparency in Effort and Billing]]></title>
            <link>https://medium.com/@veeranna.mh/agile-beyond-speed-unveiling-the-role-of-transparency-in-effort-and-billing-c6e38e3ad721?source=rss-cd372c023cc9------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6e38e3ad721</guid>
            <dc:creator><![CDATA[veeranna-mh]]></dc:creator>
            <pubDate>Thu, 19 Jun 2025 23:10:11 GMT</pubDate>
            <atom:updated>2025-06-20T00:11:47.466Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction</strong><br> Agile is often celebrated for its speed, adaptability, and customer-centric approach to software development. These are undoubtedly core strengths, but a crucial and often overlooked benefit lies in its ability to bring transparency into software project management — especially in effort estimation and billing. In this blog, we explore how Agile fundamentally changed client-vendor relationships by offering visibility, accountability, and trust, and we shed light on how it solved a long-standing problem of opaque billing in traditional Software Development Life Cycle (SDLC) approaches.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/0*QkxZu_zR3LFa8tg6" /><figcaption>Image courtesy: Atlasian Community</figcaption></figure><p>Drawing from both traditional theory and real-world industry experience, this blog will show how Agile transformed not only <em>how</em> we deliver but also <em>how</em> we collaborate and <em>how</em> we justify what we charge.</p><p><strong>The Problem with Traditional SDLC Billing</strong></p><p>In traditional Waterfall or SDLC models, the project scope is typically locked upfront, followed by detailed planning and execution over a longer timeframe. Here’s where the billing challenges emerged:</p><ul><li><strong>Upfront Effort Estimation</strong>: Vendors would propose large, block estimates (e.g., 1200 hours for development), often with conservative buffers to avoid risk.</li><li><strong>No Visibility</strong>: Clients rarely had visibility into how many of those hours were actually utilized.</li><li><strong>Change Requests as Revenue Streams</strong>: Since the scope was fixed, any deviation led to additional billing, causing mistrust.</li><li><strong>Delayed Delivery and Justification</strong>: Without intermediate working demos, customers couldn’t verify progress until it was too late.</li></ul><p>This black-box approach led to bloated budgets, rigid timelines, and strained client-vendor relationships. Worse, in outsourced environments, particularly from low-cost geographies, <strong>effort padding</strong> became an industry-wide issue.</p><p><strong>Agile as a Billing Transformation Tool</strong></p><p>While Agile’s primary intent was faster, more adaptive delivery, it unintentionally introduced a framework that made billing significantly more transparent and justified (or was this the hidden primary agenda..?).</p><p><strong>Sprint-Based Delivery: Real-Time Accountability</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/0*uxAwNJJJI-lhdUWs" /><figcaption>Image courtesy: Atlasian Community</figcaption></figure><p>Each sprint becomes a mini-project where the team commits to delivering a set of features (user stories) based on capacity and complexity (story points or hours).</p><ul><li><strong>Sprint Planning</strong>: Clients know what is committed.</li><li><strong>Daily Standups</strong>: Status is available daily.</li><li><strong>Sprint Reviews</strong>: Demonstrable work is showcased.</li><li><strong>Sprint Retrospectives</strong>: Improve the process continuously.</li></ul><p><em>Outcome: Clients now pay for demonstrable value, not for vague promises.</em></p><p><strong>Story Points and Velocity Metrics</strong></p><p>Agile teams estimate work using story points, and velocity (points completed per sprint) becomes a transparent metric.</p><ul><li>Vendors can no longer pad effort with vague hourly figures.</li><li>Clients can forecast cost and time based on historical velocity.</li></ul><p><strong>Tools that Promote Visibility</strong></p><p>Tools like Jira, Trello, Azure DevOps, or Rally allow:</p><ul><li><strong>Live tracking of progress</strong></li><li><strong>Burn-down and burn-up charts</strong></li><li><strong>Effort logs per developer or task</strong></li></ul><p>This is a far cry from SDLC models where tracking effort required multiple offline documents or meetings.</p><p><strong>Case in Point: Outsourcing and Vendor Transparency</strong></p><p>When outsourcing to vendors in low-cost geographies, cost optimization was expected, but it often came at the price of opacity.</p><p>Agile changed this paradigm:</p><ul><li>Onshore clients could attend sprint reviews.</li><li>Offshore vendors had to maintain digital Kanban boards.</li><li>Billing became linked to user story delivery, not ambiguous hour logs.</li></ul><p>Agile became a trust-building framework that forced transparency into outsourcing relationships.</p><p><strong>More Than Billing: Agile’s Traditional Strengths</strong></p><p>Let’s not forget the traditional pillars of Agile:</p><p><strong>1. Customer Collaboration over Contract Negotiation</strong></p><p>Clients are part of the development process, not just recipients of a final product.</p><p><strong>2. Responding to Change over Following a Plan</strong></p><p>Agile welcomes requirement changes, even late in development, as long as they add value.</p><p><strong>3. Working Software over Comprehensive Documentation</strong></p><p>Every sprint produces usable features that can be tested and validated.</p><p><strong>4. Individuals and Interactions over Processes and Tools</strong></p><p>Empowered teams produce better outcomes than rigid hierarchical structures.</p><p>These values make Agile not just a process but a philosophy of development.</p><p><strong>Agile and the Ethics of Work Effort</strong></p><p>Agile isn’t just about productivity. It’s also about <strong>ethical transparency</strong>:</p><ul><li>If a user story is not completed, it is not billed.</li><li>Effort is planned based on available capacity, not inflated hours.</li><li>Pair programming, peer reviews, and automated testing ensure time is spent wisely.</li></ul><p>It’s about creating a billing model rooted in integrity and accountability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*hlht3PRf4Uh4fsZBJ3y_KQ.png" /></figure><p><strong>Challenges and Caveats</strong></p><p>Agile is not a silver bullet. If misused, it can lead to its own issues:</p><ul><li>Poorly defined stories can still hide inefficiencies.</li><li>Velocity can be gamed if not linked to actual business value.</li><li>Burn-down charts mean nothing without team discipline.</li></ul><p>Agile provides the framework; honesty and professionalism bring the impact.</p><p><strong>Conclusion: Agile as a Tool of Trust</strong></p><p>Agile is often introduced as a solution for speed and flexibility, but its <strong>biggest hidden strength lies in bringing transparency and ethics</strong> into the software development life cycle. For clients, it means better control over budgets. For vendors, it fosters long-term relationships built on trust. For teams, it means ownership, visibility, and pride in delivery.</p><p>Whether you’re a developer, project manager, client, or vendor, embracing Agile is not just about how you build software. It’s about how you build <strong>relationships, credibility, and lasting business value</strong>.</p><p>Let’s build software — and trust — one sprint at a time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6e38e3ad721" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Six Sigma vs Data Science: Different Tools, Shared Mission]]></title>
            <link>https://medium.com/@veeranna.mh/six-sigma-vs-data-science-different-tools-shared-mission-db8acea1b342?source=rss-cd372c023cc9------2</link>
            <guid isPermaLink="false">https://medium.com/p/db8acea1b342</guid>
            <dc:creator><![CDATA[veeranna-mh]]></dc:creator>
            <pubDate>Wed, 11 Jun 2025 20:04:08 GMT</pubDate>
            <atom:updated>2025-06-12T19:36:44.910Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction</strong><br> In a world where businesses compete on quality, speed, and precision, two disciplines have emerged as powerful enablers of transformation: Six Sigma and Data Science. While Six Sigma is known for its structured approach to reducing defects and improving process consistency, Data Science offers predictive and prescriptive analytics powered by massive datasets and advanced algorithms.</p><p>This blog explores how Six Sigma and Data Science relate, where they differ, and why combining them can unlock exceptional value for modern enterprises.</p><p><strong>1. What is Six Sigma?</strong><br> Six Sigma is a methodology developed by Motorola in the 1980s to improve product and process quality by minimizing variation and eliminating defects. It follows a disciplined approach called DMAIC:</p><ul><li><strong>Define</strong> the problem</li><li><strong>Measure</strong> the current process performance</li><li><strong>Analyze</strong> root causes of defects</li><li><strong>Improve</strong> the process</li><li><strong>Control</strong> the future process to sustain gains</li></ul><p>Six Sigma relies heavily on statistical tools such as hypothesis testing, regression, control charts, and process capability analysis. It is people-driven, structured, and designed for continuous improvement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*q3rDz2DJXtDxFwth.png" /><figcaption>Six Sigma DMAIC phases</figcaption></figure><p><strong>2. What is Data Science?</strong><br> Data Science is a field that blends programming, mathematics, and domain knowledge to extract insights from structured and unstructured data. It encompasses techniques such as:</p><ul><li>Descriptive analytics (what happened?)</li><li>Diagnostic analytics (why did it happen?)</li><li>Predictive analytics (what is likely to happen?)</li><li>Prescriptive analytics (what should be done?)</li></ul><p>Data Scientists use tools like Python, R, SQL, and machine learning libraries (Scikit-learn, XGBoost, TensorFlow) to build models that detect patterns, automate decisions, and generate forecasts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-af4p-NJtxPEU6wH" /><figcaption>Data Science Lifecycle</figcaption></figure><p><strong>3. Where They Align</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/665/1*63ZeQ2K2QKL3RykI8_64ag.png" /></figure><p>Both disciplines:</p><ul><li>Emphasize data quality</li><li>Require cross-functional collaboration</li><li>Strive to reduce uncertainty in decision-making</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-MjfAY0F3UW-g4PVzjc5Xg.png" /><figcaption>Venn of six sigma and data science</figcaption></figure><p><strong>4. Key Differences</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*ruLYzabJa1epnSGdFeNKDg.png" /></figure><p><strong>5. Real-World Integration</strong></p><p>Modern organizations are integrating both approaches ( a couple of examples are as below):</p><ul><li>🏭 <strong>Manufacturing:</strong> Six Sigma to reduce defects; predictive maintenance using machine learning.</li><li>🏦 <strong>Banking:</strong> Six Sigma for reducing loan processing delays; classification models for fraud detection.</li><li>🏥 <strong>Healthcare:</strong> Six Sigma for reducing errors; Data Science for patient medical image analysis.</li></ul><p><strong>6. When to Use What?</strong></p><ul><li>✅ <strong>Use Six Sigma</strong>: When the process is stable, measurable, and requires defect reduction.</li><li>🔍 <strong>Use Data Science</strong>: When you have large datasets and need to uncover patterns or make forecasts.</li><li>🔗 <strong>Use Both</strong>: When process optimization and prediction need to work hand-in-hand.</li></ul><p><strong>7. A Powerful Combination</strong></p><p>Combining Six Sigma and Data Science provides:</p><ul><li>Structure + Flexibility</li><li>Root cause analysis + Predictive intelligence</li><li>KPI tracking + Forecasting</li></ul><p>Together, they empower organizations to:</p><ul><li>Improve continuously</li><li>Make proactive decisions</li><li>Build resilient systems</li></ul><p><strong>Conclusion</strong><br>Six Sigma and Data Science are not rivals but allies. While one optimizes processes through proven frameworks, the other enhances decisions with predictive intelligence. The future of business transformation lies in integrating these approaches to deliver smarter, faster, and more sustainable results.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db8acea1b342" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Industrial Engineering: The Backbone of Business Efficiency and Strategic Growth]]></title>
            <link>https://medium.com/@veeranna.mh/industrial-engineering-the-backbone-of-business-efficiency-and-strategic-growth-1942c42f2afe?source=rss-cd372c023cc9------2</link>
            <guid isPermaLink="false">https://medium.com/p/1942c42f2afe</guid>
            <dc:creator><![CDATA[veeranna-mh]]></dc:creator>
            <pubDate>Tue, 10 Jun 2025 21:35:26 GMT</pubDate>
            <atom:updated>2025-06-10T23:01:43.309Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction</strong><br> Industrial Engineering (IE) is often perceived narrowly as a discipline focused solely on manufacturing optimization. However, its true potential extends far beyond the factory floor. In today’s dynamic and competitive business landscape, industrial engineering plays a crucial role in enhancing organizational efficiency, reducing costs, improving quality, and driving innovation across sectors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*jgMpHR2a3RONUEA27mDsnQ.png" /></figure><p>This blog aims to explore industrial engineering from a business perspective, highlighting its strategic value, applications across industries, and integration with modern data-driven decision-making tools. Whether it’s healthcare, IT services, logistics, or retail, the principles of IE can significantly elevate business performance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*w1ivYWzFV5C1H0AXgVvn7w.png" /><figcaption>Interaction of various disciplines</figcaption></figure><p><strong>1. What is Industrial Engineering?</strong></p><p>At its core, Industrial Engineering is about designing, analyzing, and improving systems that involve people, materials, information, equipment, and / or energy. It focuses on optimizing complex processes to make them more efficient, productive, and responsive to customer needs. Unlike other engineering disciplines that concentrate on specific products or technologies, IE emphasizes the systems and processes that make businesses run.</p><p><strong>Key components include:</strong></p><ul><li>Process optimization</li><li>Systems thinking</li><li>Resource allocation</li><li>Workflow design</li><li>Performance measurement</li></ul><p>IEs act as the bridge between engineering and management, translating technical capabilities into business outcomes.</p><p><strong>2. Strategic Role of IE in Business</strong></p><p>Industrial engineers add value by:</p><ul><li>Reducing operational costs</li><li>Increasing throughput</li><li>Improving service quality</li><li>Enhancing employee productivity</li><li>Enabling data-driven decision-making</li></ul><p><strong>Case in Point:</strong> In a manufacturing setup, IEs might reduce setup times using SMED (Single-Minute Exchange of Dies). In an IT firm, they may improve project delivery timelines using Kanban or Agile methodologies (Kanban and Agile methodologies are inspired by single-piece-flow concept of IE / LEAN).</p><p>IE contributes to strategic decision-making by providing quantitative models to simulate scenarios and predict outcomes. These models support investment decisions, capacity planning, and supply chain strategies.</p><p><strong>3. Applications Across Industries</strong></p><ul><li><strong>Healthcare:</strong> Optimizing patient flow, reducing wait times, improving scheduling of surgeries and resources.</li><li><strong>Retail:</strong> Demand forecasting, inventory management, and layout planning.</li><li><strong>Logistics:</strong> Route optimization, warehouse design, supply chain management.</li><li><strong>IT Services:</strong> Process mapping, productivity analysis, resource planning.</li><li><strong>Banking &amp; Finance:</strong> Queuing models, risk management, operations research.</li></ul><p>IE techniques such as Lean, Six Sigma, and simulation are universally applicable.</p><p><strong>4. Tools and Methodologies That Drive Business Impact</strong></p><ul><li><strong>Lean Management:</strong> Eliminate waste and streamline processes.</li><li><strong>Six Sigma:</strong> Reduce variation and improve quality.</li><li><strong>Work study, Time Study and Motion Study:</strong> Enhance workforce productivity.</li><li><strong>Operations Research:</strong> Solve complex optimization problems.</li><li><strong>Data Analytics &amp; Visualization:</strong> Support decision-making with insights.</li><li><strong>Project Management Tools:</strong> Optimize resource allocation and scheduling.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/565/1*0g_4Q2zOOLlxAD6d_pcCHQ.png" /></figure><p>Each of these tools is aimed at aligning operational activities with strategic goals.</p><p><strong>5. The Evolving Role of Data and Technology</strong></p><p>With Industry 4.0 and digital transformation, industrial engineering has embraced data science, machine learning, and advanced analytics. Modern IEs use Python, R, SQL, and visualization tools like Tableau to analyze massive datasets, identify patterns, and drive decisions.</p><p><strong>Examples:</strong></p><ul><li>Predictive maintenance using IoT sensor data</li><li>Process mining to discover bottlenecks in workflows</li><li>Machine learning models to forecast demand</li></ul><p>By integrating data analytics with traditional IE techniques, organizations can unlock a new level of precision and responsiveness.</p><p><strong>6. Industrial Engineering and Continuous Improvement</strong></p><p>IE is deeply intertwined with continuous improvement frameworks like Kaizen, PDCA (Plan-Do-Check-Act), and DMAIC (Define-Measure-Analyze-Improve-Control). These ensure that businesses don’t just optimize once but keep evolving with changing environments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*QnBSUZA9br88h2OHnC7VOw.png" /><figcaption>Continuous Improvement cycle, an example</figcaption></figure><p><strong>Real-World Impact:</strong><br> A global automotive supplier used Six Sigma projects led by industrial engineers to cut defect rates by 40% and save $2M annually. Similarly, an e-commerce warehouse improved fulfillment rates and reduced turnaround time using Lean principles.</p><p><strong>7. Bridging the Gap Between Engineering and Management</strong></p><p>IE professionals often find themselves in roles that blend technical expertise with managerial responsibility. They are ideally suited for roles in operations management, project leadership, and strategic planning.</p><p>Their ability to understand both shop floor realities and boardroom expectations makes them invaluable assets in aligning execution with strategy.</p><p><strong>8. Conclusion: Industrial Engineering as a Business Enabler</strong></p><p>Industrial Engineering is more relevant than ever in an age where efficiency, agility, and data-driven decisions define success. It is not just about cost-cutting; it’s about creating systems that are resilient, responsive, and scalable.</p><p>By combining traditional engineering principles with modern analytical tools and a business mindset, Industrial Engineers are well-positioned to lead transformative change across industries.</p><p>For business leaders, investing in IE capabilities means investing in a future-ready organization that thrives on efficiency, innovation, and sustained value creation.</p><p><strong>Author’s Note:</strong><br> If you’re transitioning into data science from industrial engineering, know that your systems thinking, process optimization, and analytical mindset are invaluable. The tools may change, but the principles remain enduring.</p><p>Stay tuned for upcoming blogs where I explore how TQM, Six Sigma, Lean, and Data Science intersect to deliver strategic transformation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1942c42f2afe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[NLP Landscape: From 1960s to 2020s]]></title>
            <link>https://medium.com/@veeranna.mh/nlp-landscape-from-1960s-to-2020s-47caeb0dfc3f?source=rss-cd372c023cc9------2</link>
            <guid isPermaLink="false">https://medium.com/p/47caeb0dfc3f</guid>
            <dc:creator><![CDATA[veeranna-mh]]></dc:creator>
            <pubDate>Sat, 07 Jun 2025 15:04:32 GMT</pubDate>
            <atom:updated>2025-06-07T20:54:13.337Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction</strong><br> Natural Language Processing (NLP) has journeyed from simple rule-based systems to the transformative power of deep learning and large language models. This blog explores the evolution of NLP from the 1960s to the 2020s, highlighting the major milestones, techniques, and paradigm shifts that have shaped the field.</p><p>Broadly we can see three distinct phases of development of NLP:</p><p>1. Heuristic methods (till 1990)</p><p>2. Machine Learning based methods ( 1990–2010)</p><p>3. Deep Learning based methods (2010 and later)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*1AeQZe_IQ_TH_eyAyOvezQ.png" /></figure><p>If we go little deeper into the history of NLP, we can see, more clear distinct phases of growth of NLP:</p><p><strong>1. The 1960s-1970s: Rule-Based Beginnings</strong></p><ul><li><strong>Key Focus</strong>: Symbolic AI and rule-based approaches</li><li><strong>Techniques</strong>: Hand-crafted grammars, parsers, pattern matching</li><li><strong>Landmark Project</strong>: ELIZA (1966) — a simple chatbot by Joseph Weizenbaum that simulated conversation by pattern matching.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*MmVUWs16hN7abCx82Snk3Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*bdK8kfb-v9PLwwqcjUzN4g.png" /><figcaption>Eliza in action</figcaption></figure><p><strong>2. The 1980s: Rise of Statistical Models</strong></p><ul><li><strong>Key Focus</strong>: Probabilistic language models</li><li><strong>Techniques</strong>: Hidden Markov Models (HMMs), stochastic parsers, part-of-speech tagging</li><li><strong>Paradigm Shift</strong>: From symbolic to data-driven approaches</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*UvdqqIKpSVS9ZKihu6j59Q.png" /><figcaption>Image taken from freeCodeCamp</figcaption></figure><p><strong>3. The 1990s: Corpus Linguistics and Machine Learning</strong></p><ul><li><strong>Key Focus</strong>: Annotated corpora and supervised learning</li><li><strong>Milestone</strong>: Penn Treebank (1993) enabled syntactic parsing research</li><li><strong>Techniques</strong>: Naive Bayes, Decision Trees, Maximum Entropy Models</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/1*ca0PwrGWf32GKy7GXtRrUQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*fVszXdT696YyGl7ejSRrNw.png" /><figcaption>Basics of NLP (Image taken from Analytics Vidya)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*eCs6xDJumvZqOBb2ZHbW1g.png" /><figcaption>Corpus: Types (image taken from BotPenguin)</figcaption></figure><p><strong>4. The 2000s: Statistical NLP at Scale</strong></p><ul><li><strong>Key Focus</strong>: Data mining, Web-scale NLP</li><li><strong>Milestone</strong>: Google Translate launched (2006, statistical version)</li><li><strong>Techniques</strong>: N-gram models, CRFs, SVMs, Latent Dirichlet Allocation (LDA)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/609/1*VUg_5bO-U845HSrxeQBOBg.png" /><figcaption>Image taken from GeeksforGeeks</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/1*hFKR166D4O28_-f90Kvf4Q.png" /><figcaption>Image taken from SpringerPlus</figcaption></figure><p><strong>5. The 2010s: Neural Networks and Word Embeddings</strong></p><ul><li><strong>Key Focus</strong>: Distributed representations and deep learning</li><li><strong>Breakthroughs</strong>:</li><li>Word2Vec (2013) by Google: vector-based semantic representations</li><li>Seq2Seq Models for translation and summarization</li><li>Attention mechanisms (2014)</li><li>Transformers and BERT (2018)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*qnUhL9FbxcqAySGm4nTfAg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/617/1*s7Cywwd507zWVQ5oN7amOQ.png" /><figcaption>Image taken from ResearchGate</figcaption></figure><p><strong>6. The 2020s: The Era of Large Language Models (LLMs)</strong></p><ul><li><strong>Key Focus</strong>: Pretrained models, fine-tuning, few-shot learning</li><li><strong>Breakthroughs</strong>:</li><li>GPT-3 (2020), ChatGPT (2022), GPT-4 (2023): Language models exceeding human benchmarks on many tasks</li><li>T5, PaLM, LLaMA: Foundation models trained across modalities</li><li><strong>Trends</strong>: Multilinguality, alignment, low-resource languages, open-source LLMs</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*rgNnCh1Nvoh55_3huWGYUA.png" /><figcaption>Image taken from BotPenguin: this image illustrates Corpus, Types and applications (including LM)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*CN9-2qf6NtDcNb7N6EmuZQ.png" /><figcaption>Comparison of parameter sizes of LLMs over time (image taken from ieee.org)</figcaption></figure><p><strong>Conclusion</strong><br> From symbolic roots to statistical modeling, and now into the age of neural networks and large language models, NLP has matured through multiple revolutions. As the field advances, the focus is expanding from accuracy to fairness, interpretability, and efficiency. The coming years will likely push the boundaries of what machines can understand and generate in human language.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47caeb0dfc3f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building and Deploying a Machine Learning Model to Predict Insurance Premium Prices]]></title>
            <link>https://medium.com/@veeranna.mh/building-and-deploying-a-machine-learning-model-to-predict-insurance-premium-prices-3c2f84712c68?source=rss-cd372c023cc9------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c2f84712c68</guid>
            <dc:creator><![CDATA[veeranna-mh]]></dc:creator>
            <pubDate>Thu, 30 Jan 2025 07:30:48 GMT</pubDate>
            <atom:updated>2025-02-02T12:24:29.280Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction</strong></p><p>Accurately predicting insurance premiums is vital for insurance companies to set competitive rates, manage risks, and enhance customer satisfaction. Traditional methods rely heavily on actuarial tables and historical averages, which fail to capture the nuanced differences among individuals. By leveraging machine learning techniques, we can predict insurance costs more accurately based on personalized data, enabling insurers to optimize pricing strategies and offer tailored policies.</p><p>In this blog, we will explore how to build, optimize, and evaluate machine learning models to predict health insurance premiums. Additionally, we will incorporate key insights from Tableau visualizations and hypothesis testing to strengthen our understanding of the data and model performance.</p><p><strong>Problem Statement</strong></p><p>Insurance companies often struggle to predict costs accurately due to the complex interplay of individual health conditions, demographic factors, and historical data. By addressing this problem with machine learning, we aim to:</p><ul><li>Enhance the precision of pricing strategies.</li><li>Improve customer satisfaction through personalized premiums.</li><li>Reduce business risks by accurately modeling cost drivers.</li></ul><p>Our objective is to build and evaluate several machine learning models, identify the best-performing one, and deploy it for practical use. Additionally, we aim to uncover actionable insights through exploratory data analysis, Tableau visualizations, and hypothesis testing.</p><p><strong>Dataset Overview</strong></p><p>The dataset contains 986 samples with 11 features, including:</p><ol><li><strong>Age</strong>: Numeric, ranging from 18 to 66 years.</li><li><strong>Diabetes</strong>: Binary, indicating the presence of diabetes (1 = Yes, 0 = No).</li><li><strong>BloodPressureProblems</strong>: Binary, indicating the presence of blood pressure issues (1 = Yes, 0 = No).</li><li><strong>AnyTransplants</strong>: Binary, indicating whether the individual has undergone any organ transplant (1 = Yes, 0 = No).</li><li><strong>AnyChronicDiseases</strong>: Binary, indicating the presence of chronic diseases (1 = Yes, 0 = No).</li><li><strong>Height</strong>: Numeric, measured in centimeters.</li><li><strong>Weight</strong>: Numeric, measured in kilograms.</li><li><strong>KnownAllergies</strong>: Binary, indicating known allergies (1 = Yes, 0 = No).</li><li><strong>HistoryOfCancerInFamily</strong>: Binary, indicating a family history of cancer (1 = Yes, 0 = No).</li><li><strong>NumberOfMajorSurgeries</strong>: Numeric, ranging from 0 to 3 surgeries.</li><li><strong>PremiumPrice</strong>: Numeric, representing the premium cost, which is our target variable.</li></ol><p><strong>Exploratory Data Analysis (EDA)</strong></p><p>Exploratory Data Analysis was mostly done on Tableau. Data preprocessing, model building and evaluation was done in python jupyter notebook.</p><p>Given dataset has 986 records (individuals); average age of these people is 41.75 and average premium is 24337</p><p>Of these 986 individuals, only 133 (13.49%) individuals do not have any health conditions (i.e., completely healthy)</p><p>853 (86.51%) individuals have at least one health condition (this is done using set in tableau using the given health conditions in the data.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*xg8uC-kxSRcK2Ud6Tjbztg.png" /></figure><p>Completely healthy individuals have average age of 33.96 and average premium of 20436</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*7aYpvMq_bCKKRmkFIqCMxg.png" /></figure><p>Individuals with at least one health condition have average age of 42.96 and average premium of 24985</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*Yb_Wi9mdpvkE08Vk0VXXhQ.png" /></figure><p>Histogram of age indicates that age is normally distributed (in a broader sense) when age bin size is 4.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*8dh2AuBPyG3tlhiga5OMBA.png" /></figure><p>A deeper look into age distribution indicates the possibility of multimodal distribution, indicating people at younger age are more willing to get insurance coverage (age &lt; 35), middle age (age 36 to 41) showing lesser interest for insurance coverage. As the data set size is relatively small, we can’t generalise this insight.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*ncbOQQcB0U2EJOCVHSfPOw.png" /></figure><p>The below bar graph shows age vs premium relation for whole data. There is significant upward jump in premiums after age 29 apart from general progressive increase in premium with increasing age.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*pUQS5ew_kv-S_I-t0kCkng.png" /></figure><p>In general, Younger individuals (18–29 years) are associated with lower premiums, while older individuals have progressively higher premiums</p><p>However, there are a few data points where premium is higher for healthy people (not even 1 health condition) than for people with atleast 1 health condition. There are absolutely no reasons for this kind of unusual behaviour in the data or at least not known through the available dataset. These kind of data points may hamper machine learning model’s prediction ability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/647/1*PoSvoMW14Ua_jqNlaieGWA.png" /></figure><p>In general, premium for people with chronic disease is more compared to the premium for people without chronic disease.</p><p>However, there are a few data points where premium for people with chronic disease is more than premium for people without chronic disease. Needs further exploration or expert opinion. It could be due to influence of other features as well.</p><p>Avg.Premium for people without Chronic Disease is 23725 and for people with Chronic Disease is 27112. Hypothesis testing also confirms that premiums are significantly different for these groups (the given data is not of pure relationship between individual features and premiums. For simplicity sake, let’s keep it aside for now)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*Vkg56WexD6g6KFYzMWGTZQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*2uzT28P10xjzcUu5yZLN4A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/925/1*Fl5sBTCfn6cn-SNVSyvKcA.png" /></figure><p>In general, premium for people with transplants is significantly more compared to the premium for people without transplants (as seen in the graph below).</p><p>Average premium for people with transplants is 31764 and average premium for people without transplants is 23898.</p><p>Hypothesis test confirms that premiums are significantly different for these groups.</p><p>However, there are a few data points where premium for people with transplants is lesser compared to the premium for people without transplants (highlighted with blue boxes). Only 5.6% of people have transplants and 94.4% people do not have any transplants.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/1*lnmoJUZ5zv97Cd7_kqODWQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/609/1*xO0f8pc5erVXIpDZ-wF7Dg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/1*-Yi8KfKH6t-xSVKrhpTFVw.png" /></figure><p>Average premium for people with Blood Pressure problems is 25448 and for people without Blood Pressure problems is 23357</p><p>There are a many data points where premium for people with BP related problems is less than premium for people without BP related problems. This is more strange at lower ages. Needs further investigations / expert opinion. (It could be due to other features also, as the data is not purely for BP and Premium)</p><p>Looking at the graphs, it appears like BP related problems may not be a major influencer of premiums. But hypothesis testing shows that premium prices are significantly different for both the groups.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*VgG59DaBznf7vNLS1IDmVw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/617/1*MjBlhmiuFqtRMFOW60Q0lg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/473/1*nweQGnFqL2RpcM-RX9sKTw.png" /></figure><p>Average premium for diabetic people is 24896 and average premium for non-diabetic people is 23932.</p><p>There are many data points where premium of non-diabetic people is more than premium of diabetic people (there could be other factors playing as well, as this data is not purely for diabetic people only).</p><p>42% of the people have diabetes and average age of diabetic people is 45.2.</p><p>58% of the people are non-diabetic and average age of non-diabetic people is 39.2.</p><p>Visually it appears like Diabetes feature may not be a significant feature, but hypothesis testing shows that premiums for both the groups (with Diabetes and without Diabetes) are significantly different</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*LKIia08Pkvf3Q0fbMHEbKw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*PUG8jMbIGOqbx9M0DTZbCQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/472/1*zqXj3W0-TnYbc5J5Ee9-Gw.png" /></figure><p>In general, premium for people having history of cancer in the family is more compared to people without history of cancer in the family. However, there are few data points where reverse pattern is observed. Needs further investigation or expert opinion.</p><p>11.8% of the people have history of cancer in the family and 88.2% people do not have history of cancer in the family</p><p>Average premium for people having history of cancer in the family is 25759. Average premium for people not having history of cancer in the family is 24147. Looking at the graphs, history of cancer in the family has major influence on premiums. Hypothesis testing also confirms this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/1*ej9DllqOWyJpLm1714iUeA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*TBTDLJknF79nqXKCoQZOtA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*yPOo2NB05lozjTAjJj6-3g.png" /></figure><p>Avg.Premium for people having allergy is 24481 and for people not having allergy is 24297.</p><p>There are many data points where premium for non-allergic people is more than premium for allergic people.</p><p>Looking at the graphs, Allergy feature may not be a major influencer of premiums.</p><p>Hypothesis testing also confirms that there is no significant difference in the premium prices between the groups.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/651/1*QaZoBplRoPerZKI2o32m_g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*iVM1hykt2FN52h4bJweU-w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/1*EMc3j_g3YyA8JZrbrNBTew.png" /></figure><p>3 surgeries are observed from the age of 49 and above.</p><p>1.6% of people have 3 surgeries</p><p>12.1% people have 2 surgeries</p><p>37.7% people have only one surgery and</p><p>48.6% people do not have any surgery.</p><p>Average age of 0-surgery group is 37.9, 1-surgery group is 40.8, 2-surgery group is 57.4 and 3-surgery group is 63.5</p><p>Average premium for 0-surgery group is 22969, 1-surgery group is 24742, 2-surgery group is 28084 and 3-surgery group is 28000. Hypothesis testing confirms that premiums are significantly different for these groups.</p><p>There are few data points where people without any surgeries have more premium than people with surgeries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/605/1*d9UzfseShZGLnzE31pR0AA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*zBiCfAKHUjyE2dqc0aXT_A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/745/1*d5MzyXJhfxP8v52oXcexsw.png" /></figure><p>Hypothesis testing confirms “age” feature has significant correlation with premium price</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*l0kHw1OjGyWlOV14gCWMEQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*zQbsExpzHdyR7T8R1sNSTw.png" /></figure><p>Hypothesis testing confirms that “height” feature has no significant correlation with premium price</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/1*zecuk3Fg2arFOzy6Hu0Dqw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*pWMJ71GMnbwl7LpsLjOdaQ.png" /></figure><p>Hypothesis testing confirms that “weight” feature has significant correlation with premium price</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/609/1*UMwohjRiLWqjL2NS205mTw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/477/1*Q7GeegwrPJmsmdTHeRisdA.png" /></figure><p>Even though, hypothesis testing shows that some of the features are not significant, all the features are retained.</p><p>Some of the box plots are showing presence of outliers in the data. Weight has many outliers on higher side, Premium price has a few outliers on higher side.</p><p>Some of the box plots above (health condition wise) shows outliers on higher premium side for Known Allergy health condition = 0, History of cancer in the family condition = 0, AnyTransplants condition = 0, Blood Pressure problems condition = 1, on either side (premium) for diabetes condition = 1</p><p>Irrespective of anything else, all the data is preserved “AS IS” to retain the data integrity particularly since the data set is very small.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1004/1*h1nSzur988goAYFIlk2v0g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*7rL5pukxw9T_TAjYKGJURQ.png" /></figure><p>Correlation heatmap shows what kind of correlation exists among all the features and with target variable (correlation strength).</p><p><strong>Data Pre-processing:</strong></p><p>Splitting the data: All the feature’s data is stored as X and target variable data is stored as y</p><p>First the data is split into train and temp in the ratio 70:30</p><p>Then temp data is split into val data set and test data set in the ratio 50:50</p><p>Data is scaled using MinMaxScaler</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/433/1*uCgl148xk4wEmE-ezN6_hw.png" /></figure><p><strong>Model Building and Evaluation:</strong></p><p>Simple linear regression is trained and evaluated. R-squared on Train data set is 0.6 and on validation data set is 0.64 (as shown in the output screenshots below):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/479/1*n9Zsk_NQ-q7TpRRv85M9vw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/1*WFAIy0LxXxQ8bw8AjvBtQA.png" /></figure><p>Polynomial features of degree 2 are introduced to see if the performance improves.</p><p>X_train, X_val and X_test datasets are transformed using PolynomialFeatures(degree=2, include_bias=False)</p><p>Original number of features: 10; Number of features after polynomial transformation: 65</p><p>Linear Regression model was trained on polynomial transformed dataset, and evaluation was done using corresponding validation dataset</p><p>R-squared on train data set is 0.72 and on validation data set is 0.65 as shown in the output screenshots below. Compared to simple linear regression on original features, polynomial regression model shows little improvement and possibly a little overfitting</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/487/1*cGT_grcRVIK8kGe_JTHC9Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/1*mzkKzj8-igDqztjhQStqrw.png" /></figure><p>To address probable overfitting Ridge regression as well as Lasso regressions were used.</p><p>R-squared on training dataset is 0.7 and on validation dataset is 0.65 for Ridge regression.</p><p>Lasso regression showed R-squared on validation dataset of 0.43. hence further experimentation was not done on Lasso regression.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*NlzSr1DoTyX9U5r1pkrswA.png" /></figure><p>Decision Tree Regression model was built on the polynomial transformed datasets and evaluated. R-squared on val data set was 0.56. No further attempts were made to improve Decision Tree Regression models.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/514/1*RZc_WkPjyeURCxFLqs1S0A.png" /></figure><p>Random Forest Regression model is built on the polynomial transformed datasets and evaluated. Train R-squared is 0.96 and val R-squared is 0.74</p><p>Hyper parameter tuning is done on Random Forest Regressor using GridSearchCV.</p><p>Best parameters: {‘max_depth’: 20, ‘min_samples_leaf’: 2, ‘min_samples_split’: 10, ‘n_estimators’: 200}</p><p>Train R2 best Random Forest model: 0.89</p><p>Validation R² with best Random Forest model: 0.79</p><p>Test R² with best Random Forest model: 0.93</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/555/1*4RJDOevDsu7lERsUCzwLYw.png" /></figure><p>GBDT Regressor was built on polynomial transformed data and evaluated using corresponding datasets. R-squared on train dataset is 0.9 and on val data set is 0.72</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*XivB8xk5MAxbfoFVy24FOw.png" /></figure><p>Hyper parameter tuning of GBDT Regression modes is done using GridSearchCV</p><p>Best parameters: {‘learning_rate’: 0.1, ‘max_depth’: 3, ‘min_samples_leaf’: 4, ‘min_samples_split’: 10, ‘n_estimators’: 50}</p><p>Val R-squared with best GBDT model is 0.75 and test R-squared is 0.92</p><p>Xgboost regression model was built on polynomial transformed data and evaluated using corresponding datasets. Hyper parameter tuning was done using gridsearchCV.</p><p>Best Parameters (XGBoost): {‘colsample_bytree’: 0.6, ‘learning_rate’: 0.01, ‘max_depth’: 7, ‘n_estimators’: 300, ‘subsample’: 0.6}</p><p>With best XGBOOST model , Train R-squared is 0.95 ,Val R-squared is 0.76 and test R-squared is 0.93</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/322/1*C7zN0_hW26yQWnmi82Ybrw.png" /></figure><p><strong>Model Comparison and Deployment:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SLZgG2j2if4zVBjkVjEKKw.png" /></figure><p>Since Random Forest model with best parameters provides the better scores, this model is finalised for deployment.</p><p>After deployment on streamlit, the predictions for random test cases showed the tendency of being on the upper side of the premium range (like 28000, 33000, 34000 etc). This was observed even when the exact input values were given corresponding to lower premiums (like 15000,16000 etc) in the original data set.</p><p>Shap was used to identify which features are contributing to the predictions. At least a few predictions were observed on the lower side of the premium range while testing the app randomly (refer the screenshots below):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*g3B31RCwxo90NcwDajxdzw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/1*pQADvC3fThQsRd1te5g1sQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1001/1*u1sBgms3fm79e3Zr0CNLqw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1001/1*FlzMT0mTYQHFfsVRb8M5VA.png" /></figure><p>Then predictions were done for all train, val and test data sets inside jupyter notebook and output was exported into three separate excel files for further investigation. Examples of extracts of the data are shown in the screenshots below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*GVaDKZIcBLETzvkePddy2Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/535/1*31qYT0TBIIS3VA5PjmAbvg.png" /></figure><p>Comparison of predictions from the Random Forest Best models using scaled data and unscaled are summarised in the table below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*wPFPmw4GE-CqkAOkD46OeA.png" /></figure><p>It appears like, there is no significant difference between the Random Forest Best models built with scaled data and built with unscaled data.</p><p>However, on streamlit app, the model built using unscaled data responds well with predictions of premiums price across entire range of premium prices. (this could be just random observation).</p><p>Top 20 features based on feature importance of Random Forest best model-unscaled-datasets</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*6nlLiRExp2o5DASCchx-BQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/987/1*mPbyJKlk977nkgRSu7NSoA.png" /></figure><p><strong>Conclusion:</strong></p><p>Among the various models (linear regression, polynomial regression, Ridge Regression, Lasso Regression, Decision Tree Regression, Random Forest Regression, GBDT Regression, xgboost), Random Forest Regression model with best parameters performs better than the rest.</p><p>Random forest models with best parameters did not show significant difference between scaled datasets and unscaled datasets (inside jupyter notebook). But behaviour on streamlit app gives the feeling that model with unscaled data responds well.</p><p>Further scope:</p><p>Impact of scaled data sets and unscaled data sets in model building / model performance for Random Forest models (Tree based algorithms, in general) needs very detailed investigation. I suspect that there could be mismatch between transformers used while training the model and deploying the model. I will check it thoroughly little later.</p><p>One other observation from Exploratory Data Analysis, which is daunting me a lot since a few days is that, there are a significant number of cases where BMI are high like Class III, Class II and class I obesity even at younger ages, but the insurance premiums are the lowest. Even though BMI was not directly given in the data, it is derived from Height and Weight features. BMI and health implications are taken from health guidelines which says Class III, Class II, Class I obesity are serious health concerns (in that order). Whether insurance companies are considering this or not is not known from the data of this project. I was not able to conclude anything on this point so I have kept it outside the main scope of the project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QN-ALGnyQ8lPorK-SlsJ-A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EkV9c42MS1wF-f0OSjKkxA.png" /><figcaption>Fig: Examples of counter-intuitive data</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/544/1*TxPpdd0-TLC4kQiGvlseXg.png" /><figcaption>Fig: High BMI low insurance premium data points</figcaption></figure><p>Links:</p><p>github: <a href="https://github.com/veeranna-mh/Insurance_Premium_Prediction_v00">https://github.com/veeranna-mh/Insurance_Premium_Prediction_v00</a></p><p>streamlit: <a href="https://insurance-01.streamlit.app/">https://insurance-01.streamlit.app/</a></p><p>Tableau:</p><ol><li>primary (built with least interactivity to keep it simple for management presentations) : use “Story-Insurance_Data_Exploration” : <a href="https://public.tableau.com/views/Insurance_Cost_Prediction_v03_41/Story-Insurance_Data_Exploration?:language=en-GB&amp;:sid=&amp;:redirect=auth&amp;:display_count=n&amp;:origin=viz_share_link">https://public.tableau.com/views/Insurance_Cost_Prediction_v03_41/Story-Insurance_Data_Exploration?:language=en-GB&amp;:sid=&amp;:redirect=auth&amp;:display_count=n&amp;:origin=viz_share_link</a></li><li>secondary (built for detailed explorations with lots of interactivity): use “story1” : <a href="https://public.tableau.com/views/Insurance_Cost_Prediction_v051/Story1?:language=en-GB&amp;publish=yes&amp;:sid=&amp;:redirect=auth&amp;:display_count=n&amp;:origin=viz_share_link">https://public.tableau.com/views/Insurance_Cost_Prediction_v051/Story1?:language=en-GB&amp;publish=yes&amp;:sid=&amp;:redirect=auth&amp;:display_count=n&amp;:origin=viz_share_link</a></li></ol><p>LinkedIn: <a href="http://www.linkedin.com/in/veeranna-hanamashetti-6599a722">www.linkedin.com/in/veeranna-hanamashetti-6599a722</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c2f84712c68" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>