Tahedi1 / Teacher_Student_Architecture

DEEP INTERPRETABLE ARCHITECTURE FOR PLANT DISEASES CLASSIFICATION
17 stars 3 forks source link

DEEP INTERPRETABLE ARCHITECTURE FOR PLANT DISEASES CLASSIFICATION


This is the source code of Student/Teacher architecture described in the paper : DEEP INTERPRETABLE ARCHITECTURE FOR PLANT DISEASES CLASSIFICATION.

We propose a new trainable visualization method for plant diseases classification based on a Convolutional Neural Network (CNN) architecture composed of two deep classifiers. The first one is named Teacher and the second one Student. This architecture leverages the multitask learning to train the Teacher and the Student jointly. Then, the communicated representation between the Teacher and the Student is used as a proxy to visualize the most important image regions for classification. This new architecture produces sharper visualization than the existing methods in plant diseases context. All experiments are achieved on PlantVillage dataset that contains 54306 plant images.

The data set used for this paper can be downloaded from Data set. In this paper, we have used the segmented version with black background of PlantVilage dataset.

Teacher/Student architectur

Teacher_Student architecture

More details about this architecture are given in the paper: DEEP INTERPRETABLE ARCHITECTURE FOR PLANT DISEASES CLASSIFICATION.

Prerequisites

To run the code, the following packages are required :

Usage

  1. install required packages.
  2. Download the model using this link Teacher/Student model.
  3. Copy the model in ./model.
  4. Copy input images with black background in ./images.
  5. Run the following code from the project folder:
python visualization.py

The visualization methode can be used also in an interactive environment using test_visualization.ipynb.

Teacher/Student Visualization Example

Original image

Original image

Reconstructed visualization Processed heatmap

Visualization (Reconstructed image + Processed Heatmap)


NOTE: When using (any part) of this repository, please cite DEEP INTERPRETABLE ARCHITECTURE FOR PLANT DISEASES CLASSIFICATION:

@ARTICLE{Brahimi2019,
  author = {Brahimi, Mohammed and Mahmoudi, Said and Boukhalfa, Kamel and Moussaoui, Abdelouhab},
  title = "{Deep interpretable architecture for plant diseases classification}",
  journal = {arXiv e-prints},
  year = "2019",
  month = "May",
  url = "https://arxiv.org/abs/1905.13523"
}