<?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: Likhitha Indukuri</title>
    <description>The latest articles on DEV Community by Likhitha Indukuri (@likhitha07).</description>
    <link>https://dev.to/likhitha07</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%2F4170815%2F2f12c51a-1094-480e-93ae-87671dd21d08.png</url>
      <title>DEV Community: Likhitha Indukuri</title>
      <link>https://dev.to/likhitha07</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/likhitha07"/>
    <language>en</language>
    <item>
      <title>AI “What Went Wrong?” — An Incident Detective Using Gemma 4 and Laya</title>
      <dc:creator>Likhitha Indukuri</dc:creator>
      <pubDate>Thu, 08 Oct 2026 10:29:16 +0000</pubDate>
      <link>https://dev.to/likhitha07/ai-what-went-wrong-an-incident-detective-using-gemma-4-and-laya-126</link>
      <guid>https://dev.to/likhitha07/ai-what-went-wrong-an-incident-detective-using-gemma-4-and-laya-126</guid>
      <description>&lt;p&gt;What if an AI system could look at an incident scene, identify the visible evidence, suggest what might have happened, and then evaluate those possible explanations based on the evidence?&lt;/p&gt;

&lt;p&gt;That is the idea behind our hackathon project, &lt;em&gt;AI “What Went Wrong?” — Incident Detective, built by **Team Tech Fusion&lt;/em&gt;.&lt;/p&gt;

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

&lt;p&gt;Our system takes two inputs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;An image of an incident scene&lt;/li&gt;
&lt;li&gt;A short description or context about the incident&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For example, the user could upload an image of a messy laboratory workspace and provide context such as:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“This incident happened in an electronics laboratory.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The system then performs the analysis in two stages.&lt;/p&gt;

&lt;h3&gt;
  
  
  Stage 1 — Gemma 4: See and Understand
&lt;/h3&gt;

&lt;p&gt;We use &lt;em&gt;Gemma 4's multimodal capabilities&lt;/em&gt; to analyze the uploaded image together with the provided context.&lt;/p&gt;

&lt;p&gt;Gemma extracts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Visible objects&lt;/li&gt;
&lt;li&gt;Visible conditions&lt;/li&gt;
&lt;li&gt;Evidence&lt;/li&gt;
&lt;li&gt;Possible explanations&lt;/li&gt;
&lt;li&gt;Uncertainties&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The explanations are treated as &lt;em&gt;hypotheses&lt;/em&gt;, not confirmed facts.&lt;/p&gt;

&lt;p&gt;For example, Gemma might identify:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Stains on a work surface&lt;/li&gt;
&lt;li&gt;A bottle lying near the stained area&lt;/li&gt;
&lt;li&gt;Protective gloves&lt;/li&gt;
&lt;li&gt;Residue on containers&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;and suggest possible explanations such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Accidental spill&lt;/li&gt;
&lt;li&gt;Routine laboratory activity&lt;/li&gt;
&lt;li&gt;Material handling issue&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The output is returned as structured JSON so that it can be passed directly to the next stage.&lt;/p&gt;

&lt;h3&gt;
  
  
  Stage 2 — Laya: Evaluate the Evidence
&lt;/h3&gt;

&lt;p&gt;The structured output generated by Gemma is then passed to &lt;em&gt;Laya&lt;/em&gt;, an open-source decision engine.&lt;/p&gt;

&lt;p&gt;Laya evaluates the possible explanations against the evidence identified by Gemma and produces a confidence score for each hypothesis.&lt;/p&gt;

&lt;p&gt;The dashboard then displays the explanations as cards, with the highest-confidence explanation highlighted as the &lt;em&gt;most likely explanation&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;The goal is not to claim certainty, but to make the reasoning process transparent:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Gemma sees → Evidence is extracted → Laya evaluates → Explanations are ranked&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Architecture
&lt;/h2&gt;

&lt;p&gt;text&lt;br&gt;
User&lt;br&gt;
 │&lt;br&gt;
 ├── Incident Image&lt;br&gt;
 └── Incident Context&lt;br&gt;
          │&lt;br&gt;
          ▼&lt;br&gt;
      React Frontend&lt;br&gt;
          │&lt;br&gt;
          ▼&lt;br&gt;
      FastAPI Backend&lt;br&gt;
          │&lt;br&gt;
          ▼&lt;br&gt;
       Gemma 4&lt;br&gt;
          │&lt;br&gt;
          ▼&lt;br&gt;
   Structured Evidence&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Hypotheses&lt;/li&gt;
&lt;li&gt;Uncertainties
      │
      ▼
     Laya
      │
      ▼
Ranked Explanations&lt;/li&gt;
&lt;li&gt;Confidence Scores
      │
      ▼
  React Dashboard&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Technology Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;em&gt;Gemma 4&lt;/em&gt; — multimodal incident scene analysis&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Laya&lt;/em&gt; — evidence-based hypothesis evaluation&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Python&lt;/em&gt; — AI/backend implementation&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;FastAPI&lt;/em&gt; — backend API&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;React + Vite&lt;/em&gt; — frontend dashboard&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Google GenAI SDK&lt;/em&gt; — Gemma API integration&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why This Approach?
&lt;/h2&gt;

&lt;p&gt;A simple vision model can tell us what is visible in an image, but our goal is to go one step further.&lt;/p&gt;

&lt;p&gt;We want to separate:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;What can be seen&lt;/em&gt; from &lt;em&gt;what might have happened&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Gemma handles scene understanding and hypothesis generation, while Laya independently evaluates those hypotheses using the evidence.&lt;/p&gt;

&lt;p&gt;This separation gives us a clearer and more explainable pipeline instead of asking one model to directly decide what happened.&lt;/p&gt;

&lt;h2&gt;
  
  
  Responsible AI
&lt;/h2&gt;

&lt;p&gt;The system is designed as an &lt;em&gt;incident hypothesis and reasoning assistant&lt;/em&gt;, not as a forensic or safety authority.&lt;/p&gt;

&lt;p&gt;The output represents possible explanations based on the available evidence. It should not be treated as definitive proof or as an accusation against a person.&lt;/p&gt;

&lt;p&gt;We also explicitly preserve uncertainties so that the system can communicate what cannot be determined from the available information.&lt;/p&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;GitHub Repository:&lt;/em&gt;&lt;br&gt;
[Add your GitHub repository link here]&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Laya:&lt;/em&gt;&lt;br&gt;
&lt;a href="https://github.com/NandhaKishorM/laya" rel="noopener noreferrer"&gt;https://github.com/NandhaKishorM/laya&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Gemma:&lt;/em&gt;&lt;br&gt;
&lt;a href="https://ai.google.dev/gemma" rel="noopener noreferrer"&gt;https://ai.google.dev/gemma&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Team:&lt;/em&gt; Tech Fusion&lt;/p&gt;

&lt;h2&gt;
  
  
  What's Next?
&lt;/h2&gt;

&lt;p&gt;We are currently integrating the individual modules into a complete application.&lt;/p&gt;

&lt;p&gt;Our next steps include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Connecting the React upload interface to the FastAPI backend&lt;/li&gt;
&lt;li&gt;Passing user-provided images and context to Gemma&lt;/li&gt;
&lt;li&gt;Connecting Gemma's structured output to Laya&lt;/li&gt;
&lt;li&gt;Building the final incident analysis dashboard&lt;/li&gt;
&lt;li&gt;Testing the system across different types of incident scenes&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The core idea is simple:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;Gemma sees. Laya decides. Our system explains.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Built as part of our hackathon project by &lt;em&gt;Team Tech Fusion&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>devchallenge</category>
      <category>llm</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
