0% found this document useful (0 votes)
16 views9 pages

Architecture

The document outlines a project that includes three main modules: Crop Recommendation, Fertilizer Recommendation, and Plant Disease Detection, aimed at assisting farmers with data-driven decisions. It details the technical processes involved, such as using machine learning algorithms like Random Forest and deep learning models like ResNet-9, as well as the author's contributions to the project. The project aims to enhance agricultural productivity by providing tailored recommendations through a user-friendly web interface.

Uploaded by

saeedarwatkar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views9 pages

Architecture

The document outlines a project that includes three main modules: Crop Recommendation, Fertilizer Recommendation, and Plant Disease Detection, aimed at assisting farmers with data-driven decisions. It details the technical processes involved, such as using machine learning algorithms like Random Forest and deep learning models like ResNet-9, as well as the author's contributions to the project. The project aims to enhance agricultural productivity by providing tailored recommendations through a user-friendly web interface.

Uploaded by

saeedarwatkar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

The Crop Recommendation Module helps farmers select the best crop based on soil condition and location.

The user
enters values like Nitrogen, Phosphorus, Potassium, pH level, Rainfall, State, and City. The system processes this input,
checks its completeness, and prepares it for prediction. The dataset used for training is split into training and testing sets
to build and validate the model. Important features are extracted to focus only on useful information. Finally, the system
uses the Random Forest algorithm, which creates multiple decision trees, and the most suggested crop is given as the
final result.

The Fertilizer Recommendation Module helps users identify the right fertilizer based on the selected crop and soil
nutrient values. The user enters NPK values and crop name. The system processes this input by comparing it with ideal
NPK values stored in a dataset. It calculates the difference to find out which one is most unbalanced. The feature with
the biggest difference is selected, and the system checks whether it is too low or too high. Using rule-based logic, a key
like "Nlow" or "Phigh" is generated and matched with a suggestion from a dictionary.

The Plant Disease Detection Module checks if a tomato leaf is healthy or infected by analyzing a test image selected by
the user. The system first pre-processes the image by resizing and removing background noise, followed by
segmentation to focus only on the leaf area. It then extracts important features like color, shape, and texture to detect
signs of disease. Using the ResNet-9 deep learning model (a type of CNN), the image is compared with thousands of
trained examples. The system finally displays the disease name along with a helpful treatment suggestion.

1) Contribution

I mainly worked on the plant disease detection module. I helped with using the tomato leaf images, checking how the
model gives results, and understanding how the system detects the disease from the leaf. I also worked for website
design, like how the pages should look, where to place buttons, and how to make it easy for users to use. Apart from
that, I also helped in preparing the black book by writing the working process, system architecture, and arranging the
content neatly and I was also involved in writing our research paper. So, I contributed to both the technical and
documentation parts of the project.

So primarily, I’ve worked on plant disease detection module where the module checks if the tomato leaf is healthy or
infected by analyzing a test image selected by user. I also worked for website design so that we can make a better
interface for user. Apart from that, I also helped in preparing the black book and writing the research paper. So, I
contributed to both the technical and documentation parts of the project.

ResNet-9 is a type of deep learning model used to recognize patterns in images. The name “ResNet” stands for Residual
Network, and the number 9 means it has 9 layers inside it. These layers help the model understand and learn small
details like shapes, colors, and textures in images.

In our project, ResNet-9 is used to check tomato leaf images and identify if the leaf is healthy or has a disease — just like
how our eyes can spot spots or marks, but this model does it using mathematics.

For each disease, we have around 2,000 images, and in total, our dataset has more than 15,000 images. All the images
are already stored in the system, and the model has been trained using them. When a user selects a test image, the
model compares it with what it has learned and then shows the name of the disease along with a treatment suggestion.

Flask is a Python web framework used to build web apps.


It helps us link the frontend (HTML) with the backend (Python) code.
We used Flask in our project to take input, run predictions, and show results in a webpage.

What did you learn from this project?


Through this project, I learned how to work as a team and how each part of a system connects with the other. I
understood the basics of how machine learning and deep learning models work, especially in predicting crop results and
detecting plant diseases. I also improved my skills in website design, documentation writing, and how to present a
project properly. Overall, it helped me learn both technical and non-technical things in a practical way.

2) What challenges did you face during the project?

We faced some confusion in the beginning while planning the flow of the project and deciding who will do what.
Sometimes we also got stuck while putting everything together. But by discussing with the team and taking small steps
one by one, we managed to solve the problems and complete the project on time.

1. What is the aim of your project?


The aim of our project is to help farmers make better farming decisions by providing crop suggestions, fertilizer advice,
and plant disease identification using a simple web-based system.

2. Why did you choose this topic?


We chose this topic because agriculture is an important field in our country, and we wanted to use technology to make
farming smarter and easier for farmers.

3. Can you explain your project in simple words?


Yes. Our project is a website where the user can enter soil details and get crop and fertilizer suggestions. The user can
also check if a plant leaf is healthy or infected by selecting an image.

4. What are the main features of your project?


The main features of our project are: crop recommendation, fertilizer recommendation, and plant disease detection.

5. What problem does your project solve?


Our project helps reduce guesswork in farming. It provides accurate suggestions to grow the right crop, use the correct
fertilizer, and identify plant diseases early.

6. What technologies or tools did you use?


We used Python for backend, Flask for building the website, HTML and CSS for designing the pages, and MySQL for
storing data.

7. Which algorithm is used in your project?


We used the Random Forest algorithm for crop recommendation. The fertilizer module uses simple rule-based logic.

8. What is the working flow of your system?


The user gives input like soil values and crop name. The system processes the input, applies logic or machine learning,
and gives the result on the website.

9. How does your system give output from the given input?
It compares the user's input with stored data or passes it through a trained model. Based on that, it shows the best crop,
correct fertilizer, or disease name.

10. What is the role of the database in your project?


The database stores important information like crop details, ideal NPK values, fertilizer suggestions, and user input
history. It helps the system work faster and stay organized.

11. What was your role or contribution in the project?


I worked on the plant disease detection part by testing images and checking output. I also helped with website design,
black book writing, and our research paper.
12. Which part did you find most interesting?
I found the plant disease detection part most interesting because it shows how technology can be used to identify plant
problems in seconds.

13. What did you learn during this project?


I learned how to manage a project, work with a team, and apply technical knowledge practically. It also improved my
confidence and communication skills.

14. Did you face any difficulties? How did you solve them?
Yes, we faced a few challenges while connecting all parts of the system and designing the user interface. We solved
them by discussing with each other, taking guidance, and testing everything step by step.

15. What is the use of the black book?


The black book contains the complete details of our project like aim, working process, diagrams, code explanation, and
result. It is used for record and evaluation.

16. What is a research paper and how is it different from the black book?
A research paper is a short, technical summary of the project written in a standard format. The black book is more
detailed and includes the entire project documentation.

17. Can you explain your system architecture?


Yes. Our system architecture shows the flow of input to output. It includes blocks like user input, data processing,
feature extraction, model or logic, and result display.

18. What diagrams did you include in your documentation?


We included system architecture, data flow diagram (DFD), flowchart, and input/output screenshots to explain the
working clearly.

19. How did you divide the modules among team members?
We divided the modules based on interest and strengths. Each member worked on a separate part like crop, fertilizer,
plant module, and documentation.

20. How is your project useful in real life?


Our project can help farmers or agriculture students get instant advice about crops, fertilizers, and plant health without
depending on others.

21. Can this system be improved? If yes, how?


Yes, we can improve it by adding live image upload, more crop and disease types, voice support, and a mobile app
version for easier access.

22. How is your project different from existing systems?


Our system is simple, easy to use, and combines three features in one place — crop suggestion, fertilizer help, and
disease detection.

23. What are the limitations of your project?


Right now, it works on selected inputs and sample images. It can be improved by adding real-time data and making it
usable offline as well.

24. If given more time, what would you add or change?


We would add support for live camera input, more regional languages, and GPS-based suggestions to make it more
helpful for rural farmers.
General Questions:

1. What is the main objective of your project?


o To help farmers with crop selection, fertilizer use, and early disease detection using data-driven
techniques through a website.
2. How does your system benefit farmers in real-world scenarios?
o It increases productivity, reduces costs, and helps detect diseases early, providing access via a user-
friendly website.
3. What are the limitations of your system?
o Challenges include data availability, regional accuracy, and ensuring farmers have internet access for the
website.

4. Why did you choose Machine Learning and Deep Learning for this project?
o These techniques analyze large datasets, predict outcomes, and recognize patterns that are hard to
detect manually.
5. Can you explain the role of Random Forest in crop recommendation?
o It predicts the best crops by analyzing historical data on soil, weather, and yields.
6. What is DeepFM, and why is it useful in this context?
o DeepFM captures both simple and complex interactions between features like soil and crop yield,
improving accuracy.
7. How does the CNN model detect diseases from crop images?
o CNNs recognize patterns in images to detect diseases by training on healthy and diseased crop images.
8. What is the accuracy of your crop disease detection system? How can it be improved?
o The system has 98.4% accuracy, which can be improved by adding diverse datasets and enhancing image
preprocessing.
9. How does the system handle missing or incomplete data?
o It uses techniques like Random Forest and Factorization Machines, which work well with sparse data.

10. How can small-scale farmers use this system?


o Through a mobile app that provides tailored crop and fertilizer recommendations.
11. What environmental benefits does this system offer?
o It promotes sustainable agriculture by optimizing fertilizer use and reducing chemical waste through
early detection.
12. Can the system adapt to different climates and regions?
o Yes, by training it on region-specific data for localized recommendations.
13. What datasets did you use, and how did they help in training your models?
o Datasets from sources like Kaggle helped improve the accuracy of crop and disease predictions.
14. How does real-time data improve the system’s performance?
o Real-time data from IoT sensors ensures timely and accurate recommendations.

15. How do you plan to improve or scale this system in the future?
o By adding more local datasets and expanding the system to handle multiple crops.
16. What challenges did you face during the development of this system?
o Challenges included obtaining accurate data and handling regional differences in farming practices.

17. How can farmers use this system on a daily basis?


o Farmers can input data through the website and receive crop and fertilizer recommendations directly
online.
18. How does the website provide recommendations based on the user’s location?
o The website uses location-based data (via GPS or user input) to tailor crop and fertilizer suggestions.
19. How can farmers access real-time weather predictions through the website?
o The website integrates with weather APIs, providing live forecasts and rainfall data directly on the
platform.

8. What type of user interface does the website have, and how easy is it for farmers to use?
o The website has a simple, intuitive interface designed for easy navigation, even for users with minimal
technical skills.

22. How can small-scale farmers benefit from this system, especially in low-resource settings?

 Small-scale farmers can easily access the website from a basic device with an internet connection, making it
affordable and scalable.

1. What is the main focus of the research papers you surveyed?


o The papers focus on crop recommendation, fertilizer usage, and disease detection using machine
learning.
2. How do the studies in your literature survey relate to each other?
o They all aim to improve agricultural productivity through technology but use different approaches.
3. What methods or technologies were commonly used in the papers you reviewed?
o Common methods include machine learning models like Random Forest, CNNs, and deep learning
techniques.
4. What are the key findings of the research papers?
o They show that machine learning can significantly improve crop selection, fertilizer application, and
early disease detection.
5. Did you find any conflicting results or opinions in the papers?
o Some papers used different models with varying accuracy levels, showing there’s no one-size-fits-all
solution.
6. Why did you choose these specific papers for your literature survey?
o I chose them because they are directly related to the topics of crop management and diagnostics in
agriculture.

1. What gaps did you identify in the existing research?


o There’s a lack of integration of diverse data, and most systems don’t cater to small-scale farmers.
2. Why are these research gaps important?
o Filling these gaps would make agricultural tools more accurate and accessible for a wider range of
farmers.
3. How do you plan to address these gaps in your research?
o By focusing on more localized, user-friendly solutions that integrate real-time data.
4. What challenges might arise when addressing these gaps?
o Collecting and integrating diverse data sources like real-time weather and soil information could be
difficult.
5. How could addressing the research gaps benefit the target audience (e.g., farmers)?
o It will help farmers make better decisions, reduce costs, and increase crop yields through tailored
recommendations.

1. What are the strengths of the studies you reviewed?


o The studies effectively use machine learning to solve real-world agricultural problems.
2. What limitations did you find in the studies?
o Some studies lack real-time data integration and do not address small-scale farming needs.
3. How up-to-date are the papers in your survey?
o Most papers are recent, with advancements in AI and machine learning over the last few years.
4. Did the studies cover different regions or focus on a specific area?
o Many papers focused on general applications, but a few lacked region-specific customization for small
farms.
5. How did the authors validate their models in the studies?
o They validated their models using datasets like Kaggle and accuracy metrics such as precision and recall.

1. What is preventing current solutions from addressing the research gaps?


o The lack of real-time, diverse data integration and user-friendly platforms limits their effectiveness.
2. How could technology help fill the identified research gaps?
o By using more advanced AI models, IoT sensors, and mobile technology for real-time data and user-
friendly interfaces.
3. What would be an ideal solution to address these gaps?
o A comprehensive system that integrates real-time weather, soil data, and localized recommendations
for all farmers.
4. Which industries could benefit from closing these research gaps?
o Agriculture, food security, and environmental sustainability sectors would see significant improvements.
5. Do you foresee new gaps emerging as you address the current ones?
o Yes, as technology advances, there may be gaps in affordability, accessibility, and adaptability for diverse
farming conditions.

The future scope of the project includes expanding the system to handle more crops, fertilizers, and diseases by
integrating additional datasets and real-time data sources. It can also offer region-specific recommendations, support
multiple languages, and improve disease detection accuracy. Additionally, future integration with IoT sensors and
advanced AI models can enhance the system's performance and scalability.

1) Crop Recommendation Module

The Crop Recommendation Module helps farmers choose the best crop to grow based on their soil condition and
location. The user enters values like Nitrogen (N), Phosphorus (P), Potassium (K), pH level, Rainfall, and selects the
State and City. These inputs are submitted through a form on the website.

In the Data Processing step, the system arranges and formats the input properly. It checks if all required values are
entered and prepares the data for the next step. This helps avoid any issues during prediction.

Next is the Splitting of Data, where the main crop dataset is divided into two parts — training data and testing data. The
training data is used to teach the model how different conditions affect crop growth. The testing data checks how well
the model has learned.

In the Feature Extraction step, the system picks only the important details such as N, P, K, pH, Rainfall, State, and City.
These features are used to make the prediction more focused and accurate. It helps the model to ignore any unneeded
data.

The final step is Prediction, where the system gives the best crop suggestion using the Random Forest algorithm. This
algorithm creates many decision trees, and each tree gives a crop suggestion. The crop with the most votes becomes the
final output.
Example:
Imagine you are a farmer in Maharashtra and you “Which crop should I grow based on my soil?” So you open our
system and enter values say

Nitrogen (N): 50
Phosphorus (P): 40
Potassium (K): 30
pH: 6.8
Rainfall: 250 mm
State: Maharashtra
City: Pune

➡️The Random Forest model creates multiple decision trees using this input.
➡️Each tree gives a crop suggestion:
Tree 1 → Rice
Tree 2 → Wheat
Tree 3 → Rice
Tree 4 → Rice

➡️Since most trees suggest Rice, the final output is: “Rice is the best crop to grow.”

2) Fertilizer Recommendation Module

The Fertilizer Recommendation Module helps users find out which fertilizer is needed based on the selected crop and
soil nutrients. The user enters values for Nitrogen (N), Phosphorus (P), Potassium (K) and selects a Crop name from the
list. These details are submitted through a form on the website.

In the Data Processing step, the system reads the ideal NPK values for the selected crop from the stored dataset. It then
compares the user’s entered values with these ideal values. This helps the system understand what the soil is lacking or
has in excess.

The system then checks the difference between the ideal and actual values for each nutrient. It calculates how much
Nitrogen, Phosphorus, and Potassium are lower or higher than needed. This step helps identify which nutrient needs
correction.

In the Feature Extraction step, the system picks the nutrient that shows the biggest difference. It then checks if that
nutrient is too low or too high. Based on this condition, the system creates a key like "Nlow" or "Phigh".

Finally, in the Prediction step, the system uses rule-based logic to match the key with a predefined message stored in a
dictionary. It then shows the user a helpful fertilizer suggestion. This process is simple, fast, and doesn't use machine
learning.

Example:
Let’s say the user selects Tomato as the crop and enters:

Nitrogen (N): 40
Phosphorus (P): 20
Potassium (K): 30
➡️The system checks ideal values for Tomato: N = 60, P = 40, K = 35
➡️It calculates the difference:
Nitrogen is low by 20
Phosphorus is low by 20
Potassium is low by 5

➡️Since Nitrogen and Phosphorus are both low by 20, the system picks one — say Nitrogen.
➡️It creates the key "Nlow" and finds the matching suggestion.
➡️Final output: "Your soil lacks Nitrogen. Use Urea or Ammonium Sulphate to improve it."

3) Plant Disease Detection Module

The Plant Disease Detection Module helps check whether a crop leaf is healthy or infected with a disease. The user
selects a test image of a tomato leaf and this image is sent to the model for further analysis.

In the Pre-processing step, the image is resized and cleaned so the system can read it properly. It removes any extra
background or noise. This helps the model focus only on the leaf part.

The system then performs Segmentation, where it separates the leaf from the background. This highlights only the
affected area. After that, the image moves to the next step for learning.

In the Feature Extraction step, the system checks details like color, shape, and texture of the leaf. These small features
help the model identify any changes caused by disease. The model uses these features to understand what it is looking
at.

Finally, the image goes through the Prediction step using the ResNet-9 deep learning model, which is a type of
Convolutional Neural Network (CNN). This model compares the image with thousands of leaf images it learned during
training. It gives the disease name and shows a treatment tip on the result page.

Example:
Let’s say the user selects an image of a tomato leaf from the test set. The leaf has brown spots and looks infected.

➡️The system pre-processes the image and focuses only on the leaf.
➡️It extracts features like the shape of the spots and leaf color.
➡️The ResNet-9 model compares the image with known disease images.

➡️It identifies the disease as “Tomato Leaf Spot Disease.”


➡️The system then displays the result along with advice:
“Use a copper-based fungicide and avoid watering from above.”

You might also like