AquaSense is an innovative iOS application designed to empower small and medium-sized farmers in France with advanced groundwater level predictions and agricultural insights. Leveraging machine learning and comprehensive data analysis, the app helps farmers make informed decisions about crop selection and water management in the face of increasing climate challenges.
Climate change is significantly impacting agricultural water resources in France:
-
36-40% of agricultural water needs come from groundwater
-
Increasing drought conditions threaten agricultural sustainability
-
Farmers lack reliable tools to predict water availability and optimize crop selection
- Machine Learning Model
- Weather API Integration
- Crop Database Management
- User-Friendly Interface
We have created a custom API that:
- Receives the farmer’s location input
- Retrieves weather data and groundwater predictions
- Queries the Perenual API for suitable crops based on the hardiness zone
- Integrates this information into our analysis model
- Returns comprehensive predictions including:
- Expected groundwater levels
- Suitable crop recommendations
- Predicted additional water costs
Our groundwater prediction model is trained on a comprehensive French piezometric stations dataset containing:
- Data from thousands of monitoring stations across France
- Over 3 million historical measurements from 2020-2023
- Key measurements include:  
- Groundwater level readings
- Station locations (longitude/latitude)
- Measurement depths
- Department and commune information
- Detailed hydrogeological dataThis robust dataset enables accurate groundwater level predictions, particularly during critical summer months when water management is most crucial.
Welcome to the machine learning component of AquaSense, leveraging the winning solution from the Hi!Paris Hackathon Season 5! 🏆 This project demonstrates the power of AutoGluon, a state-of-the-art automated machine learning (AutoML) framework, to deliver exceptional results with minimal effort. Our groundwater prediction model capitalizes on this robust framework to provide highly accurate predictions for sustainable agriculture.
Machine learning is often a complex process involving:
- Model selection
- Data preprocessing
- Parameter tuning
AutoGluon simplifies this by automating the pipeline, enabling rapid development without sacrificing performance.
Ensemble learning, the foundation of AutoGluon, combines predictions from multiple models to improve accuracy and robustness. This approach is highly effective because:
- Different models capture different patterns in data.
- Aggregating multiple models reduces the risk of overfitting and underfitting.
- Ensembles often outperform individual models in real-world scenarios.
By automatically training diverse models (e.g., decision trees, gradient boosting machines, neural networks) and combining their outputs, AutoGluon delivers robust and reliable results.
- Automatic Ensembling: Combines models using bagging and stacking without requiring manual intervention.
- Out-of-the-Box Performance: Delivers strong results without hyperparameter tuning, making it ideal for tight deadlines.
- Robust Handling of Real-World Data: Seamlessly processes missing values, categorical variables, and imbalanced datasets.
- Resource-Aware: Adjusts to available computational resources for optimal efficiency.
AutoGluon’s simplicity and effectiveness made it the perfect choice for AquaSense. We leveraged its default settings, relying entirely on its:
- Predefined ensemble methods
- Automatic preprocessing capabilities
- Baseline hyperparameters (no tuning required)
This approach allowed us to focus on understanding the problem and the data, rather than fine-tuning the model.
Key Metrics for Hi!Paris Hackathon Season 5:
- F1 Score: 69.61%
AutoGluon delivered superior results by:
- Automatically ensembling multiple models
- Handling data preprocessing efficiently
- Using robust baseline configurations designed for competitive performance
We utilize the Perenual API (perenual.com), which provides comprehensive plant data, including:
- Watering needs
- Hardiness zone compatibility
- Growth requirements
- Seasonal information
This data helps us determine crop suitability and water requirements for different locations.
This project is licensed under the MIT License.
Developed as an open-source innovative solution to address agricultural water management challenges in the context of climate change.