Skip to content

Methods

Advanced Optical Technologies ·

Volume 15 - 2026 | https://doi.org/10.3389/aot.2026.1704376

Terahertz time-of-flight contrast for non-destructive visualization of bruchid damage in lentils: a feasibility study

  • Jean-Paul Guillet1*corresponding author
  • Jean-François Berthoumieu2
  • François Demontoux1
  1. 1IMS Laboratory UMR CNRS 5218 University of Bordeaux, Talence, Bordeaux, France
  2. 2Association Climatologique de la Moyenne-Garonne, Sainte-Colombeen-Bruilhois, France
Article metrics0 viewsView details

Abstract

Lentils are a key source of plant-based proteins, but their quality can be compromised by bruchids, insects that burrow inside the seeds, causing internal damage. Current detection methods rely on destructive testing, which is time-consuming, costly, and results in the loss of part of the batch. In this study, we demonstrate the potential of terahertz time-domain imaging in transmission as a non-destructive and effective method for detecting bruchids in lentils. The approach provides rapid and precise assessment, preserving the integrity of the samples and enabling quality control for the agro-industrial sector. Beyond accurate quality evaluation, this method holds promise for future applications in automated sorting systems, improving product valuation and market competitiveness. By leveraging terahertz technology, we present an innovative solution that aligns with the needs of producers, distributors, and consumers. This work is a qualitative proof-of-concept aimed at establishing physical feasibility. It does not estimate diagnostic performance (sensitivity/specificity); a powered validation on concealed larvae is planned.

Keywords

1. Introduction

Lentils occupy a important place in human nutrition thanks to their high protein (Aghababaei et al., 2024; Shrestha et al., 2023), fiber, and mineral content (Aryee and Boye, 2017). Lentil proteins (LP) are gaining attention as a sustainable and nutritional alternative to animal proteins due to their high digestibility, rich amino acid profile, and antioxidant properties (Jarpa-Parra, 2018). They demonstrate versatile functionalities, including solubility, emulsification, foaming, and gelling capacities, making them suitable for diverse food applications such as meat substitutes, bakery products, and dairy alternatives (Keskin and Sumnu, 2024; Miranda et al., 2022).

Protein production is essential because proteins are vital for human health, animal feed, and various industrial applications. In France, the protein deficit, particularly in plant-based protein sources such as soy and legumes, highlights the nation’s dependance on imports, which poses risks to food security and the country’s dependence (Gohin and Issanchou, 2022). Addressing this deficit by boosting local protein production would enhance self-sufficiency and reduce dependency on imported genetically modified organisms (GMOs), in line with environmental and consumer demands (Duflot, 2023).

However, the quality of these legumes can be considerably affected by the presence of bruchids (Baxevanos et al., 2024; Vlachostergios et al., 2018), which are insects whose larvae burrow inside the seeds. These pests cause internal damage that reduces the commercial value of the batches of lentils and raises concerns about food safety (Jaswal and Menon, 2020; Pérez de la Vega et al., 2022). Bruchid beetles significantly lower the value of lentils by damaging their appearance, making them unsuitable for premium markets like human consumption. Infested grains are often rejected, affecting both food and feed markets and reducing international competitiveness as described in market reports in European Union (Sepngang et al., 2020).

Lentil crops face significant threats from insect pests, which can impact yield and quality. To address these challenges, various pest management strategies are employed, often as part of an Integrated Pest Management (IPM) system as described in Stevenson et al. (2007). These strategies include chemical insecticides, such as methidathion, deltamethrin, and endosulfan, are commonly used to manage pests such as aphids, thrips, and pod borers, especially during flowering and pod formation. Although effective, the use of chemicals must be carefully managed to avoid resistance development and minimize environmental harm. Biological control utilizes natural enemies of pests, such as predators and parasitoids. For example, Braconidae and Trichogrammatidae species are effective against bruchids and other field and storage pests. This environmentally friendly approach reduces the reliance on synthetic chemicals. Other strategies include Insect Growth Regulators which disrupt the growth and development of insects by targeting juvenile stages, effectively reducing pest populations without harming non-target organisms or humans. However, it remains difficult to assess during or after harvest what is the rate of lentils having an insect.

Currently, the most widely used detection method is based on destructive testing of individual seeds. Each lentil is opened and examined one by one to determine whether a bruchid larva is present. This process is not only time-consuming and costly, but also results in the destruction of the tested seed. Consequently, part of the batch is sacrified, which is an issue that becomes more pressing when the available volume is limited or when the product is expensive.

In this context, developing a non-destructive, automated approach for inspecting lentils is of great interest and such a method would allow infested seeds to be identified within an entire batch without damaging or destroying the samples. The advantages are numerous: enhanced product preservation, improved cost-effectiveness, and a higher valuation for batches confirmed to be insect-free. Moreover, from a commercial point of view, having a reliable and rapid diagnostic tool simplifies traceability and certification, making the product more competitive on the market.

In this article, we will discuss how terahertz (THz) technology can be harnessed to provide this non-destructive solution to detect bruchids in lentils. This approach paves the way for automated, precise, and fast quality control that meets the needs of producers, distributors, and consumers alike.

2. Materials and methods

Current lentils bruchids measurement

The presence of bruches (internal defects) in lentils is currently assessed during production and sales using a destructive testing method. This technique involves selecting a sample of a few dozen lentils from a batch and applying vertical pressure to each lentil, typically using an object like a ballpoint pen. Lentils without bruches resist the applied force, whereas those with defects yield break. By counting the number of broken lentils, the percentage of defective lentils can be estimated, providing an indication of the overall quality of the batch.

However, this method has several drawbacks. It lacks complete objectivity as the pressure applied by the operator can vary. In addition, it is a slow process and is limited to a small sample size, which may not fully reflect the quality of the entire batch.

Terahertz time domain system

Terahertz time domain systems are used in several applications (Valušis et al., 2021; Gao et al., 2024; Shen et al., 2022), including non-destructive testing (Pan et al., 2020), multilayer measurements (Cassar et al., 2019), biomedical (Smolyanskaya et al., 2017) art and heritage (Cassar et al., 2020). Due to its high penetration capability and non-ionising property, terahertz imaging is used for food control with some published examples, like non contact quality parameters evaluation, (Fu et al., 2024) chocolate inspection (Carré et al., 2022; Ok et al., 2019), fungal infections in chestnuts (Di Girolamo et al., 2021) Terahertz imaging non destructive quality control has been demonstrated in several food applications during last decade (Gowen et al., 2012; Wang et al., 2017; Han et al., 2024).

The Teraview TPS 3000 (Cambridge, U.K.) is a terahertz time-domain spectroscopy (THz-TDS), designed primarily for material characterization, spectroscopy and imaging. As illustrated in Figure 1, the system generates ultrafast THz pulses, exploiting their ability to penetrate non-conductive materials and reveal their internal structures without causing damage. The hardware of the TPS 3000 is based on an 80 fs Ti:Sa ultrashort pulsed laser operating at 800 nm with a repetition rate of 76 MHz used as a probe/pump beam, which serves as the source for the THz pulses, that are directed onto a GaAs photoconductive antenna. The THz pulse is generated when the femtosecond optical pump excites carriers in the photoconductive antenna gap. A bias field accelerates these carriers, producing a sub-picosecond transient current that radiates a broadband THz pulse. The TPS 3000 system offers a frequency range of 0.06–3.0 THz (2.0–100.0 cm −1) with a maximum dynamic range of around 75 dB. The lateral resolution of this system, depending on frequency, is approximately 300 μ m (1 THz).

These THz pulses are focused towards the sample using specially designed optics, including parabolic mirrors. The system operates in two primary configurations: reflection mode, where the terahertz radiation reflects off the surface of the sample, and transmission mode, where the radiation passes through the material. This dual configuration enables the TPS 3000 to accommodate a wide variety of materials, from thin coatings to multi-layered composites. Here, in this study, we use it in transmission mode. The detection process uses a complementary photoconductive antenna, which converts the incoming terahertz signal into an electrical response. This detection is time-resolved using a mechanical delay line, meaning that the arrival of the terahertz pulses is measured allowing the system to construct a detailed temporal profile of the interaction between the terahertz wave and the sample. By analyzing the time delay and amplitude of the reflected or transmitted signal, data processing approaches can be used to extracts information about the material, including its thickness, dielectric properties, and internal structure. That measurements were done in a nitrogen (N 2) purged chamber. The N 2 purge reduces water vapor absorption in air, which otherwise introduces strong spectral lines and temporal ringing in THz time-domain measurements.

Sample preparation

In this experiment, we employ a transmission setup. Since the motorized stage movement is vertical, we need a method to secure the lentils in a vertical orientation. As illustrated in Figure 2, the proposed solution involves the use of adhesive tape to hold the lentils, which can then be easily attached to the support structure. This setup allows for quick placement and removal of the lentils while providing a thin and uniform support. The uniformity of the support is particularly beneficial for subsequent data analysis. The lentils: they were collected by our agronomic collaborator (Association Climatologique de la Moyenne-Garonne, France).

3. Results

Bruchids detection

This measurement was completed in 10 min. A temporal signal is obtained for each pixel of the image, which is first analyzed individually before the global image is constructed. When measuring through a lentil, the signals shows a delayed peak compared to the reference, as expected, due to the additional optical path introduced by the lentil. As shown in the Figure 3, the peak delay varies: it is more pronounced for some lentils and less so for others. We can clearly distinguish the good lentils (Figure 3b) based on the time of flight compared to lentil with a brushid (Figure 3a).

Healthy lentils are denser and contain intact biological material. Infested lentils have an internal cavity left by the bruchid larva. The effective refractive index along the THz path is therefore higher in a healthy lentil than in a hollowed lentil. Higher effective refractive index increases optical path length for the same geometric thickness. This produces a larger delay (longer time of flight) of the transmitted THz pulse relative to air.

Based on this observation, we propose a simple signal processing approach: extracting the peak position from each signal and plotting this position on a 2D graph. This approach generates an image that correlates with the mat. In this time-of-flight approach, each pixel is assigned a value in picoseconds corresponding to the position of the maximum peak of the signal. The result of this analysis is presented in the Figure 4. We can clearly observe the presence of the nine lentils, four of which are intact, as expected from the visible holes identified during the preliminary manual sorting. This method thus enables automatic detection of bruchids, and a second measurement was performed, as presented in 4, where healthy lentils, in red, has a higher time of flight than lentils with bruchids, and repeated as described in Appendix.

For each pixel (x, y), the time of flight contrastis defined as in the Equation 1 as the delay of the main transmitted pulse relative to the reference in air: here t peak is obtained via ∗ a r g m a x within a window centered on the first transmitted pulse, t ref is measured without sample, c is the speed of light in vacuum, and d (x, y) is the local thickness (or a constant d 0 within a single lentil). In practice, n eff provides robust contrast: healthy lentils typically show larger Δ t than infested ones.

Segmentation uses a threshold on ToF with the maximum value, as in the Equation 2 in red:

After measurement and processing, we later confirmed that red lentils are healthy using the traditional method described in introduction.

Study limitations

Several limitations must be applied to this work. First, the lentils used for this initial demonstration had bruchids that had already exited, leaving a hole, which allowed us to manually select the corresponding lentils. However, during the early stages of larval development, when the bruchid is still inside, the signal variation is expected to be smaller. Data processing with such an early stage bruchid would require signal processing other than the direct time-of-flight method.

Furthermore, these tests were conducted on lentils that had been harvested 3 months earlier. Measurements on freshly harvested lentils could alter the response due to differences in moisture content This feasibility does not generalize to early, concealed larvae. A prospective, blinded study with pre-specified thresholds, sample-size calculation, and external validation is required before any quantitative claims (Gong et al., 2022; Kashyap et al., 2022).

4. Conclusions

This study has demonstrated the feasibility of using terahertz time-domain imaging as a non-destructive method for detecting bruchids in lentils, which is the first demonstration to our knowledge. We successfully identified internal defects caused by bruchid infestation, offering a significant improvement over traditional destructive testing methods. The experimental results confirmed the ability of the terahertz imaging to distinguish between infested and intact lentils, while preserving the structural integrity of the samples. The proposed approach not only addresses the limitations of current practices, but also has the potential to be integrated into automated quality control systems. An application of such integration could be the evaluation of batches of lentils to assess the rate of infested lentils. Furthermore, more prospectively, and subject to having low-cost and high-throughput systems such as radars in electronic technology (Carré et al., 2022), it could be possible to perform classification, in order to increase the grade of batches of lentils that are partly infested.

However, some limitations of the current study must be pointed out. First, the analyzed lentils were 3 months old, and the impact of moisture content on freshly harvested lentils remains unexplored. Furthermore, the method was tested on lentils with advanced bruchid damage (visible holes), and the sensitivity of the system to detect larvae in earlier stages of development requires further investigation. Addressing these challenges will be critical to expand the applicability and robustness of this technology.

Future research should aim to build on the first results of this initial study. A more systematic investigation could include testing lentils of various ages and moisture levels to assess the consistency of THz signal detection under various conditions. It would also be valuable to examine the system’s performance on freshly harvested lentils with concealed bruchids to better understand its sensitivity at different infestation stages, and characterize the deficiencies of bad lentils due to effects other than bruchids. Incorporating advanced data processing techniques, such as machine learning, could enhance the accuracy and speed of bruchid detection, particularly in complex scenarios (Xu et al., 2022). Beyond lentil quality control, this method has broader implications for the agro-food industry. For instance, terahertz imaging could be extended to assess other crops or food products that face similar quality issues due to internal defects or infestations. By further refining this technology, it may contribute to improve food safety standards, optimizing resource use, and reducing waste across the supply chain. In addition, an automated sampling system integrated into grain elevators at cooperatives could rapidly screen incoming organic lentil batches, facilitating quick decision-making about storage suitability or segregation. Such a setup is especially relevant in organic farming contexts, where insecticidal treatments are not permitted, making non-destructive detection methods even more critical for managing infestation risks.

In conclusion, THz-TDI represents a non-destructive approach to quality control in the agricultural sector. With continued research and development, this technology has the potential to revolutionize food quality assessment and support new applications for the growing need of industry for efficient, sustainable, and precise diagnostic tools.

Statements

Conflict of interest

The author(s) declared that this work was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Funding

The author(s) declared that financial support was not received for this work and/or its publication.

Data availability

The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation.

Author contributions

J-PG: Data curation, Formal Analysis, Investigation, Resources, Software, Supervision, Validation, Visualization, Writing – original draft, Writing – review and editing. J-FB: Investigation, Resources, Supervision, Validation, Writing – review and editing. FD: Conceptualization, Supervision, Validation, Writing – review and editing.

References

  1. Aghababaei F., McClements D. J., Pignitter M., Hadidi M. (2024). A comprehensive review of processing, functionality, and potential applications of lentil proteins in the food industry. Adv. Colloid Interface Sci. 333, 103280. doi:10.1016/j.cis.2024.103280
  2. Aryee A. N., Boye J. I. (2017). Comparative study of the effects of processing on the nutritional, physicochemical and functional properties of lentil. J. Food Processing Preservation 41, e12824. doi:10.1111/jfpp.12824
  3. Baxevanos D., Kargiotidou A., Noulas C., Kouderi A.-M., Aggelakoudi M., Petsoulas C. (2024). Lentil cultivar evaluation in diverse organic mediterranean environments. Agronomy 14, 790. doi:10.3390/agronomy14040790
  4. Carré B., Chopard A., Guillet J.-P., Fauquet F., Mounaix P., Gellie P. (2022). Terahertz nondestructive testing with ultra-wideband fmcw radar. Sensors 23, 187. doi:10.3390/s23010187
  5. Cassar Q., Chopard A., Fauquet F., Guillet J.-P., Pan M., Perraud J.-B. (2019). Iterative tree algorithm to evaluate terahertz signal contribution of specific optical paths within multilayered materials. IEEE Trans. Terahertz Sci. Technol. 9, 684 – 694. doi:10.1109/tthz.2019.2937208
  6. Cassar Q., Koch-Dandolo C., Guillet J.-P., Roux M., Fauquet F., Perraud J. (2020). Characterization of varnish ageing and its consequences on terahertz imagery: demonstration on a painting presumed of the french renaissance. J. Infrared, Millim. Terahertz Waves 41, 1556 – 1566. doi:10.1007/s10762-020-00733-y
  7. Di Girolamo F., Pagano M., Tredicucci A., Bitossi M., Paoletti R., Barzanti G. (2021). Detection of fungal infections in chestnuts: a terahertz imaging-based approach. Food Control. 123, 107700. doi:10.1016/j.foodcont.2020.107700
  8. Duflot B. (2023). Protein self-sufficiency on livestock farms in France and Europe: challenges and levers at different scales.
  9. Fu Y., Ren Y., Sun D.-W. (2024). Novel analysis of food processes by terahertz spectral imaging: a review of recent research findings. Trends Food Sci. and Technol. 147, 104463. doi:10.1016/j.tifs.2024.104463
  10. Gao Y., Peng Z., Yang H., Zhang X., Zhao Y., Hou Z. (2024). Terahertz spectroscopy study of oridonin and ponicidin in the anticancer chinese herbal medicine rabdosia rubescens. Front. Plant Sci. 15, 1460123. doi:10.3389/fpls.2024.1460123
  11. Gohin A., Issanchou A. (2022). Le déficit protéique français–une analyse prospective/protein deficit in france–a prospective analysis. Econ. Statistique 536, 117 – 135.
  12. Gong Z., Deng D., Sun X., Liu J., Ouyang Y. (2022). Non-destructive detection of moisture content for ginkgo biloba fruit with terahertz spectrum and image: a preliminary study. Infrared Phys. and Technol. 120, 103997. doi:10.1016/j.infrared.2021.103997
  13. Gowen A. A., O’Sullivan C., O’Donnell C. P. (2012). Terahertz time domain spectroscopy and imaging: emerging techniques for food process monitoring and quality control. Trends Food Sci. and Technol. 25, 40 – 46. doi:10.1016/j.tifs.2011.12.006
  14. Han T., Xiong Y., Engarnevis A., Li J. (2024). Non-destructively qualitative and quantitative inspection methods based on thz spectroscopy and imaging. Opt. Eng. 63, 023101. doi:10.1117/1.oe.63.2.023101
  15. Jarpa-Parra M. (2018). Lentil protein: a review of functional properties and food application an overview of lentil protein functionality. Int. J. Food Sci. and Technol. 53, 892 – 903. doi:10.1111/ijfs.13685
  16. Jaswal A., Menon S. (2020). Review of literature on effect of various herbicidal treatments on chickpea (cicer arietinum l) intercropping with lentil (lens culinaris medik). Int. J. Chem. Sci. 8, 1116 – 1121. doi:10.22271/chemi.2020.v8.i5p.10443
  17. Kashyap M., Bandyopadhyay A., Sengupta A. (2022). Study of moisture content in leaves through regression analysis of terahertz images. Opt. Sens. Detect. VII (SPIE) 12139, 157 – 164.
  18. Keskin S. O., Sumnu G. (2024). Versatile functions of raw and modified lentils/lentil components in food applications: a review. Legume Sci. 6, e70000. doi:10.1002/leg3.70000
  19. Miranda C. G., Speranza P., Kurozawa L. E., Sato A. C. K. (2022). Lentil protein: impact of different extraction methods on structural and functional properties. Heliyon 8, e11775. doi:10.1016/j.heliyon.2022.e11775
  20. Ok G., Shin H. J., Lim M.-C., Choi S.-W. (2019). Large-scan-area sub-terahertz imaging system for nondestructive food quality inspection. Food Control. 96, 383 – 389. doi:10.1016/j.foodcont.2018.09.035
  21. Pan M., Cassar Q., Fauquet F., Humbert G., Mounaix P., Guillet J.-P. (2020). Guided terahertz pulse reflectometry with double photoconductive antenna. Appl. Optics 59, 1641 – 1647. doi:10.1364/AO.381646
  22. Pérez de la Vega M., García García P., Gutierrez-Gonzalez J. J., Sáenz de Miera L. E. (2022). “ Tackling lentil biotic stresses in the genomic era,” in Genomic designing for biotic stress resistant pulse crops (Springer), 253 – 308.
  23. Sepngang B. K., Muel F., Smadja T., Stauss W., Stute I., Simmen M. (2020). Report on legume markets in the eu. Deliverable D3 1.
  24. Shen Y., Li B., Li G., Lang C., Wang H., Zhu J. (2022). Rapid identification of producing area of wheat using terahertz spectroscopy combined with chemometrics. Spectrochimica Acta Part A Mol. Biomol. Spectrosc. 269, 120694. doi:10.1016/j.saa.2021.120694
  25. Shrestha S., van’t Hag L., Haritos V. S., Dhital S. (2023). Lentil and mungbean protein isolates: processing, functional properties, and potential food applications. Food Hydrocolloids 135, 108142. doi:10.1016/j.foodhyd.2022.108142
  26. Smolyanskaya O. A., Kravtsenyuk O. V., Panchenko A. V., Odlyanitskiy E. L., Guillet J., Cherkasova O. P. (2017). Study of blood plasma optical properties in mice grafted with ehrlich carcinoma in the frequency range 0.1–1.0 thz. Quantum Electron. 47, 1031 – 1040. doi:10.1070/qel16383
  27. Stevenson P. C., Dhillon M., Sharma H., Bouhssini M. E. (2007). “ Insect pests of lentil and their management,” in Lentil: an ancient crop for modern times (Springer), 331 – 348.
  28. Valušis G., Lisauskas A., Yuan H., Knap W., Roskos H. G. (2021). Roadmap of terahertz imaging 2021. Sensors 21, 4092. doi:10.3390/s21124092
  29. Vlachostergios D. N., Lithourgidis A. S., Baxevanos D. V., Mavromatis A. G., Noulas C. S., Roupakias D. G. (2018). Evaluation of lentil varieties and farming system effect on seed damage and yield loss due to bruchid (bruchus spp.) infestation. Crop Pasture Sci. 69, 387 – 394. doi:10.1071/cp17309
  30. Wang K., Sun D.-W., Pu H. (2017). Emerging non-destructive terahertz spectroscopic imaging technique: principle and applications in the agri-food industry. Trends Food Sci. and Technol. 67, 93 – 105. doi:10.1016/j.tifs.2017.06.001
  31. Xu P., Sun W., Xu K., Zhang Y., Tan Q., Qing Y. (2022). Identification of defective maize seeds using hyperspectral imaging combined with deep learning. Foods 12, 144. doi:10.3390/foods12010144

Citation

Guillet, J., et al. (2026). Terahertz time-of-flight contrast for non-destructive visualization of bruchid damage in lentils: a feasibility study. Advanced Optical Technologies, Volume 15. https://doi.org/
Received
Accepted
Published
Volume
15 - 2026

Copyright

Copyright © 2026 Guillet, Berthoumieu and Demontoux.

License: https://creativecommons.org/licenses/by/4.0/

*Correspondence: Jean-Paul Guillet

Article metrics

Views
0
Downloads
0
Citations
0
Shares
0