<?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: Prithivram B</title>
    <description>The latest articles on DEV Community by Prithivram B (@bprithivram).</description>
    <link>https://dev.to/bprithivram</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F99mvlsfu5tfj9m7ku25d.png</url>
      <title>DEV Community: Prithivram B</title>
      <link>https://dev.to/bprithivram</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bprithivram"/>
    <language>en</language>
    <item>
      <title>Problem Pattern Detector: Turning Student Complaints into Campus Intelligence</title>
      <dc:creator>Prithivram B</dc:creator>
      <pubDate>Thu, 08 Oct 2026 10:35:09 +0000</pubDate>
      <link>https://dev.to/bprithivram/problem-pattern-detector-turning-student-complaints-into-campus-intelligence-5d9k</link>
      <guid>https://dev.to/bprithivram/problem-pattern-detector-turning-student-complaints-into-campus-intelligence-5d9k</guid>
      <description>&lt;h1&gt;
  
  
  Problem Pattern Detector: Turning Student Complaints into Campus Intelligence
&lt;/h1&gt;

&lt;p&gt;Colleges receive a continuous stream of student feedback covering transportation, food services, hostel facilities, connectivity, infrastructure, academics, and other campus operations.&lt;/p&gt;

&lt;p&gt;The challenge is not simply collecting these reports. The challenge is identifying the &lt;strong&gt;common patterns hidden across them&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;A recurring operational issue may appear in many different forms. One student may report a delayed bus, another may report excessive waiting time, while another may describe missing a class because of the same delay. When these reports are reviewed independently, the broader issue can remain fragmented.&lt;/p&gt;

&lt;p&gt;We built &lt;strong&gt;Problem Pattern Detector&lt;/strong&gt; to address this gap.&lt;/p&gt;

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

&lt;p&gt;Problem Pattern Detector is an &lt;strong&gt;AI-powered campus intelligence system&lt;/strong&gt; that transforms naturally written student complaints into structured information and analyzes those reports collectively to identify recurring and emerging problems.&lt;/p&gt;

&lt;p&gt;The student experience is intentionally simple.&lt;/p&gt;

&lt;p&gt;A student only needs to describe the issue in natural language. The system determines the relevant department and extracts the important attributes automatically.&lt;/p&gt;

&lt;p&gt;For example, a report describing repeated delays on Route 3 during the morning period can be interpreted as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"department"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Transport"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"issue"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Bus Delay"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"location"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Route 3"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"time"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Morning"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"severity"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"High"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"short_summary"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Repeated morning delays on Route 3 are affecting student arrival times"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"key_themes"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="s2"&gt;"bus delay"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="s2"&gt;"long waiting time"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="s2"&gt;"late arrival"&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The system then uses this structured information together with other reports to identify broader patterns.&lt;/p&gt;

&lt;h2&gt;
  
  
  How We Built It
&lt;/h2&gt;

&lt;p&gt;The overall architecture is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Student Complaint
        ↓
Next.js Frontend
        ↓
Python FastAPI Backend
        ↓
Ollama
        ↓
Gemma 4B
        ↓
Structured Complaint Data
        ↓
SQLite Database
        ↓
Pattern Detection Engine
        ↓
Admin Intelligence Dashboard
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  1. Natural-Language Reporting
&lt;/h3&gt;

&lt;p&gt;Students describe a campus problem in their own words.&lt;/p&gt;

&lt;p&gt;There is no requirement to understand the system's internal categorization or manually select a department.&lt;/p&gt;

&lt;p&gt;This reduces friction at the point of reporting while preserving the context contained in the original complaint.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. AI-Powered Complaint Understanding
&lt;/h3&gt;

&lt;p&gt;The complaint is sent from the Next.js frontend to our Python backend.&lt;/p&gt;

&lt;p&gt;The backend communicates with &lt;strong&gt;Gemma 4B through Ollama&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Gemma is responsible for interpreting the natural-language report and extracting structured attributes such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Department&lt;/li&gt;
&lt;li&gt;Issue&lt;/li&gt;
&lt;li&gt;Location&lt;/li&gt;
&lt;li&gt;Time&lt;/li&gt;
&lt;li&gt;Severity&lt;/li&gt;
&lt;li&gt;Short summary&lt;/li&gt;
&lt;li&gt;Key themes&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This converts unstructured feedback into data that can be analyzed consistently.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Structured Storage
&lt;/h3&gt;

&lt;p&gt;The extracted information is stored in &lt;strong&gt;SQLite&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Each report retains both its structured representation and the original student submission, allowing the system to connect detected patterns back to the supporting reports.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Pattern Detection
&lt;/h3&gt;

&lt;p&gt;This is the core of the system.&lt;/p&gt;

&lt;p&gt;The Pattern Detection Engine uses the structured reports to identify:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Related issues&lt;/li&gt;
&lt;li&gt;Repeated problems&lt;/li&gt;
&lt;li&gt;Common themes&lt;/li&gt;
&lt;li&gt;Department-level concentrations&lt;/li&gt;
&lt;li&gt;Emerging problems&lt;/li&gt;
&lt;li&gt;Changes in reporting frequency&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For example, suppose multiple reports independently reference Route 3, morning service, extended waiting periods, and delayed arrival to class.&lt;/p&gt;

&lt;p&gt;Instead of presenting those as unrelated complaints, the system can surface a consolidated pattern such as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Department: Transport

Detected Pattern:
Route 3 Morning Bus Delays

Related Reports:
Multiple reports describing delays, extended waiting times,
and late arrival during the morning period.

Priority:
High
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The important point is that the system is detecting a &lt;strong&gt;pattern across reports&lt;/strong&gt;, rather than attempting to determine or prove a real-world root cause.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Admin Intelligence Dashboard
&lt;/h3&gt;

&lt;p&gt;The detected information is presented through an administrator dashboard.&lt;/p&gt;

&lt;p&gt;The dashboard provides visibility into:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Total reports&lt;/li&gt;
&lt;li&gt;Department-wise report distribution&lt;/li&gt;
&lt;li&gt;Emerging problems&lt;/li&gt;
&lt;li&gt;High-priority issues&lt;/li&gt;
&lt;li&gt;Recent reports&lt;/li&gt;
&lt;li&gt;Common themes&lt;/li&gt;
&lt;li&gt;Trends&lt;/li&gt;
&lt;li&gt;Supporting student reports&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This gives administrators a higher-level view of campus problems without requiring them to manually inspect every report individually.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Makes It Different?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Problem Pattern Detector is not a chatbot and not simply a digital complaint form.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A conventional complaint workflow is primarily:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Student → Complaint → Administrator
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Our workflow is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Student
   ↓
Natural-Language Complaint
   ↓
AI Understanding
   ↓
Structured Data
   ↓
Pattern Detection
   ↓
Campus Intelligence
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The key distinction is the &lt;strong&gt;collective analysis of reports&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The AI layer is responsible for understanding language and converting unstructured complaints into a consistent representation.&lt;/p&gt;

&lt;p&gt;The application layer is responsible for deterministic operations such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Aggregation&lt;/li&gt;
&lt;li&gt;Grouping&lt;/li&gt;
&lt;li&gt;Counting&lt;/li&gt;
&lt;li&gt;Trend analysis&lt;/li&gt;
&lt;li&gt;Pattern identification&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This separation keeps the architecture understandable and ensures that statistical insights are generated by application logic rather than being left entirely to the language model.&lt;/p&gt;

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

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Component&lt;/th&gt;
&lt;th&gt;Technology&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Frontend&lt;/td&gt;
&lt;td&gt;Next.js / React&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Backend&lt;/td&gt;
&lt;td&gt;Python / FastAPI&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AI Model&lt;/td&gt;
&lt;td&gt;Gemma 4B&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AI Runtime&lt;/td&gt;
&lt;td&gt;Ollama&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Database&lt;/td&gt;
&lt;td&gt;SQLite&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Pattern Detection&lt;/td&gt;
&lt;td&gt;Python&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Communication&lt;/td&gt;
&lt;td&gt;HTTP API&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Why Local AI?
&lt;/h2&gt;

&lt;p&gt;We use &lt;strong&gt;Gemma 4B through Ollama&lt;/strong&gt; for local AI processing.&lt;/p&gt;

&lt;p&gt;This allows the prototype to perform complaint understanding without depending on a cloud AI API.&lt;/p&gt;

&lt;p&gt;It also keeps the architecture straightforward:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Next.js
   ↓
FastAPI
   ↓
Ollama + Gemma 4B
   ↓
SQLite
   ↓
Pattern Detection
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The browser does not communicate directly with Ollama. All AI interaction is handled through the backend API.&lt;/p&gt;

&lt;h2&gt;
  
  
  A Representative Use Case
&lt;/h2&gt;

&lt;p&gt;Consider the transport department.&lt;/p&gt;

&lt;p&gt;Several student reports may independently mention:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Delays on the same bus route&lt;/li&gt;
&lt;li&gt;Excessive waiting during the morning period&lt;/li&gt;
&lt;li&gt;Late arrival to scheduled classes&lt;/li&gt;
&lt;li&gt;Repeated unreliability of the same service&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These reports do not need to use identical wording to be related.&lt;/p&gt;

&lt;p&gt;The system structures the individual reports, compares their attributes, and identifies the recurring pattern.&lt;/p&gt;

&lt;p&gt;The administrator can then view the detected issue together with the supporting reports that contributed to it.&lt;/p&gt;

&lt;p&gt;This changes the administrative perspective from:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;"We received several unrelated complaints."&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;to:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;"Multiple reports indicate a recurring transport issue affecting Route 3 during the morning period."&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The system is therefore intended to improve &lt;strong&gt;visibility and prioritization&lt;/strong&gt;, not to automatically establish causality.&lt;/p&gt;

&lt;h2&gt;
  
  
  Our Hackathon Demonstration
&lt;/h2&gt;

&lt;p&gt;As &lt;strong&gt;Team VANTAGE&lt;/strong&gt;, we developed an end-to-end prototype covering:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Student complaint submission&lt;/li&gt;
&lt;li&gt;Natural-language complaint understanding&lt;/li&gt;
&lt;li&gt;AI-based structured extraction&lt;/li&gt;
&lt;li&gt;SQLite complaint storage&lt;/li&gt;
&lt;li&gt;Department-wise organization&lt;/li&gt;
&lt;li&gt;Related issue grouping&lt;/li&gt;
&lt;li&gt;Emerging problem detection&lt;/li&gt;
&lt;li&gt;Trend analysis&lt;/li&gt;
&lt;li&gt;Admin intelligence dashboard&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Our primary demonstration scenario focuses on &lt;strong&gt;Route 3 morning bus delays&lt;/strong&gt; because it clearly illustrates the project's central idea:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;multiple individual reports can reveal a larger campus-level pattern.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The same approach can be applied across categories such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Food&lt;/li&gt;
&lt;li&gt;Hostel&lt;/li&gt;
&lt;li&gt;Transport&lt;/li&gt;
&lt;li&gt;Wi-Fi&lt;/li&gt;
&lt;li&gt;Academics&lt;/li&gt;
&lt;li&gt;Infrastructure&lt;/li&gt;
&lt;li&gt;Cleanliness&lt;/li&gt;
&lt;li&gt;Other&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Team VANTAGE
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Member&lt;/th&gt;
&lt;th&gt;Contribution&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Prithivram&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;GitHub Repository &amp;amp; Project Integration&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Darshan B&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Frontend Development&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Badma Sree Vignesh&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Backend Development&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Dinesh Raj R&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Pattern Detection &amp;amp; AI Development&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

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

&lt;p&gt;&lt;strong&gt;GitHub Repository:&lt;/strong&gt; [&lt;a href="https://github.com/bprithivram-a11y/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club" rel="noopener noreferrer"&gt;https://github.com/bprithivram-a11y/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club&lt;/a&gt;]&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Demo Video:&lt;/strong&gt; [&lt;a href="https://youtu.be/k9qRPIVz8io" rel="noopener noreferrer"&gt;https://youtu.be/k9qRPIVz8io&lt;/a&gt; ]&lt;/p&gt;

&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;Most complaint systems are designed to answer a simple question:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;"What did one student report?"&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Problem Pattern Detector is designed to answer a broader question:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;"What patterns are emerging across the campus?"&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;By combining natural-language understanding with structured storage and application-level pattern detection, the system converts fragmented student feedback into a more useful view of campus operations.&lt;/p&gt;

&lt;p&gt;The goal is not to replace administrative decision-making.&lt;/p&gt;

&lt;p&gt;The goal is to provide better visibility into the problems that may otherwise remain hidden across individual reports.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Individual reports → Structured information → Detected patterns → Campus intelligence&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>ai</category>
      <category>hackathon</category>
      <category>nextjs</category>
      <category>python</category>
    </item>
  </channel>
</rss>
