π Course: ITEP 308 β System Integration and Architecture I
π Academic Term: First Semester, Academic Year 2025β2026
π« Section: 3WMAD-1
AgroSafeAI is a web-based smart agriculture decision support system designed to help farmers π¨βπΎ and agricultural administrators make accurate, data-driven decisions.
The system focuses on:
- π± Crop disease diagnosis
- π AI-trained treatment planning
- π Smart prediction and analysis
- β± Real-time insights using live weather and market data
By integrating machine learning, real-time APIs, and database-driven systems, AgroSafeAI aims to reduce crop loss, optimize resource usage, and support sustainable farming practices.
- π Detect potential crop diseases early
- π§ Generate AI-based treatment plans
- π Provide real-time predictions and smart insights
- π° Support cost-aware and ROI-driven decisions
- π§© Demonstrate full system integration using modern web technologies
- AI-based crop disease classification
- Early detection to prevent severe crop damage
- Automatic generation of treatment recommendations
- Fungicide suggestions based on trained AI models
- Water usage prediction
- Risk-aware decision support
- AI-driven insights for better farming decisions
- Live weather data integration using Weather API
- Supports disease and irrigation predictions
- Real-time market and currency data
- Cost-aware treatment planning
- Smart ROI-based decision support
- Secure user authentication and sessions
- Admin panel for system monitoring and model retraining
AgroSafeAI follows a layered system architecture :
-
π₯ Frontend (User Interface)
- HTML, CSS, JavaScript, Bootstrap
- Responsive and user-friendly design
-
β Backend Application
- PHP 8.x
- Handles business logic and request processing
-
π€ Machine Learning Layer
- PHP-ML (PHP-AI)
- Trained models stored as
.phpmlfiles
-
π Database Layer
- MySQL (via XAMPP)
- Stores users, sessions, prediction history, and logs
-
π External APIs
- Weather API for real-time environmental data
- Market and Currency API for live price and trade data
- PHP 8.x
- XAMPP (Apache + MySQL)
- Composer (dependency management)
- PHP-ML (PHP-AI)
- Trained AI models:
- π± Disease Classifier
- π Fungicide Predictor
- π§ Water Predictor
- MySQL
- π CSV datasets for ML training
- HTML
- CSS
- JavaScript
- Bootstrap
- π¦ Weather API
- π± Market and Currency API
git clone https://github.com/PaulPaolo2929/AgroSafeAI.git- Install XAMPP
- Start Apache and MySQL
- Move the project folder to:
htdocs/Make sure Composer is installed, then run:
composer install- Open phpMyAdmin
- Create a new MySQL database
- Import the SQL file (if provided)
- Update database credentials in:
includes/config.php- Run the training script:
php train.phpThis will generate .phpml model files inside the models/ directory.
Open your browser and go to: http://localhost/AgroSafeAI/
https://agrosafeai.infinityfreeapp.com/index.php
https://agrosafeai.infinityfreeapp.com/admin/login.php
Presentation and Documentation
Final Presentation (Canva): https://www.canva.com/design/DAG7Yi5BJSY/8VfjaV3IFT8SyFWz4RcQHA/edit
Final Files and Video (Google Drive): https://drive.google.com/drive/folders/1Oe1kAQAojBfmmUTwVu4o3IQexz-6OTzM?usp=sharing
Project Members
Paul Paolo A. Mamugay
Kim Andrei Veloria
Mark Jesus Fidelino
Course Information
Course: ITEP 308 β System Integration and Architecture I Academic Term: First Semester, Academic Year 2025β2026
Future Enhancements
Mobile-friendly Progressive Web App (PWA)
SMS or email alerts
Expanded training datasets
Automated model retraining
Advanced analytics dashboard
Conclusion
AgroSafeAI demonstrates a complete system integration project combining web development, machine learning, real-time APIs, and database systems. It delivers a practical and intelligent solution for modern agriculture while meeting academic and enterprise-level requirements.