<?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: imed benmadi</title>
    <description>The latest articles on DEV Community by imed benmadi (@imed_benmadi_094cb3e4ac7a).</description>
    <link>https://dev.to/imed_benmadi_094cb3e4ac7a</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3501386%2Fe0d88ec3-ec24-4618-82b0-62906569082c.jpg</url>
      <title>DEV Community: imed benmadi</title>
      <link>https://dev.to/imed_benmadi_094cb3e4ac7a</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/imed_benmadi_094cb3e4ac7a"/>
    <language>en</language>
    <item>
      <title>Federated Learning System for IoT Devices (Anomaly Detection)</title>
      <dc:creator>imed benmadi</dc:creator>
      <pubDate>Mon, 05 Jan 2026 04:07:21 +0000</pubDate>
      <link>https://dev.to/imed_benmadi_094cb3e4ac7a/federated-learning-system-for-iot-devices-anomaly-detection-45np</link>
      <guid>https://dev.to/imed_benmadi_094cb3e4ac7a/federated-learning-system-for-iot-devices-anomaly-detection-45np</guid>
      <description>&lt;p&gt;Good Morning Y'ALL 🙌 . Wanted to share a university group project we worked on:&lt;br&gt;
&lt;strong&gt;Federated Learning System for IoT Devices (Anomaly Detection)&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;_&lt;a href="https://github.com/imadbenmadi/FLED" rel="noopener noreferrer"&gt;https://github.com/imadbenmadi/FLED&lt;/a&gt; _&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxpjm1kp59em3gpot2ea8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxpjm1kp59em3gpot2ea8.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We built a distributed (&lt;strong&gt;multi-broker&lt;/strong&gt;) federated learning system where IoT edge devices train models &lt;strong&gt;locally **and share only model updates to the **FedAvg Server&lt;/strong&gt;.&lt;br&gt;
FedAvg Server Create and Update, and Save the Global Models. &lt;em&gt;preserving data privacy and avoiding the limitations of centralized training.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;We simulated 2,401 IoT devices streaming sensor data from a dataset. Data ingestion was handled with Kafka, per-device stream processing and local modeling with Flink, and evaluation with Spark.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgdsrgxp3kv4wkkut7u35.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgdsrgxp3kv4wkkut7u35.PNG" alt=" " width="800" height="742"&gt;&lt;/a&gt;&lt;br&gt;
Local and global models, along with evaluation results, were stored in TimescaleDB, and Grafana was used for real-time dashboards and anomaly alerts.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpzba2me7fmuvpcz8pfu3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpzba2me7fmuvpcz8pfu3.png" alt=" " width="800" height="390"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Tech stack: Docker, Apache Kafka, Apache Flink, Apache Spark, TimescaleDB, Grafana.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Github Repo : &lt;a href="https://github.com/imadbenmadi/FLED" rel="noopener noreferrer"&gt;https://github.com/imadbenmadi/FLED&lt;/a&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>fedavg</category>
      <category>kafka</category>
      <category>apache</category>
    </item>
  </channel>
</rss>
