Final Bda
Final Bda
SYSTEM
A PROJECT REPORT
Submitted by
KARTHIKEYAN M (621522205027)
JEEVANATH A (621522205022)
IYYAPPAN G (621522205019)
BOOBALAN R (621522205010)
of
BACHELOR OF TECHNOLOGY
in
INFORMATION TECHNOLOGY
MAY 2025
i
ANNA UNIVERSITY: CHENNAI 600 025
BONAFIDE CERTIFICATE
KARTHIKEYAN M (621522205027)
JEEVANATH A (621522205022)
IYYAPPAN G (621522205019)
BOOBALAN R (621522205010)
SIGNATURE SIGNATURE
Dr. T. AKILA, M.E, Ph.D., Dr. T. AKILA, M.E, Ph.D.,
PROFESSOR, PROFESSOR,
HEAD OF THE DEP3ARTMENT, SUPERVISIOR,
Department of Information Technology, Department of Information Technology,
Mahendra College of Engineering, Mahendra College of Engineering,
Minnampalli, Salem-636106. Minnampalli, Salem-636106.
The Success and final outcome of this project required a lot of guidance and assistance
from many people and an extremely fortunate to have got this all along with the completion
of my project work.
We owe my profound gratitude to our guide, Dr. T.AKILA , Head of the Department
of Information Technology who took an interest in our projectwork and provided all the
necessary information for developing the project successfully. We also thank all the staff
members of our college and technicians for their help in making this project a successful one.
Lastly, we would like to thank the almighty and my parents for their moral support and
my friends with whom shared my day-to-day experience and received lots of suggestions that
improved my quality of work.
iii
ABSTRACT
The platform offers a user-friendly interface with modules for weather-based crop
suggestions, automated crop disease identification, plant disease treatment
recommendations, seasonal crop planning. These features are accessible through a
centralized dashboard, making advanced agricultural insights available to users with
minimal technical expertise.
The backend is structured to handle data processing, storage, and integration with
external APIs or machine learning models, while the frontend provides an intuitive
navigation experience. The project’s scope includes supporting sustainable farming
practices, increasing productivity, and bridging the gap between traditional agriculture and
smart technology.
iv
TABLE OF CONTENTS
ABSTRACT iv
1 INTRODUCTION 1
1.1 OVERVIEW 1
2 LITERARTUTE REVIEW 3
AGRICULTURE
v
2.6 SEASONAL CROP PLANNING WITH ICT 5
3 SYSTEM ANALYSIS 5
6
3.2 PROPOSED SYSTEM
4 SYSTEM REQUIREMENTS 8
5.1 RCNNARCHITECURE 14
vi
5.2 SYSTEM ARCHITECURE 9
6 UML DIAGRAMS 14
vii
7 PERFORMANCE ANALYSIS 17
8.3 METHODOLOGY 19
8 CONCULSION 20
9 FUTURE ENHANCEMENT 21
10 APPENDIX 22
11 BIBLIOGRAPHY 28
viii
LIST OF FIGURES
ix
CHAPTER-1
INTRODUCTION
1.1 OVERVIEW
The heart of Weather and Crop Prediction is its ability to provide weather-
based crop suggestions. By analyzing real-time and forecasted weather data, the
platform recommends the most suitable crops for current and upcoming conditions,
helping farmers optimize their yields and reduce risks associated with unpredictable
weather patterns.
1
1.3 OBJECTIVE OF THE PROJECT
In this study, Weather and Crop Prediction project is to empower farmers and
agricultural stakeholders by providing them with a comprehensive, data-driven
platform that supports smarter and more efficient decision-making in their farming
activities,user-friendly web application, the project aims to simplify complex
agricultural processes and make advanced technology accessible to users of all
backgrounds.
2
CHAPTER-2
LITERATURE REVIEW
This review explores the use of machine learning techniques in the early
detection and classification of crop diseases. It covers image processing, feature
extraction, and the application of deep learning models such as CNNs for accurate
disease identification.
3
2.4 TITLE : REAL-TIME MARKET DATA IN AGRICULTURE
This literature review examines the integration of Internet of Things (IoT) devices
in smart farming. It covers the deployment of sensors for real-time monitoring of
soil, weather, and crop health.
4
CHAPTER-3
SYSTEM ANALYSIS
5
4. Market Uncertainty:
In the absence of real-time data, farmers typically rely on local traders or
intermediaries for information about crop prices and demand. This lack of
transparency can result in farmers their produce at suboptimal times or prices.
4. Personalized Recommendations
By Weather and Crop Prediction delivers tailored advice for each user, taking
into account specific farm data, local environmental conditions, and individual crop
histories.
7
CHAPTER-4
SYSTEM REQUIREMENTS
8
CHAPTER-5
SYSTEM DESIGN AND DEVELOPMENT
9
5.3 DATA COLLECTION SET
10
5.4 DATA PRE-PROCESSING
11
5.6 ALGORITHM SELECTION
Convolutional Layers
The convolutional layers form the foundation of a CNN. These layers utilize
small filters (kernels) that slide over the image to extract localized features. In the
context of crop disease detection, these filters learn to identify features such as
spots, discolorations, or edge deformities that indicate infection or nutrient
deficiencyPooling Layers.
These layers consolidate the extracted features and learn the higher-order
relationships necessary for classification. In crop disease detection, the fully
connected layers help in distinguishing between various disease types and healthy
leaf conditions..
12
Activation Functions
Softmax Layer
The use of CNNs in this crop disease detection project is strongly justified
due to their robust performance in similar visual classification tasks. These
networks provide a powerful framework for automated, scalable, and accurate
diagnosis of plant health
Model Construction
Build the model with convolutional, pooling, and fully connected layers.
Apply dropout to reduce overfitting.
Training
Train on the preprocessed dataset, validate periodically, and adjust hyperparameters
based on validation results.
Model Evaluation
Test the model on unseen data and measure accuracy, precision, recall, and F1-
score.
13
CHAPTER-6
UML DIAGRAMS
The class diagram for the Crop Disease Identification System shows the static
structure of the project, highlighting key classes like ImageProcessor,
ModelTrainer, DatasetManager, PredictionEngine, and FileHandler. It visualizes
how these components interact—for example, ModelTrainer uses ImageProcessor
and DatasetManager, while PredictionEngine loads models using FileHandler. This
diagram provides a clear overview of the system's architecture and relationships,
useful for development and communication.
14
6.2 USE CASE DIAGRAM
A A use case diagram for the Crop Disease Identification System illustrates
the interactions between users (e.g., farmers, admin) and the system to achieve tasks
like uploading images, identifying diseases, and viewing results. It provides a user-
focused view of system behavior, helping to define and communicate functional
requirements clearly during the analysis and design phases.
15
6.3 ACTIVITY DIAGRAM
16
CHAPTER-7
PERFORMANCE ANALYSIS
The data used in this project is made by enlarging and consolidating India’s
publicly available data sets such as weather, soil, etc. This data is simple compared to
very few factors but useful as opposed to complex factors that affect crop yields. The
data are rich in Nitrogen, Phosphorus, Potassium, and soil PH. Also, it contains
humidity, temperature and rainfall required for a particular plant.
17
On applying it to dataset , it gives accuracy of 94.41%
18
7.3 METHODOLOGY
19
CHAPTER-8
CONCULSION
Through the use of React.js for the frontend and Node.js/Express.js for the
backend, Weather and Crop Prediction delivers a responsive, scalable, and
maintainable solution. Middleware tools like body-parser and cors ensure smooth
communication between the client and server, while the modular architecture allows
for future enhancements such as IoT integration, advanced AI, and mobile app
support.The project not only bridges the gap between traditional farming practices
and modern technology but also democratizes access to expert knowledge and real-
time data. This enables even small-scale farmers to benefit from precision
agriculture, optimize resource usage, and respond proactively to changing
environmental and market conditions.
20
CHAPTER-9
FUTURE ENHANCEMENT
1. Multi-Modal Fusion:
Description: Develop a mobile app with real-time camera input and edge AI to
allow farmers to detect diseases instantly in the field without needing internet
connectivity.
3. Explainable AI (XAI):
Description: Extend the model to predict the progression and severity of crop
diseases over time, enabling proactive management and treatment
recommendations.
21
CHAPTER-10
APPENDIX
train.py
import tensorflow as tf
import json
import os
import scipy
# Dataset path
TRAIN_PATH = "train"
MODEL_PATH = "model/clean_model.h5"
CLASS_NAMES_PATH = "model/class_names.json"
os.makedirs(os.path.dirname(MODEL_PATH), exist_ok=True)
22
# Data preprocessing with error handling
try:
train_datagen = ImageDataGenerator(
rescale=1./255,
rotation_range=20,
width_shift_range=0.2,
height_shift_range=0.2,
horizontal_flip=True,
validation_split=0.2
train_generator = train_datagen.flow_from_directory(
TRAIN_PATH,
target_size=(224, 224),
batch_size=32,
class_mode='categorical'
num_classes = len(train_generator.class_indices)
23
# Create the model
224, 3))
x = base_model.output
x = GlobalAveragePooling2D()(x)
x = Dense(1024, activation='relu')(x)
layer.trainable = False
model.compile(
optimizer='adam',
loss='categorical_crossentropy',
metrics=['accuracy']
history = model.fit(
train_generator,
24
epochs=5,
steps_per_epoch=len(train_generator)
model.save(MODEL_PATH, include_optimizer=False)
class_names = list(train_generator.class_indices.keys())
json.dump(class_names, f)
except Exception as e:
raise
25
10.2 OUTPUT SCREENS
26
Figure 10.3 Crop disease treatments
27
CHAPTER-11
BIBLIOGRAPHY
REFERENCES
1. Smith, J. W., Schneider, S. H., Oppenheimer, M., Yohe, G. W., Hare, W.,
Mastrandrea, M. D., Patwardhan, A., Burton, I., Corfee-Morlot, J., & Magadza,
C. H. D. (2009). Assessing dangerous climate change through an update of the
Intergovernmental Panel on Climate Change (IPCC) "reasons for concern."
Proceedings of the National Academy of Sciences, 106(11), 4133-4137.
https://doi.org/10.1073/pnas.0812355106
2. Lobell, D. B., Burke, M. B., Tebaldi, C., Mastrandrea, M. D., Falcon, W. P., &
Naylor, R. L. (2008). Prioritizing Climate Change Adaptation Needs for Food
Security in 2030. Science, 319(5863), 607-610.
https://doi.org/10.1126/science.1152339
4. Ray, D. K., Gerber, J. S., MacDonald, G. K., & West, P. C. (2015). Climate
variation explains a third of global crop yield variability. Nature
Communications, 6(1), 5989. https://doi.org/10.1038/ncomms6989
28
5. Wheeler, T., & von Braun, J. (2013). Climate Change Impacts on Global Food
Security. Science, 341(6145), 508-513 .
https://doi.org/10.1126/science.1239402
7. Thornton, P. K., Ericksen, P. J., Herrero, M., & Challinor, A. J. (2014). Climate
variability and vulnerability to climate change: a review. Global Change
Biology, 20(11), 3313-3328. https://doi.org/10.1111/gcb.12158
8. Lesk, C., Rowhani, P., & Ramankutty, N. (2016). Influence of extreme weather
disasters on global crop production. Nature, 529(7584), 84-87.
https://doi.org/10.1038/nature16467
9. Challinor, A. J., Watson, J., Lobell, D. B., Howden, S. M., Smith, D. R., &
Chhetri, N. (2014). A meta-analysis of crop yield under climate change and
adaptation. Nature Climate Change, 4(4), 287-291.
https://doi.org/10.1038/nclimate2153
10. Myers, S. S., Zanobetti, A., Kloog, I., Huybers, P., Leakey, A. D. B., Bloom, A.
J., Carlisle, E., Dietterich, L. H., Fitzgerald, G., & Hasegawa, T. (2014).
Increasing CO2 threatens human nutrition. Nature, 510(7503), 139-142.
https://doi.org/10.1038/nature13179
29