Leaf Recognition Based on Joint Learning Multiloss of Multimodel Convolutional Neural Networks: A Testing for Vietnamese Herb

Tan Dat Trinh, Pham Cung Le Thien Vu, Nguyen Nhat Truong, Le Tran Anh Dang, Vu Ngoc Thanh Sang, Pham The BaoComputational Intelligence and Neuroscience 2021

TL;DR

This paper introduces a novel leaf recognition system for Vietnamese herbs by combining U-Net for image segmentation with a multimodel deep learning approach (MMCNN) that leverages joint learning and a multiloss function. This method significantly improves recognition accuracy, especially for challenging datasets, while maintaining computational efficiency.

What Problem Does This Paper Address?

Accurate identification and classification of plant species, particularly medicinal herbs, are crucial for their preservation, sustainable exploitation, and for combating counterfeit products in the pharmaceutical market. Traditional methods for leaf recognition often struggle with variations in lighting, scale, and background clutter, leading to reduced accuracy. Furthermore, building effective recognition systems typically requires extensive domain expertise and complex, multi-step pipelines. Deep learning offers a promising end-to-end solution, but existing approaches can still be computationally intensive or struggle with the nuances of real-world herb datasets. This paper aims to address these challenges by developing a robust, accurate, and efficient leaf recognition system specifically for Vietnamese herbs, while also improving upon general leaf recognition techniques.

Methods

The proposed approach consists of two main stages:

  1. Leaf Image Segmentation with U-Net: Before recognition, the system employs the U-Net architecture to segment leaf images from their backgrounds. This preprocessing step is crucial for removing noise and irrelevant information, thereby improving the quality of the input for the subsequent recognition model. U-Net, a fully convolutional network known for its effectiveness in biomedical image segmentation, is adapted here to isolate leaf boundaries.
  2. Multimodel CNN (MMCNN) with Joint Learning Multiloss: The core of the recognition system is a novel multimodel approach. It combines two lightweight yet powerful deep learning architectures, EfficientNet B0 and MobileNet V1, in a "two-branch" configuration.
  3. Joint Learning: Each branch (EfficientNet and MobileNet) is trained to perform its task independently but also cooperates with the other. This allows for knowledge sharing between the networks.
  4. Multiloss Function: A custom multiloss function is designed, incorporating a trade-off strategy between the individual losses of each network and a cooperative loss term. This is intended to reduce redundancy issues common in ensemble methods and force the model to learn richer, more complex representations. The specific loss function is a combination of softmax loss, individual branch losses, and a cosine similarity term, aiming to balance independent learning with cooperative performance.

Datasets

The study utilizes a combination of publicly available datasets and a newly created custom dataset:

  • Public Datasets:
    • Flavia: Contains 1907 leaf images of 32 plant species, taken on a white background.
  • Leafsnap: A large dataset with 30866 leaf images from 185 tree species in the Northeastern United States, including both high-quality lab images and more challenging field images.
  • Folio: Includes 637 leaf images of 32 different species.
  • Custom Dataset:
    • Vietnamese Herb Leaf Image Database (V-Herb): A newly collected dataset specifically for Vietnamese herbal species. This dataset aims to capture the variability of herbs in real-world environments, including different lighting conditions and backgrounds, which are often more challenging than controlled settings.

The researchers also created a combined dataset by merging Flavia, Leafsnap, and Folio, resulting in 10057 leaf images across 239 distinct species after removing duplicates.

Key Insights and Ideas

  • U-Net as a Powerful Preprocessor: Segmenting leaf images from their backgrounds using U-Net significantly enhances the performance of subsequent recognition models. This highlights the importance of effective preprocessing for complex image recognition tasks, especially when dealing with varied backgrounds.
  • Synergy in Multimodel Learning: Combining multiple deep learning models (EfficientNet and MobileNet) through joint learning and a multiloss function leads to better generalization and more robust performance than individual models. The "cooperation" between models forces them to learn more comprehensive features.
  • Multiloss for Ensemble Efficiency: The proposed multiloss strategy helps mitigate redundancy issues often found in ensemble methods, leading to improved accuracy without a proportional increase in computational cost.
  • Importance of Real-World Data: The V-Herb dataset, collected under diverse and challenging conditions, demonstrates the need for such datasets to truly test the robustness of recognition systems and highlights the limitations of relying solely on clean, controlled datasets.

Key Results

  • Segmentation Accuracy: The U-Net model achieved high accuracy in leaf segmentation, reaching 98.63% on the custom V-Herb dataset and 100% on the Flavia dataset.
  • Recognition Accuracy:
    • On the Flavia dataset, the proposed U-Net + multimodel approach achieved 100% recognition accuracy, outperforming other baseline CNN models.
  • On the V-Herb dataset, the U-Net + multimodel approach achieved 98.89% accuracy, significantly outperforming other models when U-Net segmentation was applied. Without U-Net, the accuracy dropped considerably for most models, including the proposed one (92.37%).
  • On the combined dataset, the proposed multimodel CNN achieved the highest accuracy at 93.59%.
  • Computational Efficiency: The proposed multimodel approach demonstrated competitive or improved accuracy while maintaining a relatively low computation cost, making it suitable for deployment on resource-constrained devices. For instance, on the combined dataset, it achieved 93.59% accuracy with an average computation cost of 0.223.

Limitations and Future Work

  • Data Source Limitations: The authors acknowledge that the V-Herb dataset, while valuable, is still limited in size and variability (e.g., different seasons, climates). This can lead to similar performance across different models, making it challenging to definitively prove superiority. They suggest that improving the dataset's size and diversity is crucial for more comprehensive analysis.
  • Processing Time: While efficient, the average classification time of 0.220 seconds is noted as not yet ideal for real-time applications. They suggest hardware upgrades as a short-term solution and further research for sustainable improvements.
  • Future Work: The authors plan to investigate the importance of leaf vein features for identification and explore combining leaf vein and shape features to further enhance performance. They also intend to explore the effect of graph CNN architectures in leaf recognition.

Summary updated

BibTeX
@inproceedings{trinh2021leaf,
  author = {Tan Dat Trinh and Pham Cung Le Thien Vu and Nguyen Nhat Truong and Le Tran Anh Dang and Vu Ngoc Thanh Sang and Pham The Bao},
  title = {{Leaf Recognition Based on Joint Learning Multiloss of Multimodel Convolutional Neural Networks: A Testing for Vietnamese Herb}},
  booktitle = {Computational Intelligence and Neuroscience},
  year = {2021},
  doi = {10.1155/2021/5032359},
}
Figure