# A Plant Disease Classification Algorithm Based on Attention MobileNet V2
## 2 Materials and Methods
\begin{table}
\begin{tabular}{c c c c c c} \hline \hline  & \multicolumn{2}{c}{Healthy} & \multicolumn{2}{c}{Healthy} \\ \cline{2-6} \cline{2-6} \multirow{2}{*}{**Apple**} & \multirow{2}{*}{Scab} & General & \multirow{2}{*}{**Serawberry**} & \multirow{2}{*}{Scorch} & \multirow{2}{*}{General} \\ \cline{3-3} \cline{5-6}  & & Serious & & & & \multicolumn{1}{c}{Serious} \\ \cline{3-6} \cline{5-6}  & \multirow{2}{*}{Cedar Rust} & General & \multirow{2}{*}{Bacterial Spot Bacteria} & \multirow{2}{*}{General} \\ \cline{3-3} \cline{5-6}  & & Serious & & & \multicolumn{1}{c}{Serious} \\ \hline \multirow{3}{*}{**Cherry**} & \multicolumn{2}{c}{Healthy} & \multirow{3}{*}{Early Blight Fungus} & \multirow{3}{*}{General} \\ \cline{3-3} \cline{5-6}  & \multirow{2}{*}{Powdery Mildew} & General & & & \multicolumn{1}{c}{Serious} \\ \cline{3-3} \cline{5-6}  & \multirow{2}{*}{Serious} & & & & \multicolumn{1}{c}{Late Blight Water Mold} \\ \hline \multirow{3}{*}{**Corn**} & \multicolumn{2}{c}{Healthy} & \multirow{3}{*}{Learf Mold Fungus} & \multirow{3}{*}{Serious} \\ \cline{3-3} \cline{5-6}  & \multirow{2}{*}{Puccinia Polvsora} & \multirow{2}{*}{Serious} & & & \multicolumn{1}{c}{Serious} \\ \cline{3-3} \cline{5-6}  & \multirow{2}{*}{Corn Curvularia Leaf Spot Fungus} & \multirow{2}{*}{Terried Spot Bacteria} & \multirow{2}{*}{Terried Spot Fungus} & & \multicolumn{1}{c}{Serious} \\ \cline{3-3} \cline{5-6}  & \multirow{2}{*}{Spot Fungus} & & & & \multicolumn{1}{c}{Serious} \\ \cline{3-3} \cline{5-6}  & \multirow{2}{*}{Maze dwarf mosaic virus} & \multirow{2}{*}{Spider Mite Damage} & \multirow{2}{*}{Terried Spot Bacteria} & \multirow{2}{*}{Terried Spot Fungus} \\ \hline \multirow{3}{*}{**Grape**} & \multicolumn{2}{c}{Healthy} & \multirow{3}{*}{Terried Spot Fungus} & \multirow{3}{*}{Serious} \\ \cline{3-3} \cline{5-6}  & \multirow{2}{*}{Black Rot Fungus} & General & & & \multicolumn{1}{c}{Serious} \\ \cline{3-3} \cline{5-6}  & \multirow{2}{*}{Serious} & & & \multicolumn{1}{c}{Serious} \\ \cline{3-3} \cline{5-6}  & \multirow{2}{*}{Black Measles Fungus} & General & & & \multicolumn{1}{c}{Tonv} \\ \cline{3-3} \cline{5-6}  & \multirow{2}{*}{Serious} & & & \multicolumn{1}{c}{Healthy} \\ \cline{3-3} \cline{5-6}  & \multirow{2}{*}{Leaf Blight Fungus} & General & \multirow{2}{*}{**Pepper**} & \multirow{2}{*}{Scab} & \multicolumn{1}{c}{General} \\ \cline{3-3} \cline{5-6}  & \multirow{2}{*}{Serious} & & & \multicolumn{1}{c}{Serious} \\ \hline \multirow{3}{*}{**Citrus**} & \multicolumn{2}{c}{Healthy} & \multirow{3}{*}{Terried Spot Fungus} & \multirow{3}{*}{Early Blight Fungus} & \multirow{3}{*}{Serious} \\ \cline{3-3} \cline{5-6}  & \multirow{2}{*}{Greening June} & General & & & \multicolumn{1}{c}{Serious} \\ \cline{3-3} \cline{5-6}  & \multirow{2}{*}{Serious} & & & \multicolumn{1}{c}{Serious} \\ \cline{3-3} \cline{5-6}  & \multirow{2}{*}{Healthy} & & & \multicolumn{1}{c}{Late Blight Fungus} & \multicolumn{1}{c}{General} \\ \cline{3-3} \cline{5-6}  & \multirow{2}{*}{Bacterial Spot} & General & & \multicolumn{1}{c}{Serious} \\ \cline{3-3} \cline{5-6}  & \multirow{2}{*}{Serious} & & & \multicolumn{1}{c}{Serious} \\ \hline
**Pepper** & \multicolumn{2}{c}{Healthy} & \multirow{2}{*}{**Pepper**} & \multirow{2}{*}{Scab} & \multicolumn{1}{c}{Serious} \\ \cline{3-3} \cline{5-6}  & \multirow{2}{*}{Bacterial Spot} & & & \multicolumn{1}{c}{Serious} \\ \cline{3-3} \cline{5-6}  & \multirow{2}{*}{Bacterial Spot} & & & \multicolumn{1}{c}{Serious} \\ \cline{3-3} \cline{5-6}  & \multirow{2}{*}{Bacterial Spot} & & & \multicolumn{1}{c}{Serious} \\ \cline{3-3} \cline{5-6}  & \multirow{2}{*}{Bacterial Spot} & & & \multicolumn{1}{c}{Serious} \\ \hline
The proposed plant disease classification algorithm based on an attention mechanism is shown in Figure 2. The algorithm comprises the following steps: (1) The OSTU algorithm based on the weighted Naive Bayes model is constructed to focus on the area where leaves are located and remove the influence of complex backgrounds.