<?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: Muhammad Shahzaib</title>
    <description>The latest articles on DEV Community by Muhammad Shahzaib (@muhammad_shahzaibshahzai).</description>
    <link>https://dev.to/muhammad_shahzaibshahzai</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%2F4151258%2F6eed5b38-f691-4d58-8b94-8d0c7fcdda8f.jpg</url>
      <title>DEV Community: Muhammad Shahzaib</title>
      <link>https://dev.to/muhammad_shahzaibshahzai</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/muhammad_shahzaibshahzai"/>
    <language>en</language>
    <item>
      <title>Combining Power System Modeling with AI Forecasting for Renewable Grid Integration</title>
      <dc:creator>Muhammad Shahzaib</dc:creator>
      <pubDate>Wed, 30 Sep 2026 03:35:33 +0000</pubDate>
      <link>https://dev.to/muhammad_shahzaibshahzai/combining-power-system-modeling-with-ai-forecasting-for-renewable-grid-integration-4dmb</link>
      <guid>https://dev.to/muhammad_shahzaibshahzai/combining-power-system-modeling-with-ai-forecasting-for-renewable-grid-integration-4dmb</guid>
      <description>&lt;p&gt;Renewable energy sources like solar are great for sustainability, but terrible for predictability. Grid operators need to know, ahead of time, roughly how much power will be available and how to dispatch storage efficiently around it. I built a small end-to-end pipeline to explore this problem using Python.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;Unlike a traditional power plant, solar generation depends on weather, time of day, and season — it's not something you can simply "turn up" to meet demand. To integrate renewables into a grid reliably, you need three things working together: a model of the electrical network, a way to optimize how storage is dispatched, and a way to forecast tomorrow's load and generation.&lt;/p&gt;

&lt;p&gt;Most tutorials handle these separately. I wanted to see how they connect.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Substation Load Flow &amp;amp; Short Circuit Model (pandapower)&lt;/strong&gt;&lt;br&gt;
A 132kV/11kV substation model to study transformer loading, bus voltages, and fault currents — the base network that everything else operates on.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Solar + Battery Microgrid Optimization (PyPSA)&lt;/strong&gt;&lt;br&gt;
Using PyPSA's optimization engine, I modeled a microgrid with solar generation and battery storage, solving for the dispatch schedule that minimizes cost while meeting demand.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. AI Load Forecasting Tool (scikit-learn)&lt;/strong&gt;&lt;br&gt;
A machine learning model trained to predict next-day electrical load from historical patterns — giving the optimization step something realistic to plan against.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. The Capstone — AI-Driven Renewable Grid Integration&lt;/strong&gt;&lt;br&gt;
Finally, I combined all three: the substation model provides the network context, the forecasting model predicts tomorrow's load, and the optimization engine decides how to dispatch solar and battery storage against that forecast — an end-to-end pipeline from raw network data to an actionable dispatch plan.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Learned
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Power system engineering and machine learning use very different mental models — one is grounded in physical laws (Kirchhoff's laws, impedance, per-unit systems), the other in statistical patterns. Getting them to talk to each other cleanly took more thought than I expected.&lt;/li&gt;
&lt;li&gt;Forecast accuracy directly affects how "safe" an optimizer can afford to be — a noisy forecast means the battery dispatch plan needs more of a buffer, which has a real cost.&lt;/li&gt;
&lt;li&gt;This kind of integration is exactly where the power industry seems to be heading — utilities are increasingly hiring for exactly this intersection of skills.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why This Matters
&lt;/h2&gt;

&lt;p&gt;As grids add more renewables, this kind of pipeline — network model + forecast + optimizer — isn't just an academic exercise anymore, it's close to what real control room and planning tools need to do. Building it from scratch gave me a much deeper appreciation for where the real engineering challenges are.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt; &lt;a href="https://github.com/muhammadshahzaibshahzaib92-dev/ai-driven-renewable-grid-integration" rel="noopener noreferrer"&gt;GitHub — AI-Driven Renewable Grid Integration&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Full portfolio:&lt;/strong&gt; &lt;a href="https://muhammadshahzaibshahzaib92-dev.github.io/" rel="noopener noreferrer"&gt;muhammadshahzaibshahzaib92-dev.github.io&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'm a recent Electrical Engineering (Power) graduate combining ETAP-based power systems work with Python and AI-driven grid tools. Always happy to talk power systems, grid optimization, or renewable integration — feel free to connect on &lt;a href="https://www.linkedin.com/in/muhammad-shahzaib-b41a3b26b" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>pandapower</category>
      <category>machinelearning</category>
      <category>loadforcasting</category>
      <category>electricalengineer</category>
    </item>
    <item>
      <title>Building a GOOSE-Based Substation Protection Pipeline in Python( IEC61850)</title>
      <dc:creator>Muhammad Shahzaib</dc:creator>
      <pubDate>Wed, 30 Sep 2026 03:28:16 +0000</pubDate>
      <link>https://dev.to/muhammad_shahzaibshahzai/building-a-goose-based-substation-protection-pipeline-in-python-iec61850-65i</link>
      <guid>https://dev.to/muhammad_shahzaibshahzai/building-a-goose-based-substation-protection-pipeline-in-python-iec61850-65i</guid>
      <description>&lt;p&gt;&lt;strong&gt;# Building a GOOSE-Based Substation Protection Pipeline in Python&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Substation protection has traditionally relied on hardwired relay-breaker connections. Modern substations, however, are moving toward IEC 61850 — a standard that lets protection devices (IEDs) communicate over a network using the GOOSE (Generic Object Oriented Substation Event) protocol instead of physical wiring.&lt;/p&gt;

&lt;p&gt;I wanted to understand this shift hands-on, so I built a small end-to-end pipeline that simulates it in Python.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;In a traditional substation, if a fault occurs, a relay detects it and sends a hardwired trip signal to a circuit breaker. This works, but it's rigid — every new connection needs new wiring, and there's no easy way to monitor the system's real-time state remotely.&lt;/p&gt;

&lt;p&gt;IEC 61850's GOOSE protocol solves this by letting IEDs (Intelligent Electronic Devices) publish and subscribe to trip signals over a standard network, the same way services communicate in modern software systems.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;The project has three layered components:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. GOOSE Relay-Breaker Communication&lt;/strong&gt;&lt;br&gt;
Using &lt;code&gt;libiec61850&lt;/code&gt;, I set up a publisher-subscriber pair simulating two IEDs — one relay, one breaker — exchanging GOOSE trip messages over the network.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Fault-to-GOOSE Protection Logic&lt;/strong&gt;&lt;br&gt;
I connected this to &lt;code&gt;pandapower&lt;/code&gt; for fault current simulation. When a fault current crosses a threshold in the simulated network, the logic automatically triggers a GOOSE trip message — mimicking how a real protection scheme would respond to a fault.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Substation Live Monitoring Dashboard&lt;/strong&gt;&lt;br&gt;
Finally, I built a real-time dashboard using &lt;code&gt;streamlit&lt;/code&gt; that shows relay/breaker status, an event log, and a live fault graph — giving visibility into what the automated protection system is doing, the way a control room operator would see it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Learned
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;GOOSE messaging is fast (sub-4ms in real IEC 61850 networks) because it's built for time-critical protection events, not general data transfer.&lt;/li&gt;
&lt;li&gt;Simulating fault currents with &lt;code&gt;pandapower&lt;/code&gt; before triggering protection logic gave me a much better intuition for how relay coordination and protection settings actually matter in the field — something that's hard to appreciate from textbooks alone.&lt;/li&gt;
&lt;li&gt;Building the dashboard forced me to think about protection systems from an operator's perspective, not just an engineer's.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why This Matters
&lt;/h2&gt;

&lt;p&gt;As grids get more automated (and increasingly need to respond to renewable variability), protection systems built on standards like IEC 61850 are becoming the norm rather than the exception. Having hands-on experience with both the protocol and the underlying power system logic feels like a genuinely useful skill set going forward.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt; &lt;a href="https://github.com/muhammadshahzaibshahzaib92-dev/iec61850-substation-automation" rel="noopener noreferrer"&gt;GitHub — IEC 61850 Substation Automation&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Full portfolio:&lt;/strong&gt; &lt;a href="https://muhammadshahzaibshahzaib92-dev.github.io/" rel="noopener noreferrer"&gt;muhammadshahzaibshahzaib92-dev.github.io&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'm a  Electrical Engineering (Power) graduate combining ETAP-based power systems work with Python and grid automation. Always happy to discuss protection systems, grid modeling, or anything in between — feel free to connect on &lt;a href="https://www.linkedin.com/in/muhammad-shahzaib-b41a3b26b" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>python</category>
      <category>electricalengineers</category>
      <category>iec61850</category>
      <category>powersystem</category>
    </item>
  </channel>
</rss>
