The rice leaf suffers from several bacterial, viral, or fungal diseases and these diseases reduce rice production significantly. To sustain rice demand for a vast population globally.The rice leaves related diseases often pose threats to the sustainable production of rice affecting many farmers around the world. Early diagnosis and appropriate remedy of the rice leaf infection is crucial in facilitating healthy growth of the rice plants to ensure adequate supply and food security to the rapidly increasing population.
This dataset contains 120 jpg images of disease infected rice leaves. The images are grouped into 3 classes based on the type of disease. There are 40 images in each class.
- Leaf smut
- Brown spot
- Bacterial leaf blight
- Importing library
- Loading data
- Preparing data
- Data Processing
- Model building
- Training
- Evaluation
- Testing
• Make a subset of data into three parts train, test, and validation with the help of split folder library.
• In this step generate the batches of training and validation and pre-process the images
- In this step we create CNN model architecture in that three types of layers convolution layer, pooling layer, And fully connected layer are added.
- Plotting a graphical representation of model
- Get the summary of model
- Compile model
- Then the last train the model
- After training validation accuracy is 91.67% and accuracy is 84.38%.
- Save the model
• Here the loss is 0.53 and the accuracy of model is 0.9166 means 91.66%
In this step we are create a function to test multiple images from test data.