Skip to main content

When AI Meets Reality Teaching Machine Learning to Respect the Laws of Physics

We hear a lot of hype about artificial intelligence solving everything from writing emails to driving cars but when you apply it to hard engineering disciplines like material science things get complicated very fast. I recently worked on a project focusing on Austenitic Stainless Steel 316L and it highlighted a massive gap between pure data science and physical reality.

The goal was simple enough on paper. We wanted to predict the true flow stress of the metal during cold deformation. Basically we wanted to know how the material reacts under pressure based on true strain and strain rate. The dataset was solid with over fifteen thousand samples derived from uniaxial tensile tests.

Here is the problem. If you just throw a standard neural network at this data it learns the numbers but it misses the logic. Steel does not behave randomly. It has rules. For example stress should generally increase as strain increases which is a concept called work hardening. A standard AI model does not know this. It might predict a random dip in the curve where there should not be one just because of some noise in the data.

To fix this I used Physics Informed Machine Learning. Instead of just minimizing the error we built constraints into the training process that effectively punished the model if it made a prediction that violated the laws of physics. We forced the curve to be smooth and monotonic meaning it behaves like real metal and not just a wobbly math function. This makes the results actually usable for real engineering tasks like finite element analysis or metal forming simulations.

The other big challenge was testing the model fairly. In continuous data like this doing a random split for testing is actually cheating. If you test on points that are right next to your training points you are not proving anything. I used a method called Group Aware Validation where we separated the data based on strain rates. This ensures the model can actually handle new scenarios it has not seen before which is exactly what happens in a factory setting.

We wrapped this all up with a production ready API using FastAPI so it can be deployed instantly. It is not just a coding experiment. It is a step toward making digital twins and manufacturing simulations faster and more reliable. It turns out the best AI is not the one that ignores the rules but the one that learns to respect the laws of nature.




Comments

Popular posts from this blog

Memorandum of Understanding (MoU) with PZCO

  We’re excited to announce a strategic milestone for OSCOWL AI! We are signing a Memorandum of Understanding (MoU) with PZCO, a leading French AI-driven industrial technology company. This partnership marks the beginning of a powerful collaboration focused on expanding our AI capabilities, advanced computing infrastructure, and innovation pipelines. Special thanks to Aryuemaan Chowdhury, CEO of OSCOWL AI, and Payman, CEO of PZCO, for their vision and leadership in bringing this alliance to life. Together, we look forward to pioneering breakthroughs in industrial AI, fostering global innovation, and shaping the future of intelligent systems. #AI #Partnership #Innovation #OSCOWLAI #PZCO #FutureOfTech #IndustrialAI

Inspiring the Next Generation: My Experience Teaching at the IIT Hyderabad GenAI Workshop

  I recently had the incredible privilege of stepping in front of a classroom at IIT Hyderabad to teach at the GenAI and LLM Workshop , organized by the brilliant teams at Elan & nVision. It was an inspiring experience, to say the least. A Room Full of Bright Minds There's a unique energy you only find in a room full of aspiring engineers and developers—especially at an institution like IITH. I was there to share insights about the rapidly evolving world of AI and large language models, but I ended up gaining just as much inspiration from the attendees. Interacting with this next generation of bright minds, I was struck by their sharp questions and genuine curiosity. These students aren't just passively learning; they are actively preparing to build the future. Navigating the AI Revolution Together We're all aware that the pace of innovation in AI has never been faster. Concepts that were science fiction just a few years ago are now practical tools we use every day. My ...

Wiola: Beyond the Chatbot – A Glimpse Into the Future of Everyday AI

 Artificial Intelligence is no longer just a buzzword — it’s becoming a seamless part of our daily lives. From automating workflows to offering creative insights, AI has evolved into a tool that understands you — how you think, work, and see the world. The Next Step Forward Imagine an AI that not only helps you debug your code or organize your tasks but also learns from your habits, offers guidance, and grows with you. That’s what Wiola is all about. Wiola isn’t just another chatbot — it’s a thinking companion designed to enhance your personal and professional life. Whether you’re a developer fixing bugs, an entrepreneur planning your next move, or someone simply curious about how AI can make life easier, Wiola is built to assist you in real-time — with intuition and depth. Why It Matters The future of AI isn’t about replacing human effort — it’s about amplifying human potential . Wiola bridges that gap by blending intelligence with empathy, function with creativity. It doe...