DiscoEPG: A Python package for characterization of insect electrical penetration graph (EPG) signals
• DiscoEPG is an open-source Python package to streamlines EPG research for plant-insect studies. • EPG waveform annotation is automated using ML algorithms, achieving high accuracy. • The package features tools for statistical analysis and visualization. • DiscoEPG was validated on 332 8-hour recordings from 4 aphid species. The Electrical Penetration Graph (EPG) technique is a widely recognized tool for monitoring and analyzing the feeding behavior of herbivorous insects with piercing-sucking mouthparts, such as aphids. Traditionally, EPG waveform annotation relies on a skilled practitioner using expert knowledge to compare target waveforms with the standard patterns of feeding behaviors. This process is labor-intensive, often requiring more than 30 minutes to annotate an 8-hour recording, depending on the complexity of the behaviors displayed. Machine learning (ML) has shown significant potential in automating behavioral analysis, including in EPG waveform annotation. However, most publicly available tools that provide automatic annotation suffer from low prediction accuracy due to their simple classification rules. To address this limitation, we developed DiscoEPG , an open-source Python package that offers highly accurate automatic annotation of aphid EPG data generated with EPG Systems hardware and the associated Stylet+ software. We rigorously evaluated multiple ML algorithms, demonstrating superior predictive accuracy compared to existing methods. In addition, DiscoEPG includes novel features to improve usability, such as tools to generate publication-quality visualizations, compute EPG variables, and perform statistical analysis. By streamlining the analysis of aphid EPG data, DiscoEPG aims to make this technique more accessible to researchers studying the feeding behavior of aphids. Our package source code and example interactive workbooks are publicly available at: https://github.com/HySonLab/ML4Insects .
Authors
- N Naga Krishna Vamsi
- Phuong D. Dao (ORCID: https://orcid.org/0000-0002-3712-9022)
- Hyukmin Son (ORCID: https://orcid.org/0000-0002-1677-8111)
- Daniel Kunk (ORCID: https://orcid.org/0000-0001-6813-146X)
- Dung Quang Dinh
Institutions
- Université Sorbonne Paris Nord (FR)
- Laboratoire Analyse, Géométrie et Applications (FR)
- The University of Texas at Austin (US)
- Colorado State University (US)
Publication Details
- Journal
- Smart Agricultural Technology
- Published
- 2026-02-15
- DOI
- https://doi.org/10.1016/j.atech.2026.101874
- Primary Topic
- Insect-Plant Interactions and Control
- Type
- article
- Field-Weighted Citation Impact
- 0.00