Vinayan
Vinayan
System
A PROJECT REPORT
BACHELOR OF TECHNOLOGY
By
BONAFIDE CERTIFICATE
This is to certify that the report entitled Mobile Accessible Precision Agriculture System submitted
by Nikhil Vinayan [SCM20CS093] Nikhil Bijo [SCM20CS092] Prashobh C.P. [SCM20CS100]
Shivaduth Thampi [SCM20CS116] to the APJ Abdul Kalam Technological University in partial
fulfillment of the requirements for the award of the Degree of Bachelor of Technology in ( Computer
Science And Engineering ) is a bonafide record of the project work carried out by him/her under
my/our guidance and supervision. This report in any form has not been submitted to any other
University or Institute for any purpose.
DECLARATION
We undersigned hereby declare that the project report on ’Mobile Accessible Precision Agriculture
System’,submitted for partial fulfilment of the requirements for the award of the degree of Bachelor
of Technology of the APJ Abdul Kalam Technological University, Kerala is a bonafide work done by
us under the supervision of Dr. Varun G. Menon. This submission represents our ideas in our own
words and where ideas or words of others have been included, we have adequately and accurately cited
and referenced the original sources. We also declare that we have adhered to the ethics of academic
honesty and integrity and have not misrepresented or fabricated any data or idea or fact or source in
our submission. We understand that any violation of the above will be a cause for disciplinary action
by the institute and/or the University and can also evoke penal action from the sources which have
thus not been properly cited or from whom proper permission has not been obtained. This report has
not previously formed the basis for the award of any degree, diploma, or similar title of any other
University.
ii
Mobile Accessible Precision Agriculture System
ACKNOWLEDGEMENT
On the very outset of this report, we would like to extend our sincere and heartfelt obligation towards
all the personages who have helped us in making this project a reality. We would like to extend our
gratitude to our principal Dr.Anitha G.Pillai for facilitating the development of the project by provid-
ing the necessary resources from the college. We would like to put on record our deepest gratitude
to the Head of the Department of Computer Science, Dr. Manish T.I., for his guidance and support
throughout the project. We are ineffably indebted to our project guide Dr.Varun G. Menon and our
class coordinator Dr.Arshey M. for their valuable inputs and mentoring, without which this project
would not have been completed successfully. We are very lucky to have the grace of god and also
express our gratitude towards our parents and members of family, who always supported us morally
as well as economically. We convey our heartiest thanks to our team members who have been kind
enough to put their earnest efforts toward the development of this project. We also like to express our
heartfelt thanks to the faculty members and classmates for their cooperation, guidance, feedback and
encouragement they have been offering since day one, in building this project. Any omission in this
brief acknowledgement does not mean lack of gratitude.
iii
Mobile Accessible Precision Agriculture System
ABSTRACT
This project proposes the development of a comprehensive Precision Agriculture System (PAS) acces-
sible through mobile platforms, aimed at optimizing crop management processes for farmers. Lever-
aging ensemble modeling techniques, the system facilitates intelligent crop selection, fertilizer rec-
ommendation, and real-time weather updates to empower farmers with data-driven decision-making
capabilities. Key components of the system include an ensemble model trained on historical and real-
time agricultural data, enabling accurate crop selection tailored to specific environmental conditions
and soil characteristics. Integration with IoT sensors facilitates seamless data collection, with soil
data transmitted to Firebase for efficient storage and retrieval. Through Firebase, the system provides
various services including crop-specific fertilizer recommendations, leveraging soil nutrient analysis
and crop requirements.The mobile interface offers farmers convenient access to crucial agricultural in-
sights, enabling them to monitor crop health, predict yield, and adjust management practices accord-
ingly. Real-time weather updates further enhance decision-making by alerting farmers to potential
environmental risks such as storms or extreme temperatures.Overall, this project aims to revolutionize
traditional agriculture practices by harnessing the power of data analytics, IoT integration, and mobile
accessibility, ultimately empowering farmers to optimize crop yields while minimizing resource usage
and environmental impact
iv
CONTENTS
Declaration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ii
Acknowledgement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iii
Abstract . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iv
List of Figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vi
Abbreviation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii
1 INTRODUCTION 1
1.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3 Problem Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.4 Organization Of Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2 LITERATURE REVIEW 5
3 METHODOLOGY 7
3.1 Hardware Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.2 Data Collection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.2.1 Crop recommendation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.2.2 Fertilizer Recommendation . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.3 Data Preprocessing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.4 Machine Learning and Modelling . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.5 Mobile App Development . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4 SYSTEM DESIGN 14
4.1 System Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
5 RESULTS 17
v
Mobile Accessible Precision Agriculture System List of Figures
List of Figures
3.1 Methodology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.2 Proposed System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.3 Crop Recommendation Dataset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.4 fertilizer recommendation dataset . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.5 crop recommendation methodolody . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.6 Fertilizer recommendation methodolody . . . . . . . . . . . . . . . . . . . . . . . . 12
vi
Mobile Accessible Precision Agriculture System A BBREVIATIONS
ABBREVIATIONS
SVM Support Vector Machine
KNN K-Nearest Neighbours
AI Artificial Intelligence
ML Machine Learning
vii
CHAPTER 1
INTRODUCTION
1.1 Overview
Precision agriculture is transforming traditional farming methods by leveraging advanced tech-
nology and data-driven insights to improve productivity and sustainability. The rapid expansion of
mobile technology, the Internet of Things (IoT), and machine learning has given rise to new solutions
that allow farmers to manage their crops more efficiently. As agriculture becomes more data-centric,
farmers are embracing precision agriculture to meet the increasing demands of food production while
minimizing environmental impact.
The integration of IoT in agriculture allows farmers to collect real-time data from various sensors
placed across their fields. These sensors can measure essential variables like soil moisture, temper-
ature, humidity, and nutrient levels. This continuous flow of data enables farmers to monitor their
crops and make informed decisions, reducing the need for manual data collection and improving the
accuracy of farming practices. Mobile applications offer a convenient way for farmers to access this
information, allowing them to stay connected to their fields regardless of their location.
Machine learning and ensemble modeling are key elements in the precision agriculture toolbox.
Ensemble models, which combine the outputs of multiple machine learning algorithms, provide robust
and accurate predictions. By analyzing complex agricultural datasets, these models can offer valuable
insights into optimal crop selection, fertilizer requirements, and irrigation schedules. This data-driven
approach enhances farmers’ ability to make the right choices for their specific conditions.
Real-time weather updates are also crucial in agriculture, as weather patterns can significantly im-
pact crop health and productivity. Mobile applications that provide weather forecasts enable farmers to
adjust their practices to accommodate changing conditions, helping them mitigate risks and improve
resilience against adverse weather events.
1
Mobile Accessible Precision Agriculture System INTRODUCTION
The proposed mobile-accessible precision agriculture system brings together these technologies to
create a comprehensive solution for farmers. IoT sensors collect data from the field, which is stored
in a cloud-based platform like Firebase. The system uses ensemble modeling to analyze this data and
generate recommendations for crop and fertilizer selection. The mobile interface ensures that farmers
have easy access to this information, along with real-time weather updates, allowing them to make
informed decisions on the go.
This approach to precision agriculture has the potential to revolutionize traditional farming by
providing farmers with a more efficient and sustainable way to manage their crops. By offering per-
sonalized insights and automating data collection, this system can reduce resource waste and increase
yields, ultimately benefiting both farmers and the environment. The following sections will delve
into the system’s specific features, explore its impact on agricultural practices, and highlight areas for
further research and innovation in precision agriculture.
2
Mobile Accessible Precision Agriculture System INTRODUCTION
1.2 Objectives
• To Develop a mobile-accessible precision agriculture system
• Utilize a network of soil sensors and environmental sensors for real-time data collection
• Provide fertilizer recommendations tailored to specific soil conditions and crop requirements
This project proposes a solution: a precision agriculture system integrating mobile-accessible soil
and air quality monitoring.
3
Mobile Accessible Precision Agriculture System INTRODUCTION
4
CHAPTER 2
LITERATURE REVIEW
"A review of wireless sensor networks and applications in precision agriculture"[1], explores the
significance of integrating wireless sensor networks (WSNs) in precision agriculture. It discusses
the use of sensors to gather data on soil conditions, crop health, and other critical farming variables,
highlighting the benefits for site-specific crop management. The paper also emphasizes the potential
for reducing resource waste and enhancing farming efficiency through WSNs in precision agriculture.
By leveraging real-time data collection and analysis, the authors argue that precision agriculture can
lead to better decision-making and improved crop yields. Additionally, the paper addresses challenges
in WSNs, such as data security and infrastructure costs, while suggesting solutions to overcome these
barriers.
"How can precision agriculture contribute to environmental protection?"[2], by Ge et al., focuses
on the environmental benefits of precision agriculture. It discusses how precision agriculture can
minimize the use of fertilizers and pesticides, leading to reduced environmental impact. The paper
also examines the potential for precision agriculture to promote sustainable farming practices, empha-
sizing the positive effects on biodiversity and soil health. The authors highlight specific case studies
demonstrating how precision agriculture has successfully reduced chemical runoff and improved water
management in agricultural settings. This research provides valuable insights into the environmental
implications of precision agriculture and underscores its potential for promoting sustainable agricul-
ture.
"The application of precision agriculture technologies in farmland"[3], by Yildirim and Atalay,
reviews the different technologies used in precision agriculture, such as GPS, IoT, and remote sens-
ing. It emphasizes the importance of data-driven decisions for effective farm management. The paper
discusses how these technologies can enhance crop monitoring, leading to more accurate application
of resources like water and fertilizers. Additionally, the paper explores the role of mobile technology
in precision agriculture, noting how mobile applications can facilitate remote monitoring and real-
time data analysis for farmers. The authors suggest that these technologies can improve overall farm
productivity and reduce manual labor, leading to greater adoption of precision agriculture practices.
5
Mobile Accessible Precision Agriculture System LITERATURE REVIEW
"An IoT-based decision support system for smart irrigation in precision agriculture"[4], by Mon-
toliu et al., introduces a decision support system that utilizes IoT for smart irrigation in precision
agriculture. The paper describes how the system collects real-time data on soil moisture and weather
conditions to optimize irrigation schedules. It demonstrates how IoT-based systems can contribute to
more efficient water use and reduce waste in agricultural settings. The authors present experimental
results showing that their system improved irrigation efficiency and reduced water consumption. This
research indicates that IoT-based irrigation systems can play a crucial role in sustainable agriculture
by optimizing resource use and minimizing environmental impact.
"Recent advances in crop growth monitoring using satellite data"[5], by Li et al., reviews the
use of satellite data in precision agriculture. It discusses how satellite imagery can provide valuable
insights into crop health and growth patterns, allowing farmers to make informed decisions. The pa-
per examines the advancements in satellite-based technologies for precision agriculture, highlighting
their applications in monitoring large-scale farmlands. The authors suggest that satellite data can help
identify areas requiring additional resources or attention, leading to more targeted interventions. Fur-
thermore, the paper explores the potential for integrating satellite data with other precision agriculture
technologies to enhance overall farm management and productivity.
6
CHAPTER 3
METHODOLOGY
The methodology adopted for this project encompasses a multifaceted approach tailored to ensure
comprehensive coverage and efficacy in achieving the outlined objectives. It commences with hard-
ware implementation, laying the foundational infrastructure necessary for subsequent phases. Fol-
lowing this, meticulous data collection is undertaken, harnessing diverse sources to construct a robust
dataset essential for training and validation. Machine Learning (ML) techniques are then deployed
to extract meaningful insights and patterns from the amassed data, facilitating informed decision-
making and predictive modeling. Concurrently, mobile app development ensues, leveraging the in-
sights garnered from ML to create a user-friendly interface for seamless interaction and utilization
of the proposed solution. Finally, rigorous testing and validation protocols are executed to assess the
performance and reliability of the developed system across various scenarios, ensuring its readiness
for real-world deployment. This comprehensive methodology ensures a systematic and thorough pro-
gression from inception to implementation, culminating in a refined solution poised to address the
identified challenges effectively.
7
Mobile Accessible Precision Agriculture System METHODOLOGY
• 7 in 1 soil sensor
• DC to DC convertor
• RS-485 Module
• DHT11
• Zero PCB
8
Mobile Accessible Precision Agriculture System METHODOLOGY
Dataset Contents:
• rainfall - rainfall in mm
Users are expected to input the site specific parameters like: N, P, K (all of them in temperature
(in °C), relative humidity (in %), rainfall (in mm) and pH.
By compiling and structuring this diverse set of information into a unified dataset, we were able to
develop a robust crop recommendation system capable of providing tailored recommendations based
on specific environmental conditions and agricultural practices.
9
Mobile Accessible Precision Agriculture System METHODOLOGY
• The Fertilizer Association of India: This organization provided valuable insights into fertilizer
usage, compositions, and their effects on crop yields in the Indian agricultural context.
• Indian Institute of Water Management: The institute offered research-based information on soil
properties, nutrient requirements, and optimal fertilization practices for different crops.
• Kaggle: Kaggle was also utilized to gather supplementary data on fertilizer compositions and
their recommended applications in agriculture.
This comprehensive dataset encompasses soil properties, nutrient requirements, and optimal fertiliza-
tion practices for diverse crops in the Indian context, ensuring accurate recommendations for farmers
to enhance crop yields sustainably.
10
Mobile Accessible Precision Agriculture System METHODOLOGY
Dataset columns:
The dataset for fertilizer recommendations included the following columns:
• Crop: The specific crop for which the fertilizer recommendation was being made.
• Cleaned Data and Addressed Outliers: Cleaned the data by removing anomalies and handling
outliers.
11
Mobile Accessible Precision Agriculture System METHODOLOGY
Difference is calculated between desired value of N, P, K as per crop and the farmâs actual value
based on it there are 3 outcomes possible for all three nutrients:
1. High
2. Low
3. Up to the mark
Based on the outcomes from the above step, a dictionary based solution (organic fertilizers) will be
displayed.
12
Mobile Accessible Precision Agriculture System METHODOLOGY
13
CHAPTER 4
SYSTEM DESIGN
This architecture consists of several blocks for processing video and audio data to identify deep-
fakes. Here’s a breakdown of the blocks:
1. Weather Api: Weather APIs provide a gateway to access weather data programmatically, enabling
applications to retrieve forecasts, current conditions, and historical data. Integrating Weather APIs
enhances user experiences with accurate weather information. Developers benefit from easy access to
a wide range of meteorological data without the need for complex data processing. This allows them
to focus on application logic and design, ensuring weather-related information is readily available.
14
Mobile Accessible Precision Agriculture System SYSTEM DESIGN
Weather APIs are essential tools for developers seeking to add weather functionality to their applica-
tions.
2. Air Quality monitoring system: Air quality monitoring systems are crucial for assessing and man-
aging the air we breathe. These systems, typically comprising strategically placed sensors, measure
pollutants like particulate matter, ozone, nitrogen dioxide, carbon monoxide, and sulfur dioxide. The
data collected helps governments and organizations understand air quality, identify pollution sources,
and take necessary actions to safeguard public health.
3. Soil Multiparameter Device: These devices integrate several sensors into a single unit, allowing
for efficient and comprehensive data collection in various fields such as environmental monitoring,
water quality assessment, and medical diagnostics. By consolidating multiple measurements into one
device, multi-parameter devices streamline data acquisition processes, reduce costs, and enhance con-
venience for users.
4. Cloud: Utilizing cloud platforms, data from ESP8266 devices can be securely transmitted and
stored in centralized databases. This approach enables real-time access to sensor data from anywhere
with an internet connection, facilitating prompt analysis, visualization, and decision-making. Leverag-
ing the cloud for data management enhances the scalability, reliability, and accessibility of air quality
monitoring systems, empowering stakeholders to effectively monitor and manage air quality for better
public health outcomes.
5. Data Fusion and Enhancement : Data fusion involves integrating information from multiple sources
to create more accurate, comprehensive, and valuable datasets. This process combines data from var-
ious sensors, devices, or sources with traditional databases. By merging these different data sources,
data fusion enhances the quality and reliability of the information, providing a more holistic view of
the situation. This approach is particularly useful in fields like environmental monitoring, where com-
bining data from different sensors can lead to a more complete understanding of complex systems.
6.ML Execution and Insight Generation: Machine learning deployment involves implementing and
utilizing models to analyze data and generate insights automatically. These models are trained on
15
Mobile Accessible Precision Agriculture System SYSTEM DESIGN
large datasets to recognize patterns and make predictions or decisions without explicit programming.
By deploying machine learning models, businesses and organizations can automate complex analyt-
ical tasks, uncover hidden patterns in data, and make data-driven decisions more efficiently. This
approach is increasingly used in various fields, including agriculture,finance, and marketing, to drive
innovation and improve decision-making processes.
16
CHAPTER 5
RESULTS
The implementation of the app underwent several stages to ensure a seamless user experience. The
screenshots below depict the various interfaces designed and integrated into the application, including
the login page, home page, and service pages offering functionalities such as weather updates, sensor
data, crop recommendations, and fertilizer recommendations.
Login Page: The login page serves as the entry point for users, requiring authentication to access the
application’s features. It provides a secure gateway ensuring only authorized users can utilize the app.
Home Page: The home page acts as the central hub of the application, presenting users with intu-
17
Mobile Accessible Precision Agriculture System RESULTS
itive navigation options to explore the available services efficiently. It serves as the starting point for
accessing various functionalities seamlessly.
Services Page: The services page offers users a comprehensive range of functionalities tailored to their
agricultural needs. Options include accessing weather updates, sensor data analysis, crop recommen-
dations, and fertilizer recommendations, providing valuable insights to optimize farming practices.
The crop recommendations service offers users personalized suggestions based on factors such as soil
type, climate conditions, and crop preferences. By leveraging crop recommendation algorithm, it de-
livers actionable insights to enhance crop productivity and yield.
18
Mobile Accessible Precision Agriculture System RESULTS
The fertilizer recommendations service provides users with tailored advice on selecting the appro-
priate fertilizers for their crops. By analyzing soil composition and nutrient requirements, it helps
optimize fertilization strategies, promoting sustainable agriculture practices.
Overall, the integration of these UI elements enhances the usability and effectiveness of the ap-
plication, empowering users with valuable tools to make informed decisions and improve agricultural
outcomes.
19
CHAPTER 6
6.1 Conclusion
In conclusion, our integrated precision farming project marks a significant leap forward in agricul-
tural efficiency and sustainability. By harnessing the power of sensor technology to gather real-time
data on nitrogen, phosphorus, and potassium levels in the soil, we have paved the way for predictive
modeling that optimizes crop selection and fertilizer application.
Through the seamless integration of data analytics and agricultural science, our project empowers
farmers to make informed decisions that maximize yield while minimizing environmental impact. By
accurately predicting crop performance and nutrient requirements based on sensor data, we enable
farmers to tailor their practices with unprecedented precision, thereby optimizing resource utilization
and reducing waste.
Furthermore, the scalability and adaptability of our approach hold immense promise for the future
of agriculture. As the global population continues to grow and environmental pressures intensify,
solutions like integrated precision farming offer a pathway towards sustainable food production.
In essence, our project represents a pioneering effort to merge cutting-edge technology with age-
old farming practices, ushering in a new era of productivity, profitability, and environmental steward-
ship in agriculture. With continued research and implementation, the potential benefits of integrated
precision farming are boundless, promising a brighter, more sustainable future for generations to come.
20
Mobile Accessible Precision Agriculture System CONCLUSION AND FUTURE SCOPE
• Create a platform that helps farmers optimize their supply chain by predicting demand, manag-
ing inventory and streamlining distribution channels.
• Explore blockchain technology to enhance transparency and traceability in the agricultural sup-
ply chain.
21
Bibliography
[1] S. Ge, F. Wu, and Z. Liu. How can precision agriculture contribute to environmental protection?
International Journal of Agricultural Sustainability, 9(1):177–187, 2011.
[2] J.-H. Lee and I.-Y. Soh. A review of wireless sensor networks and applications in precision
agriculture. Computers and Electronics in Agriculture, 149:97–115, 2018.
[3] C. Li, Y. Liu, C. Zhao, and J. Qin. Recent advances in crop growth monitoring using satellite data.
Agricultural Sciences in China, 14(7):1111–1124, 2015.
[4] M. A. Montoliu, J. M. del Cerro, and A. Lopez. An iot-based decision support system for smart
irrigation in precision agriculture. Sensors, 17(2):279, 2017.
[5] I. Yildirim and M. F. Atalay. The application of precision agriculture technologies in farmland.
Fresenius Environmental Bulletin, 25(11):5127–5133, 2016.
22