<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Janvi Bhardwaj</title>
    <description>The latest articles on DEV Community by Janvi Bhardwaj (@janvi_bhardwaj).</description>
    <link>https://dev.to/janvi_bhardwaj</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4112351%2Fff8e4e06-97a4-48da-b017-96522981c9c8.jpg</url>
      <title>DEV Community: Janvi Bhardwaj</title>
      <link>https://dev.to/janvi_bhardwaj</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/janvi_bhardwaj"/>
    <language>en</language>
    <item>
      <title>The Thermal Shock Series #2: Designing a Thermal Shock Scoring Algorithm</title>
      <dc:creator>Janvi Bhardwaj</dc:creator>
      <pubDate>Mon, 07 Sep 2026 17:34:17 +0000</pubDate>
      <link>https://dev.to/janvi_bhardwaj/the-thermal-shock-series-post-02-38n8</link>
      <guid>https://dev.to/janvi_bhardwaj/the-thermal-shock-series-post-02-38n8</guid>
      <description>&lt;p&gt;Designing a Thermal Shock Scoring Algorithm&lt;/p&gt;

&lt;p&gt;A concept exploration exploring the math behind quantifying cumulative temperature stress on the human body.&lt;/p&gt;

&lt;p&gt;In my last post, I wrote about the invisible health risk of walking in and out of AC buildings all day. The research is clear. Repeated thermal transitions cause real physiological stress, and nobody is tracking it.&lt;/p&gt;

&lt;p&gt;So I started thinking about what it would take to actually measure this. Not with hardware, and not with expensive sensors. Just with logic, published research, and the kind of data a phone already has.&lt;/p&gt;

&lt;p&gt;Here is the algorithm I came up with, on paper and not in code yet, for turning "I walked outside" into a meaningful health risk number.&lt;/p&gt;

&lt;p&gt;What are we actually measuring?&lt;/p&gt;

&lt;p&gt;I needed to define what thermal shock means mathematically. It is not just temperature. A 5 degree change when you step into a corridor is very different from a 20 degree change when you step into the Chennai sun. Doing it once is also very different from doing it six times.&lt;/p&gt;

&lt;p&gt;So the score needs to capture three things:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;How big was each temperature jump?&lt;/li&gt;
&lt;li&gt;How quickly are the jumps happening?&lt;/li&gt;
&lt;li&gt;Which direction did it go, cold to hot or hot to cold?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Step 1: Detect transitions&lt;/p&gt;

&lt;p&gt;The phone knows where you are. GPS tells you outdoor versus indoor location. WiFi network names tell you which building you are in. You do not need a temperature sensor in every room. You just need zone classification.&lt;/p&gt;

&lt;p&gt;I divided the campus into three zone types:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Cold zone (~18°C): AC labs, AC classrooms, library.&lt;/li&gt;
&lt;li&gt;Transition zone (~28°C): Corridors, covered walkways, lobbies.&lt;/li&gt;
&lt;li&gt;Hot zone (real time): Outdoors, pulled from a weather API.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A typical day might look like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;9:50 AM:AC Lab (18°C) to Outdoor (37°C) — +19°C&lt;/li&gt;
&lt;li&gt;10:00 AM:Outdoor (37°C) to AC Lab (19°C) — -18°C&lt;/li&gt;
&lt;li&gt;11:30 AM:AC Lab (19°C) to Corridor (30°C) — 11°C&lt;/li&gt;
&lt;li&gt;11:35 AM:Corridor (30°C) to Outdoor (38°C) — +8°C&lt;/li&gt;
&lt;li&gt;12:00 PM:Outdoor (38°C) to AC Lab (18°C) — -20°C&lt;/li&gt;
&lt;li&gt;1:00 PM:AC Lab (18°C) to Outdoor (36°C) — +18°C&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Step 2: Direction weighting&lt;/p&gt;

&lt;p&gt;Not all transitions are equal. When you go from cold to hot, your blood vessels dilate rapidly. That is vasodilation, and it is abrupt and physiologically expensive. Hot to cold is still stressful, but the body handles it slightly better because vasoconstriction is a faster and more controlled response.&lt;/p&gt;

&lt;p&gt;So I added a direction weight:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Hot to cold:&lt;/strong&gt; multiply by 1.0&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cold to hot:&lt;/strong&gt; multiply by 1.3&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The 1.3 factor reflects the asymmetry in thermoregulatory response documented in the research I cited in my first post.&lt;/p&gt;

&lt;p&gt;Step 3: Recovery time&lt;/p&gt;

&lt;p&gt;If you walk out of AC, stand outside for two hours, and then walk back in, your body has had time to adjust. But if you cross a parking lot for 10 minutes and immediately enter another AC building, your body never recovered from the first shock.&lt;/p&gt;

&lt;p&gt;So I added a recovery factor:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Less than 30 minutes since last transition:multiply by 1.5&lt;/li&gt;
&lt;li&gt;30 minutes to 2 hours:multiply by 1.0&lt;/li&gt;
&lt;li&gt;More than 2 hours:multiply by 0.8&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The formula&lt;/p&gt;

&lt;p&gt;Shock = |Temperature Delta| × Direction Weight × Recovery Factor&lt;/p&gt;

&lt;p&gt;Example:Transition at 12:00 PM (outdoor 38°C to AC lab 18°C, only 25 minutes after previous transition):&lt;br&gt;
Shock = 20 × 1.0 × 1.5 = 30.0&lt;/p&gt;

&lt;p&gt;Example:Transition at 1:00 PM (AC lab to outdoor, one hour after previous transition):&lt;br&gt;
Shock = 18 × 1.3 × 1.0 = 23.4 *(This is a cold to hot transition, so the direction weight kicks in.)&lt;/p&gt;

&lt;p&gt;Where AI would come in?&lt;/p&gt;

&lt;p&gt;Everything above is just a calculator. Artificial intelligence would come in when the system starts learning from real data. Over weeks, the model could notice:&lt;/p&gt;

&lt;p&gt;Personal baseline:You tolerate heat better than average, so the thresholds adjust.&lt;br&gt;
Symptom correlation:You experience headaches on days when the score exceeds 120.&lt;br&gt;
Schedule patterns:Tuesdays are lab heavy and consistently produce the highest scores.&lt;br&gt;
Weather adjustment:A score of 100 when it is 42°C is much worse than when it is 34°C.&lt;/p&gt;

&lt;p&gt;This is where it would become a genuine machine learning problem rather than a rule based system pretending to be artificial intelligence.&lt;/p&gt;

&lt;p&gt;Why not use phone temperature sensors?&lt;/p&gt;

&lt;p&gt;Your phone has a thermometer, so why not just read it?&lt;/p&gt;

&lt;p&gt;Because phone ambient temperature sensors measure the internal temperature of the device. They are heavily influenced by battery heat, CPU load, and whether the phone is sitting in your pocket. They are not measuring the room at all.&lt;/p&gt;

&lt;p&gt;Instead, this approach uses zone classification. If GPS and WiFi say you are in the AC lab, we know it is approximately 18°C. If you are outdoors, the system pulls the temperature from a weather API. Is it perfectly accurate? No. Is it good enough to detect a 19°C jump versus a 5°C change? Absolutely.&lt;/p&gt;

&lt;p&gt;The honest limitations&lt;/p&gt;

&lt;p&gt;-The direction weight of 1.3 is based on physiological principles but has     not been validated with this specific formula.&lt;br&gt;
-The risk bands are proposed rather than clinically established.&lt;br&gt;
-Self reported symptom data comes with compliance and bias issues.&lt;br&gt;
-Indoor temperature estimation by zone type is approximate.&lt;br&gt;
-I have not coded this yet; it is currently a conceptual design.&lt;/p&gt;

&lt;p&gt;I am a first year computer science and engineering student, not a medical researcher. But the underlying research is real, the math is defensible, and the gap in existing solutions is genuine. Sometimes the value is not in having the perfect algorithm, but in being the first person to think through an algorithm at all for a problem that nobody else is measuring.&lt;/p&gt;

</description>
      <category>algorithms</category>
      <category>computerscience</category>
      <category>science</category>
    </item>
    <item>
      <title>The Thermal Shock Series #1: The Invisible Health Risk in Every AC Building</title>
      <dc:creator>Janvi Bhardwaj</dc:creator>
      <pubDate>Sun, 06 Sep 2026 13:21:53 +0000</pubDate>
      <link>https://dev.to/janvi_bhardwaj/the-invisible-health-risk-in-every-ac-building-2c2e</link>
      <guid>https://dev.to/janvi_bhardwaj/the-invisible-health-risk-in-every-ac-building-2c2e</guid>
      <description>&lt;p&gt;I walk out of my AC lab six times a day. The lab sits at 18°C. Chennai outside is 37°C. That's a 19-degree jump and my body absorbs it in the ten seconds it takes to reach the parking lot.&lt;/p&gt;

&lt;p&gt;By evening, I'm tired. Sometimes I have a headache. Sometimes my throat feels scratchy. I used to blame it on sleep, or the hostel food, or just "college stress." Turns out the actual cause might be something nobody around me was tracking and something I never even thought of as a health risk.&lt;/p&gt;

&lt;p&gt;What's actually happening to your body&lt;br&gt;
When you step from an 18°C room into 37°C heat, your blood vessels rapidly dilate. Your blood pressure drops. Your respiratory system goes from cold, dry air to hot, humid air in seconds. Your body's thermoregulation system - the internal machinery that keeps you at 37°C suddenly has to work overtime.&lt;/p&gt;

&lt;p&gt;Do this once, and you barely notice. Do it six times a day, five days a week, for months and it compounds into something researchers call thermal transition stress.&lt;/p&gt;

&lt;p&gt;I'm not making this up. This isn't a wellness blog theory. This is published, peer-reviewed research.&lt;/p&gt;

&lt;p&gt;The research that changed how I think about AC&lt;br&gt;
A study from AIIMS Hyderabad tracked 400 adults and found that people who frequently switch between air-conditioned indoor environments and outdoor heat experience what they called "thermal regulation stress due to disturbance in thermal adaptation and reduced tolerance to hot environments."&lt;/p&gt;

&lt;p&gt;Read that last part again - reduced tolerance to hot environments. The AC isn't just cooling you. It's training your body to handle heat worse.&lt;/p&gt;

&lt;p&gt;A separate study published in ScienceDirect found that even healthy individuals accustomed to air conditioning showed "substantial thermal burdening when abruptly exposed to urban exterior environments." These weren't sick people. These were healthy office workers and the transition alone was enough to measurably stress their bodies.&lt;/p&gt;

&lt;p&gt;And here's the one that really hit me - a study on office workers in Malaysia found that AC users consistently reported higher rates of Sick Building Syndrome symptoms:&lt;/p&gt;

&lt;p&gt;47.6% reported headaches&lt;/p&gt;

&lt;p&gt;44.4% reported cough&lt;/p&gt;

&lt;p&gt;38.7% had nasal irritation&lt;/p&gt;

&lt;p&gt;25% experienced fatigue&lt;/p&gt;

&lt;p&gt;25% had dizziness&lt;/p&gt;

&lt;p&gt;Almost half. Getting headaches. From the building they work in.&lt;/p&gt;

&lt;p&gt;The threshold nobody told us about&lt;br&gt;
There's a recommended safe limit for the temperature difference between indoor and outdoor environments - 10°C.&lt;/p&gt;

&lt;p&gt;At my campus, the gap is 20°C. Double the safe threshold.&lt;/p&gt;

&lt;p&gt;And I experience this gap six times a day. Monday through Friday. For the entire semester.&lt;/p&gt;

&lt;p&gt;When I first calculated this, I sat with it for a minute. I'd been living inside a health risk I could literally feel, the fatigue, the throat issues, the weekly colds but I never connected it to the one thing I do dozens of times a week: walking in and out of AC.&lt;/p&gt;

&lt;p&gt;The scale of this problem&lt;br&gt;
This isn't just a VIT Chennai problem.&lt;/p&gt;

&lt;p&gt;India has over 40 million office workers in air-conditioned environments&lt;/p&gt;

&lt;p&gt;There are more than 30,000 colleges with AC classrooms in tropical climates&lt;/p&gt;

&lt;p&gt;The WHO reports that Sick Building Syndrome affects over 20% of building occupants globally&lt;/p&gt;

&lt;p&gt;Chennai specifically has a 15–22°C indoor-outdoor gap for eight months of the year&lt;/p&gt;

&lt;p&gt;And yet, I searched for a tool that tracks this. An app. A wearable feature. A campus system. Anything.&lt;/p&gt;

&lt;p&gt;Nothing exists.&lt;/p&gt;

&lt;p&gt;There are temperature apps. There are weather apps. There are indoor air quality monitors. But not a single product tracks what actually matters is how many times you transition between thermal zones in a day, how big each jump is, and what that cumulative exposure does to your health.&lt;/p&gt;

&lt;p&gt;Why I started paying attention&lt;br&gt;
I'm a first-year CSE student. I'm not a doctor or a climate scientist. But I can read research papers, and I can count.&lt;/p&gt;

&lt;p&gt;Six transitions a day. 19-degree average gap. Five days a week. That's roughly 570 degrees of cumulative thermal shock per week that my body is absorbing and I was blaming the headaches on not drinking enough water.&lt;/p&gt;

&lt;p&gt;This is the kind of problem that hides in plain sight. Everyone experiences it. Nobody measures it. And because nobody measures it, nobody fixes it, not the student, not the university, not the AC system.&lt;/p&gt;

&lt;p&gt;I started thinking about what it would take to actually track this. Not with expensive sensors or medical devices, just with the phone in my pocket, a weather API, and some basic math.&lt;/p&gt;

&lt;p&gt;That became an idea worth exploring. More on the technical side in the next post.&lt;/p&gt;

&lt;p&gt;The uncomfortable question&lt;br&gt;
Next time you walk out of your AC office or classroom into the heat and you feel that wave hit you, ask yourself:&lt;/p&gt;

&lt;p&gt;How many times did I do this today?&lt;/p&gt;

&lt;p&gt;And then ask:&lt;/p&gt;

&lt;p&gt;Is anyone counting?&lt;/p&gt;

&lt;p&gt;Because the research says it matters. And right now, the answer is nobody.&lt;/p&gt;

&lt;p&gt;I'm a first-year B.Tech CSE student at VIT Chennai, writing about AI, health-tech, and problems that hide in everyday life. This post is part of a series exploring the intersection of environmental health and technology.&lt;/p&gt;

&lt;p&gt;References&lt;br&gt;
Impact of Air Conditioners on Sick Building Syndrome — AIIMS Hyderabad, 2023&lt;/p&gt;

&lt;p&gt;Effect of Abrupt Exposure to Outdoor Heat on AC-Accustomed Individuals — ScienceDirect&lt;/p&gt;

&lt;p&gt;Sick Building Syndrome in Malaysian Office Workers — PMC, 2025&lt;/p&gt;

&lt;p&gt;AC and Heat Shock Response — Temperature Threshold Guidelines&lt;/p&gt;

&lt;p&gt;Indoor Air Quality and Health Risks of AC Usage — Oxford Academic, 2024&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
