<?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: VARUN K S</title>
    <description>The latest articles on DEV Community by VARUN K S (@varun310).</description>
    <link>https://dev.to/varun310</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%2F3330773%2F589e5404-3f9d-4a85-a4a0-1b0e48eb6921.jpeg</url>
      <title>DEV Community: VARUN K S</title>
      <link>https://dev.to/varun310</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/varun310"/>
    <language>en</language>
    <item>
      <title>🔊Building a Real-Time Scream Detection System with Python and Machine Learning</title>
      <dc:creator>VARUN K S</dc:creator>
      <pubDate>Mon, 14 Jul 2025 04:09:54 +0000</pubDate>
      <link>https://dev.to/varun310/building-a-real-time-scream-detection-system-with-python-and-machine-learning-3bl9</link>
      <guid>https://dev.to/varun310/building-a-real-time-scream-detection-system-with-python-and-machine-learning-3bl9</guid>
      <description>&lt;p&gt;Hello, DEV Community! 👋&lt;/p&gt;

&lt;p&gt;Have you ever wondered if your computer could listen for screams and automatically send help when someone’s in distress?&lt;/p&gt;

&lt;p&gt;Some time ago, I worked on exactly this idea as a personal project, and it taught me a lot about combining audio processing and machine learning in a real-world context.&lt;/p&gt;

&lt;p&gt;Today, I’ll share how I built this real-time scream detection system, which:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Listens live via your microphone&lt;/li&gt;
&lt;li&gt;Predicts if a scream is happening&lt;/li&gt;
&lt;li&gt;Pops up alerts and can send SMS notifications&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Ready? Let’s dive in!&lt;/p&gt;

&lt;p&gt;💡 &lt;strong&gt;Why Scream Detection?&lt;/strong&gt;&lt;br&gt;
Traditional security systems rely heavily on cameras or manual monitoring. But sound can be a powerful indicator of emergencies, especially a scream.&lt;/p&gt;

&lt;p&gt;This project grew out of my curiosity to answer:&lt;/p&gt;

&lt;p&gt;What if a machine could recognize a scream faster than a human could dial 911?&lt;/p&gt;

&lt;p&gt;&lt;em&gt;My goal was to:&lt;/em&gt;&lt;br&gt;
🔸 Detect distress in real time&lt;br&gt;
🔸 Automate alerts&lt;br&gt;
🔸 Build something that could be deployed on any desktop&lt;/p&gt;

&lt;p&gt;🛠️ &lt;strong&gt;What’s Under the Hood?&lt;/strong&gt;&lt;br&gt;
This project combines audio signal processing and machine learning. Here’s what I used:&lt;/p&gt;

&lt;p&gt;Data: Two sets of audio files—screams (negative) and non-screams (positive).&lt;/p&gt;

&lt;p&gt;Features: MFCCs (Mel Frequency Cepstral Coefficients) extracted using librosa.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Models:&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;_1. SVM for binary classification.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;MLPClassifier for more robust pattern recognition.&lt;/li&gt;
&lt;li&gt;UI: Built with Kivy to make it clean and modern.&lt;/li&gt;
&lt;li&gt;Alerts: Visual pop-ups and optional SMS messages._&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;🎯 &lt;strong&gt;How It Worked (Step by Step)&lt;/strong&gt;&lt;br&gt;
1️⃣ 🎵 Listen&lt;/p&gt;

&lt;p&gt;The microphone continuously captures short audio snippets.&lt;/p&gt;

&lt;p&gt;2️⃣ 🎛️ Process&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Each snippet is converted into MFCC features.&lt;/li&gt;
&lt;li&gt;The features are standardized with a trained scaler.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;3️⃣ 🤖 Predict&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;SVM and MLP models make predictions.&lt;/li&gt;
&lt;li&gt;If both detect a scream, the system triggers a high-risk alert.&lt;/li&gt;
&lt;li&gt;If only one model fires, it triggers a medium-risk warning.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;4️⃣ ⚠️ Alert&lt;/p&gt;

&lt;p&gt;The app displays an on-screen alert.&lt;/p&gt;

&lt;p&gt;Optionally, it sends a text message with the user’s location.&lt;/p&gt;

&lt;p&gt;✨ &lt;strong&gt;Why I Loved Building This&lt;/strong&gt;&lt;br&gt;
✅ Real-time inference: No noticeable lag.&lt;br&gt;
✅ Dual-model accuracy: Reduced false positives.&lt;br&gt;
✅ Customizable dataset: You can re-train it with your audio.&lt;br&gt;
✅ Nice UI: Kivy made it look polished.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Technologies Used&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
Python 3&lt;br&gt;
scikit-learn&lt;br&gt;
librosa&lt;br&gt;
Kivy&lt;br&gt;
PyAudio&lt;/p&gt;

&lt;p&gt;GitHub &lt;br&gt;
&lt;a href="https://github.com/Varun-310/SCREAM" rel="noopener noreferrer"&gt;https://github.com/Varun-310/SCREAM&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Hello DEV! Aspiring AI Engineer Here</title>
      <dc:creator>VARUN K S</dc:creator>
      <pubDate>Mon, 07 Jul 2025 09:17:47 +0000</pubDate>
      <link>https://dev.to/varun310/hello-dev-aspiring-ai-engineer-here-15n4</link>
      <guid>https://dev.to/varun310/hello-dev-aspiring-ai-engineer-here-15n4</guid>
      <description>&lt;p&gt;Hey everyone! 👋&lt;br&gt;
I'm Varun K S, a third-year B.Tech student majoring in Artificial Intelligence and Machine Learning.&lt;/p&gt;

&lt;p&gt;I'm passionate about building smart systems that solve real-world problems. My current tech stack includes Python, C, Java, HTML, CSS, and I'm diving deeper into AI/ML, NLP, and Robotics. 🚀&lt;/p&gt;

&lt;p&gt;💡 Recent Projects:&lt;/p&gt;

&lt;p&gt;🔊 SCREAM - A real-time scream detection application using MFCC, SVM, and MLPClassifier for high-accuracy predictions.&lt;/p&gt;

&lt;p&gt;🧠 Empathy AI – A mental health assistant that detects emotions and responds with personalized support using BERT + GoEmotions.&lt;/p&gt;

&lt;p&gt;🛠️ Currently learning:&lt;/p&gt;

&lt;p&gt;Tailwind CSS&lt;/p&gt;

&lt;p&gt;Multilingual NLP &amp;amp; chatbot frameworks like Rasa&lt;/p&gt;

&lt;p&gt;💬 I'm here to learn, share, and connect with fellow devs! Excited to be part of this amazing community.&lt;br&gt;
Let’s build, break, and grow together! 💻✨&lt;/p&gt;

&lt;p&gt;Let me know what you’re working on too!&lt;/p&gt;

</description>
      <category>programming</category>
      <category>ai</category>
      <category>beginners</category>
      <category>python</category>
    </item>
  </channel>
</rss>
