Skip to content

Mithurn/Farmers-telegram-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

50 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation


F22-Raptors
F22-Raptors: Saving Farmers with AI

An AI-powered Telegram bot that prevents farmer suicides by diagnosing crop issues, detecting distress signals, and predicting crop failures through accessible 2G-friendly technology.

Python FastAPI ] Telegram Bot
Life Saving 2G Friendly

Problem โ€ข Solution โ€ข Demo โ€ข Tech Stack โ€ข Impact โ€ข Team

๐Ÿ’” Problem Statement

"One farmer dies by suicide every 41 minutes in India."

Most of these tragedies are caused by sudden, unexpected crop failures. Current tools are often too late, unreliable, or require smartphones/literacy โ€” leaving small farmers helpless.

Source: Times of India - Farmer Suicide Report

๐Ÿ’ก Our Mission

Build an AI system that stops farmer suicides before they happen, using an ultra-accessible Telegram bot that works even on 2G networks. A single blurry photo or simple message can trigger life-saving help.

๐Ÿš€ AI-Driven Solution

๐Ÿ“ท Crop Autopsy AI

Diagnoses pests, soil issues, and drought stress from low-resolution images sent by farmers.

  • โœ… Works with blurred/poor-quality photos
  • โœ… Uses Roboflow API and TensorFlow (trained on low-res crop samples)
  • โœ… Suggests instant, actionable fixes

๐Ÿง  Distress Signal AI

Monitors group chats for signs of suicidal intent, distress language, or emotional breakdown.

  • โœ… Uses TextBlob for sentiment analysis + rule-based keyword filtering
  • โœ… Flags high-risk messages automatically
  • โœ… Sends alerts to NGOs or support teams after human review

๐Ÿ”ฎ Future Vision AI

Predicts crop collapse zones 90 days in advance using environmental trends.

  • โœ… Combines soil data, pesticide usage, and OpenWeatherMap forecasts
  • โœ… Rule-based early warning system
  • โœ… Enables proactive outreach and area-wide prevention

๐Ÿ’ฌ How It Works

  1. ๐Ÿ‘จโ€๐ŸŒพ Farmers send a photo or message to our Telegram bot (works over 2G)
  2. ๐Ÿค– Our AI Engine activates:
    • Crop Autopsy AI โ†’ Image Diagnosis
    • Distress Signal AI โ†’ Mental Health Flagging
    • Future Vision AI โ†’ Forecast Collapse Zones
  3. ๐Ÿ“ฉ Farmers receive tailored advice, and high-risk cases alert NGOs instantly

๐ŸŽฌ Demo

๐Ÿ“น Video Demo

Demo Video

๐Ÿ“Š Presentation

๐Ÿ› ๏ธ Tech Stack

Backend Architecture

  • Python 3.8+ - Core development language
  • FastAPI - High-performance API framework for AI orchestration
  • Telegram Bot API - Accessible communication interface
  • Environment Management - Secure API token storage with python-dotenv

AI Modules & APIs

Module Technology Purpose
Image AI Roboflow API / TensorFlow Crop disease and pest detection
Sentiment AI TextBlob, Custom Keyword Engine Distress signal detection
Forecast AI Rule-based logic Crop failure prediction
Weather Data OpenWeatherMap API Environmental monitoring
NLP Enhancement Google Gemini API Future expansion capabilities

Security & Deployment

  • Environment Variables - Secure API key management
  • Railway - Backend hosting platform
  • Vercel - Frontend demo deployment
  • Version Control - Protected API keys in .gitignore

โšก Impact & Innovation

๐ŸŒพ Accessibility Features

  • โœ… 2G-friendly - No app required, works via Telegram/WhatsApp
  • โœ… No literacy barriers - Works with simple photos and messages
  • โœ… No smartphone dependency - Functions on basic phones
  • โœ… Multi-language support - Designed for rural Indian farmers

๐Ÿค– AI Innovation

  • โœ… Multi-layered AI - Image + Text + Forecast in one system
  • โœ… Low-resolution processing - Works with poor-quality images
  • โœ… Real-time monitoring - Instant distress signal detection
  • โœ… Predictive analytics - 90-day advance warning system

๐Ÿ’ Life-Saving Focus

  • โœ… Suicide prevention - Not just agri-tech, it's mental health support
  • โœ… Proactive intervention - Prevents crises before they happen
  • โœ… NGO integration - Connects farmers with support networks
  • โœ… Empathy-driven design - Built with farmers' needs in mind

๐Ÿ“ฆ Sample Use Cases

Crop Autopsy (Image Analysis)

  • Input: Low-res photo of diseased tomato plant
  • Output: "Pest Detected: Aphids. Recommended: Neem spray + hydration."

Distress Signal (Text Analysis)

  • Input: "I don't see the point of trying anymore. My field is ruined."
  • Output: "ALERT: Distress signal detected. NGO team notified."

Forecast AI (Predictive Analysis)

  • Input: "Soil moisture down, pesticide low, rainfall predicted under 20mm"
  • Output: "โš  Zone likely to face crop failure in 60โ€“90 days."

๐Ÿง  AI Development & Compliance

Responsible AI Usage

  • GitHub Copilot - Boilerplate routing & service scaffolding
  • ChatGPT - Architecture decisions and API strategy planning
  • Google Gemini - Mock Q&A responses (declared, not used in logic)
  • TextBlob - Sentiment analysis module testing
  • Roboflow - Image model deployment and testing

HackOrbit 2025 Compliance

  • โœ… All code written after July 6, 10:00 AM IST
  • โœ… Transparent GitHub commits and timestamps
  • โœ… No plagiarized logic/code
  • โœ… AI tools clearly declared
  • โœ… Open-source or mock-simulated datasets

๐Ÿš€ Future Roadmap

Phase 1: Enhancement

  • ๐Ÿ” Fine-tune sentiment classifier with real anonymized data
  • ๐Ÿ“ก Integrate real-time feedback loop with state helplines
  • ๐Ÿ›ฐ๏ธ Add satellite + drone data in Future Vision AI

Phase 2: Scale

  • ๐Ÿงญ Rollout via state agricultural departments + NGOs
  • ๐Ÿ“ฑ Multi-platform support (WhatsApp, SMS)
  • ๐ŸŒ Multi-language expansion

Phase 3: Impact

  • ๐Ÿ“Š Real-time impact tracking and analytics
  • ๐Ÿค Government partnership integration
  • ๐Ÿ’ฐ Sustainable funding model implementation

๐Ÿ’ผ Business Model & Sustainability

Stakeholder Value Proposition Revenue Model
Farmers ๐Ÿ’ฏ Free forever Life-saving service
Govt Agencies Early warning system โ‚น1โ€“5 per alert (SMS/API)
NGOs AI dashboard & alerts Monthly subscription
Long-term Social impact tracking Carbon credits + Impact Bonds

๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ Team F22-Raptors

Team Lead

Team Member

  • Mahee Tibrewal - Co-developer and AI Specialist

Contact

๐ŸŒŸ Recognition

  • ๐ŸŽฏ Life-Saving Impact - Direct suicide prevention focus
  • ๐Ÿค– AI Innovation - Multi-layered AI system
  • ๐ŸŒพ Farmer-Centric - Designed for rural Indian farmers

โญ Let's stop the silent crisis โ€” one message at a time.

"Technology that saves lives, one farmer at a time"

About

AI-powered Telegram bot that prevents farmer suicides by diagnosing crop issues, detecting distress signals, and predicting crop failures. Built for HackOrbit 2025 - accessible 2G-friendly technology that saves lives.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages