<?xml version="1.0" encoding="UTF-8"?><article xml:lang="en" article-type="research-article"><front><journal-meta><journal-id journal-id-type="pmc-domain-id">354</journal-id><journal-id journal-id-type="pmc-domain">plantmeth</journal-id><journal-title-group><journal-title>Plant Methods</journal-title><abbrev-journal-title>Plant Methods</abbrev-journal-title></journal-title-group><publisher><publisher-name>BMC</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="pmcid">PMC11841321</article-id><article-id pub-id-type="pmcaid">11841321</article-id><article-id pub-id-type="pmcaiid">11841321</article-id><article-id pub-id-type="pmid">39979955</article-id><article-id pub-id-type="doi">10.1186/s13007-024-01316-x</article-id><title-group><article-title>Automated pipeline for leaf spot severity scoring in peanuts using segmentation neural networks</article-title></title-group><contrib-group content-type="author"><contrib><name name-style="western"><surname>Larsen</surname><given-names initials="J">Joshua</given-names></name><xref ref-type="aff" rid="Aff1">1</xref><xref ref-type="aff" rid="Aff3">3</xref><xref ref-type="author-notes" rid="_fncrsp93pmc__">✉</xref></contrib><contrib><name name-style="western"><surname>Dunne</surname><given-names initials="J">Jeffrey</given-names></name><xref ref-type="aff" rid="Aff2">2</xref><xref ref-type="aff" rid="Aff3">3</xref></contrib><contrib><name name-style="western"><surname>Austin</surname><given-names initials="R">Robert</given-names></name><xref ref-type="aff" rid="Aff2">2</xref></contrib><contrib><name name-style="western"><surname>Newman</surname><given-names initials="C">Cassondra</given-names></name><xref ref-type="aff" rid="Aff2">2</xref><xref ref-type="aff" rid="Aff3">3</xref></contrib><contrib><name name-style="western"><surname>Kudenov</surname><given-names initials="M">Michael</given-names></name><xref ref-type="aff" rid="Aff1">1</xref><xref ref-type="aff" rid="Aff3">3</xref></contrib></contrib-group><aff id="Aff1"><label>1</label>Department of Electrical and Computer Engineering, NC State University, 890 Oval Dr, Raleigh, NC 27606 USA </aff><aff id="Aff2"><label>2</label>Department of Crop and Soil Science, NC State University, 101 Derieux Pl, Raleigh, NC 27695 USA </aff><aff id="Aff3"><label>3</label>Plant Science Initiative, NC State University, 840 Oval Dr, Raleigh, NC 27606 USA </aff><author-notes><fn id="_fncrsp93pmc__"><label>✉</label><p>Corresponding author.</p></fn></author-notes><pub-date><day>20</day><month>2</month><year>2025</year></pub-date><volume>21</volume><fpage>22</fpage><page-range>22</page-range><pub-history><event event-type="pmc-release"><date><day>20</day><month>2</month><year>2025</year></date></event></pub-history><permissions><copyright-statement>© The Author(s) 2025</copyright-statement><license><license-p><bold>Open Access</bold> This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit <ext-link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="https://creativecommons.org/licenses/by/4.0/" ext-link-type="uri">http://creativecommons.org/licenses/by/4.0/</ext-link>.</license-p></license></permissions><self-uri xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="13007_2024_Article_1316.pdf" content-type="pmc-pdf"><?cloudpmc-path dd03/11841321/0e54bb0b2e16/13007_2024_Article_1316.pdf?><?cloudpmc-bucket app?><?size 4993735?></self-uri><abstract id="Abs1"><title>Abstract</title><sec id="sec1" disp-level="2"><title>Background</title><p id="Par1">Late and early leaf spot in peanuts is a foliar disease contributing to a significant amount of lost yield globally. Peanut breeding programs frequently focus on developing disease-resistant peanut genotypes. However, existing phenotyping protocols employ subjective rating scales, performed by human raters, who determine the severity of leaf spot infection. The objective of this study was to develop an objective end-to-end pipeline that can serve to replace an expert human scorer in the field. This was accomplished using image capture protocols and segmentation neural networks that extracted lesion areas from plot-level images to determine an appropriate rating for infection severity.</p></sec><sec id="sec2" disp-level="2"><title>Results</title><p id="Par2">The pipeline incorporated a neural network that accurately determined the infected leaf surface area and identified dead leaves from plot-level cellphone imagery. Image processing algorithms then convert these labels into quality metrics that can efficiently score these images based on infected versus non-infected area. The pipeline was evaluated using field data from plots with varying leaf spot severity, creating a dataset of thousands of images that spanned conventional visual severity scores ranging from 1–9. These predictions were based on the amount of infected leaf area and the presence of defoliated leaves in the surrounding area. We were able to demonstrate automated scoring, as compared to expert visual scoring, with a root mean square error of 0.996 visual scores, on individual images (one image per plot), and 0.800 visual scores when three images were captured of each plot.</p></sec><sec id="sec3" disp-level="2"><title>Conclusion</title><p id="Par3">Results indicated that the model and image processing pipeline can serve as an alternative to human scoring. Eliminating human subjectivity for the scoring protocols will allow non-experts to collect scores and may enable drone-based data collection. This could reduce the time needed to obtain new lines or identify new genes responsible for leaf spot resistance in peanut.</p></sec><sec id="kwd-group1" xml:lang="en" sec-type="kwd-group" disp-level="2"><p><bold>Keywords:</bold> Automation, Phenotyping, Peanut, Leaf spot, Imaging, Computer vision, Neural network</p></sec></abstract><custom-meta-group><custom-meta><meta-name>status</meta-name><meta-value>released</meta-value></custom-meta><custom-meta><meta-name>display-pdf</meta-name><meta-value>yes</meta-value></custom-meta><custom-meta><meta-name>is-olf</meta-name><meta-value>no</meta-value></custom-meta><custom-meta><meta-name>is-manuscript</meta-name><meta-value>no</meta-value></custom-meta><custom-meta><meta-name>is-preprint</meta-name><meta-value>no</meta-value></custom-meta><custom-meta><meta-name>is-journal-matter</meta-name><meta-value>no</meta-value></custom-meta><custom-meta><meta-name>is-scanned</meta-name><meta-value>no</meta-value></custom-meta><custom-meta><meta-name>is-retracted</meta-name><meta-value>no</meta-value></custom-meta></custom-meta-group></article-meta><notes notes-type="article-notes"><sec id="historyarticle-meta1" sec-type="history" disp-level="2"><p>Received 2024 Sep 9; Accepted 2024 Dec 11; Collection date 2025.</p></sec></notes></front><body><sec id="Sec1" disp-level="1"><title>Background</title><p id="Par4">Peanut is an economically important agricultural crop that is grown and consumed world-wide. It is considered a sustainable source of protein due to its ability to grow in soils that are difficult for other crops while also requiring less water than tree nuts [<xref rid="CR1" ref-type="bibr">1</xref>]. With over 1.6 million acres of peanuts being grown annually in the United States alone, it is a major contributor to the food supply in the United States [<xref rid="CR2" ref-type="bibr">2</xref>]. Early and Late Leaf Spot, caused by Passalora arachidicola and Nothopassalora personata, are often considered the most critical yield-reducing diseases in peanut [<xref rid="CR3" ref-type="bibr">3</xref>]. Yield loss caused by leaf spot can be over fifty percent [<xref rid="CR4" ref-type="bibr">4</xref>]. Estimates place the lost yield as high as $600 million annually, where fungicide control costs can be as high as $250 per hectare [<xref rid="CR5" ref-type="bibr">5</xref>]. The breeding of peanut varieties that are naturally resistant to this highly destructive disease is key to many peanut breeding programs worldwide [<xref rid="CR6" ref-type="bibr">6</xref>–<xref rid="CR9" ref-type="bibr">9</xref>].</p><p id="Par5">The most common method to determine the severity of infection is through a field survey [<xref rid="CR10" ref-type="bibr">10</xref>]. Here, individual plots within a field trial will be evaluated or “scored” by one of the expert raters who perform the field trials. Scoring methods typically involve a set of subjective guidelines that an expert follows to rate the severity of infection, such as the Florida 1–10 scale as outlined by Chiteka et al. or the modified 9-point scale as described by Subrahmanyam et al. [<xref rid="CR6" ref-type="bibr">6</xref>, <xref rid="CR11" ref-type="bibr">11</xref>]. These scales have been used extensively by research teams in breeding programs due to their ease of use [<xref rid="CR12" ref-type="bibr">12</xref>–<xref rid="CR15" ref-type="bibr">15</xref>]. These scales are nondestructive as they are based solely on visual symptoms; however, it contains human biases. This human element in the scoring process makes the results difficult to replicate and can lead to different analyses of the same genotypes and severities. Collaboration between breeders is made difficult due to this source of error, such that correcting the cause of discrepancies between visual severity scores becomes largely impractical. It can be difficult to identify what variations in severity score between two trials of the same genotype are caused by human subjectivity in scoring metrics instead of true variations in the response to leaf spot by the different trials.</p><p id="Par6">Due to difficulty in scoring, new methods of disease detection have evolved within the realm of remote sensing. For example, the use of canopy hyperspectral reflectance measurements has proven to be a reliable method for the detection of leaf spot within peanut as well as many other types of crop pathogens [<xref rid="CR10" ref-type="bibr">10</xref>, <xref rid="CR16" ref-type="bibr">16</xref>–<xref rid="CR20" ref-type="bibr">20</xref>]. These methods require specialized sensing equipment, specifically hyperspectral or infrared imaging systems, which can be expensive and difficult to use properly. Beyond hyperspectral imaging systems, computer vision approaches have become popular for the purpose of classification. These developments offer new capabilities for detection that is more similar to human vision approaches. Outside of the agricultural world, these types of deep learning networks have been used extensively for damage detection in subjects ranging from large buildings to small semiconductor wafers [<xref rid="CR21" ref-type="bibr">21</xref>–<xref rid="CR24" ref-type="bibr">24</xref>]. New styles of convolutional neural networks have achieved high accuracy when used for the classification of plants and their associated diseases [<xref rid="CR25" ref-type="bibr">25</xref>]. Numerous existing networks can be used for transfer learning, facilitating the process of developing a neural network for classification [<xref rid="CR26" ref-type="bibr">26</xref>]. Well-made convolutional networks for this type of task can identify the texture and color of the disease, which ensures that the network is properly identifying disease symptoms present in the image [<xref rid="CR27" ref-type="bibr">27</xref>]. Given that one of the key metrics used in scoring leaf spot severity is the percentage infected region, a neural network capable of identifying leaf spot lesions could be used to determine infection severity, as has been attempted in phenotyping pipelines previously [<xref rid="CR6" ref-type="bibr">6</xref>, <xref rid="CR28" ref-type="bibr">28</xref>].</p><p id="Par7">Disease presenting as a form of visual sore on vegetation is not unique to Peanut, with recent research focusing on development of segmentation networks for disease detection in agriculture. Recent work has shown that lightweight neural networks are capable of being trained to properly segment disease across a range of agricultural settings [<xref rid="CR29" ref-type="bibr">29</xref>]. For instance, other recent work has found that disease segmentation can be used to detect Tar Spot disease in corn with the goal of tying the outputs of the segmentation network to a traditional disease scale [ahamd2024tar]. A similar convolutional network based pipeline for disease severity determination in plum has also been developed [<xref rid="CR30" ref-type="bibr">30</xref>]. Peanut and other groundnut have also been the subject of disease detection and severity determination pipelines. Chapu et. al. developed a pipeline capable of classifying leaf spot disease severity using a number of camera systems and models that classify severity based on color indices and normalized vegetation indices [<xref rid="CR31" ref-type="bibr">31</xref>]. Similarly, Lin et al. developed a system for detecting individual leaf spot instances, counting the number of lesions on in-field peanut using an automated image-capturing system capable of navigating the field [<xref rid="CR32" ref-type="bibr">32</xref>]. However, neither prior pipeline has (1) validated against the conventional 9-point scale scale and visual scores; and (2) has incorporated instance segmentation to provide quantitative ratios of diseased to healthy leaf areas; and (3) has been validated over multiple years of data at multiple trial locations. By incorporating the segmentation networks seen with other disease monitoring systems and expanding the rigor of the dataset, it is possible to develop a leaf spot severity scoring system that more closely resembles the process of a traditional breeding pipeline. The outputs of the neural network allows for the pipeline to be used with the existing 9-point scale and also independently, something prior neural networks and disease scoring pipelines did not incorporate.</p><p id="Par8">To resolve the aforementioned issues related to subjectivity in leaf spot grading and lower the barrier of entry to automated leaf spot scoring, the newly developed pipeline uses handheld cameras to image peanuts which have been exposed to leaf spot pathogens. These images are processed by a semantic segmentation neural network where the ratios of healthy, infected, and dead plant material is extracted as an intermediary step. A simple fitting function is then used to convert these values to a ratio of plant material that has been infected or destroy by leaf spot. Finally, this value is converted to the more traditional 9-point scale [<xref rid="CR11" ref-type="bibr">11</xref>]. This process serves to minimize the human subjectivity error present during scoring of leaf spot severity while building from the 9-point scale to preserve the traditional interpretation of leaf spot severity scoring. Compared to other automated leaf spot scoring pipelines, which only return an estimated 9-point scale score or information related to the number and size of lesions, this pipeline generates both the intermediary ratios of infected, dead, and healthy leaf area as well as a score in accordance with the 9-point scale, which ensures that this pipeline can meet the needs of researchers and breeders regardless of how they choose to score severity [<xref rid="CR31" ref-type="bibr">31</xref>, <xref rid="CR32" ref-type="bibr">32</xref>].</p><p id="Par9">This paper is structured as follows: "<xref rid="Sec2" ref-type="sec">Methods</xref>" section describes the materials and methodology employed during this study. It details the choice of camera equipment used, the software used in developing this pipeline, and how the performance was validated. "<xref rid="Sec8" ref-type="sec">Results</xref>" section details the results of this pipeline, showcasing the accuracy to which it can predict the disease severity based when the protocols established in "Methods" are followed. "<xref rid="Sec13" ref-type="sec">Discussion</xref>" section provides a discussion of the limitations of this study and a discussion of how well the results resolve the problems originally described, and a as proposal of future work to improve upon the results seen here. Finally, "<xref rid="Sec17" ref-type="sec">Conclusion</xref>" section is a brief conclusion, reestablishing the goals of this project and describing how well the original goals were accomplished.</p></sec><sec id="Sec2" disp-level="1"><title>Methods</title><p id="Par10">The process for developing the end-to-end pipeline consisted of two phases, (1) using data collected during the 2021 growing season to develop the trained segmentation network and (2) employing this new network on data collected during the 2022 growing season to finalize the conversion from network output to scored severity. The datasets from 2021 and 2022 were kept separate to ensure the generalizability of the model and to prevent over fitting to specific year-related patterns. Figure <xref rid="Fig1" ref-type="fig">1</xref> shows the general data flow that was used during each phase of the project.</p><fig id="Fig1" position="float"><?disp-level 2?><label>Fig. 1</label><caption><p>Overview of (<bold>a</bold>) data sets created to support this pipeline’s development, and (<bold>b</bold>) the overall data flow when executing the pipeline</p></caption><alternatives><graphic xmlns:xlink="http://www.w3.org/1999/xlink" content-type="image" id="MO1" xlink:href="13007_2024_1316_Fig1_HTML.jpg"><?cloudpmc-path blobs/dd03/11841321/28f5f4deff11/13007_2024_1316_Fig1_HTML.jpg?><?cloudpmc-bucket cdn?><?image-server-status LOAD_COMPLETED?><?original-height 1535?><?original-width 1594?><?scaled-height 768?><?scaled-width 797?></graphic><graphic xmlns:xlink="http://www.w3.org/1999/xlink" content-type="thumb" xlink:href="13007_2024_1316_Fig1_HTML.gif"><?cloudpmc-path blobs/dd03/11841321/ab717b94415f/13007_2024_1316_Fig1_HTML.gif?><?cloudpmc-bucket cdn?></graphic></alternatives></fig><sec id="Sec3" disp-level="2"><title>Field trials</title><p id="Par11">Data was collected over two years, across two locations. The first location was the Peanut Belt Research Station (PBRS) near Lewiston, North Carolina, located at 36.1333, − 77.1705. The second location was the Upper Coastal Plain Research Station (UCPRS) near Rocky Mount, North Carolina, situated at 35.8943, − 77.6812. A total of 2120 plots were grown for the purpose of studying leaf spot over the course of the 2021 and 2022 growing seasons. Field trials consisted of 530 plots, with each trial containing 265 different genotypes of peanut to be monitored. Each plot consisted of two rows of a single line. Rows were approximately 0.9 meters in width and 7.6 meters in length. Further information regarding planting, visual scoring, and image capture dates can be found in Table <xref rid="Tab1" ref-type="table">1</xref> and a complete description of the trials can be found in [<xref rid="CR20" ref-type="bibr">20</xref>].</p><table-wrap id="Tab1" position="float"><?disp-level 3?><label>Table 1</label><caption><p>Collection of planting, harvesting, and imaging dates</p></caption><table frame="hsides" rules="groups"><thead><tr><th align="left" colspan="3" rowspan="1">2021 Growing season</th><th align="left" colspan="3" rowspan="1">2022 Growing season</th></tr><tr><th align="left" colspan="1" rowspan="1"/><th align="left" colspan="1" rowspan="1">UCPRS</th><th align="left" colspan="1" rowspan="1">PBRS</th><th align="left" colspan="1" rowspan="1"/><th align="left" colspan="1" rowspan="1">UCPRS</th><th align="left" colspan="1" rowspan="1">PBRS</th></tr></thead><tbody><tr><td align="left" colspan="1" rowspan="1">Planting dates</td><td align="left" colspan="1" rowspan="1">3-May-21</td><td align="left" colspan="1" rowspan="1">15-May-21</td><td align="left" colspan="1" rowspan="1">Planting dates</td><td align="left" colspan="1" rowspan="1">9-May-22</td><td align="left" colspan="1" rowspan="1">28-Apr-22</td></tr><tr><td align="left" colspan="1" rowspan="1">Harvesting dates</td><td align="left" colspan="1" rowspan="1"/><td align="left" colspan="1" rowspan="1">22-Oct-21</td><td align="left" colspan="1" rowspan="1">Harvesting dates</td><td align="left" colspan="1" rowspan="1"/><td align="left" colspan="1" rowspan="1"/></tr><tr><td align="left" colspan="1" rowspan="1">Imaging dates</td><td align="left" colspan="1" rowspan="1">15-Jul-21</td><td align="left" colspan="1" rowspan="1">30-Sep-21</td><td align="left" colspan="1" rowspan="1">Imaging dates</td><td align="left" colspan="1" rowspan="1">29-Sept-22</td><td align="left" colspan="1" rowspan="1">5-Oct-22</td></tr><tr><td align="left" colspan="1" rowspan="1"/><td align="left" colspan="1" rowspan="1">8-Oct-21</td><td align="left" colspan="1" rowspan="1"/><td align="left" colspan="1" rowspan="1"/><td align="left" colspan="1" rowspan="1">11-Oct-22</td><td align="left" colspan="1" rowspan="1"/></tr><tr><td align="left" colspan="1" rowspan="1"/><td align="left" colspan="1" rowspan="1">11-Oct-21</td><td align="left" colspan="1" rowspan="1"/><td align="left" colspan="1" rowspan="1"/><td align="left" colspan="1" rowspan="1"/><td align="left" colspan="1" rowspan="1"/></tr></tbody></table></table-wrap></sec><sec id="Sec4" disp-level="2"><title>Image acquisition protocol</title><p id="Par12">To facilitate image acquisition and development of necessary data sets, a protocol was developed to image in the field. To ensure that the canopy was at a consistent distance (3 ft) from the camera, handheld mounts were constructed to serve as references. A schematic of this simple setup is shown in Fig. <xref rid="Fig2" ref-type="fig">2</xref>a in which a 36-inch wooden dowel was combined with a small phone mount. A spatial calibration block was fixed to the end of the dowel; This calibration block was captured in all images and ensured that a spatial reference was included in all images, allowing the determination of the real world size of objects in the images [<xref rid="CR33" ref-type="bibr">33</xref>–<xref rid="CR35" ref-type="bibr">35</xref>]. Per Fig. <xref rid="Fig2" ref-type="fig">2</xref>b, this configuration allowed the user to hold the mount so that the reference block rested just above the canopy while the phone was positioned at the opposite end of the dowel. The pixel sampling distances in each image were converted to physical distance by <inline-formula id="IEq1"><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" id="M2"><mml:mrow><mml:mi>d</mml:mi><mml:mo>=</mml:mo><mml:mi>a</mml:mi><mml:mo stretchy="false">/</mml:mo><mml:mi>b</mml:mi></mml:mrow></mml:math></inline-formula>, where <italic>d</italic> is the calibrated sampling distance, <italic>a</italic> is the width of the block in pixels, and <italic>b</italic> is the width of the block in pixels. For this setup, the block had a width of 1 inch, and generally the camera was oriented such that <inline-formula id="IEq2"><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" id="M4"><mml:mrow><mml:mi>b</mml:mi><mml:mo>=</mml:mo><mml:mn>282</mml:mn></mml:mrow></mml:math></inline-formula> pixels, so these images had an approximate sampling distance of 282 pixels / inch. These images were 3042 x 4032 pixels in size, the maximum resolution of the Samsung Galaxy S8 phones used. The effective focal length of this camera was 24 mm. Employing a wide angle lens ensures that off-axis regions are included in the captured images, ensuring that more than just the highest leaves are imaged. All images were captured on days with minimal cloud cover in the early afternoon, ensuring that consistent lighting was present in all images.</p><fig id="Fig2" position="float"><?disp-level 3?><label>Fig. 2</label><caption><p>Cell phone <bold>a</bold> image acquisition configuration; and <bold>b</bold> example of acquired image of the canopy and calibration target</p></caption><alternatives><graphic xmlns:xlink="http://www.w3.org/1999/xlink" content-type="image" id="MO2" xlink:href="13007_2024_1316_Fig2_HTML.jpg"><?cloudpmc-path blobs/dd03/11841321/a9093327ac68/13007_2024_1316_Fig2_HTML.jpg?><?cloudpmc-bucket cdn?><?image-server-status LOAD_COMPLETED?><?original-height 942?><?original-width 1546?><?scaled-height 471?><?scaled-width 773?></graphic><graphic xmlns:xlink="http://www.w3.org/1999/xlink" content-type="thumb" xlink:href="13007_2024_1316_Fig2_HTML.gif"><?cloudpmc-path blobs/dd03/11841321/c4528b2dd2b6/13007_2024_1316_Fig2_HTML.gif?><?cloudpmc-bucket cdn?></graphic></alternatives></fig><p id="Par13">A minimum of three images per plot were captured. The first and last images were captured at the extreme ends of the length of the plot, with the image arranged to capture the edge of the plot while minimizing non-plant area in frame. Often, more than the minimum number was taken as the imaging personnel walked from one end of the plot to the other. This ensured good coverage was maintained while also allowing each plot to be rapidly imaged. An example of these images can be seen in Fig. <xref rid="Fig2" ref-type="fig">2</xref>b. Table <xref rid="Tab1" ref-type="table">1</xref> contains the dates at which the imaging protocol was performed. On dates image capture took place, a random number generator was used to select a subset of plots for imaging.
</p><p id="Par15">A goal of having included many different peanut lines at different times in the growing season was to ensure that the data set included peanuts with different canopy structures, specifically as it relates to leaf density. An example of images that showcase different structures can be found in Fig. <xref rid="Fig3" ref-type="fig">3</xref>. These images were used in the development process of this pipeline as part of the Image Scoring Data Set described in <xref rid="Sec7" ref-type="sec">Transfer learning and selecting the neural network architecture</xref> section.</p><fig id="Fig3" position="float"><?disp-level 3?><label>Fig. 3</label><caption><p>Visualization of peanut of varying leaf densities and plot thickness. Each of these images was captured during field trials and used as part of the <italic>Image Scoring Data Set</italic> detailed in <xref rid="Sec7" ref-type="sec">Transfer learning and selecting the neural network architecture</xref> section</p></caption><alternatives><graphic xmlns:xlink="http://www.w3.org/1999/xlink" content-type="image" id="MO3" xlink:href="13007_2024_1316_Fig3_HTML.jpg"><?cloudpmc-path blobs/dd03/11841321/cb47fc80c236/13007_2024_1316_Fig3_HTML.jpg?><?cloudpmc-bucket cdn?><?image-server-status LOAD_COMPLETED?><?original-height 582?><?original-width 1770?><?scaled-height 582?><?scaled-width 1770?></graphic><graphic xmlns:xlink="http://www.w3.org/1999/xlink" content-type="thumb" xlink:href="13007_2024_1316_Fig3_HTML.gif"><?cloudpmc-path blobs/dd03/11841321/33b5d7e20208/13007_2024_1316_Fig3_HTML.gif?><?cloudpmc-bucket cdn?></graphic></alternatives></fig></sec><sec id="Sec5" disp-level="2"><title>Data sets created for pipeline development</title><p id="Par16">Three primary data sets were created over the course of this study, each with a different purpose. The first will be referred to as the <italic>Neural Network Training Data Set</italic>. This data set was made of images captured at both UCPRS and PBRS locations during the 2021 growing season. All of the 2021 imaging dates found in Table <xref rid="Tab1" ref-type="table">1</xref> were included in this data set. The final result of this data set was 514 image / semantic segmentation labels that were used for developing the neural network used in the pipeline. The second data set is the <italic>Image Scoring Data Set</italic>. This data consists of 476 images that were collected at the PBRS location on 5 Oct. 2022 and includes data from plots that were manually scored from an infection level 1 to an infection level 9. This data set was used to develop the scoring function and model its success against a manual ground truth scoring by a trained expert. The last major data set is the <italic>Temporal Data Set</italic>. This data set includes randomly sampled field trials toward the end of the 2022 growing season. Two, subsets of this data set were created by randomly imaging plots from the UCPRS location in accordance with the imaging protocol. The first subset was collected at the UCRPS location on 29 September 2022 and contained 1,434 images. The second data set was collected at the same UCPRS location on 11 October 2022 and contained 714 images. Both subsets involved a different set of randomly sampled plots with 118 plots in total imaged for the <italic>Temporal Data Set</italic>.</p><sec id="Sec6" disp-level="3"><title>Semantic segmentation labeling</title><p id="Par17">Image processing started by randomly cropping the raw images to a smaller dimension of <inline-formula id="IEq3"><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" id="M6"><mml:mrow><mml:mn>224</mml:mn><mml:mo>×</mml:mo><mml:mn>224</mml:mn></mml:mrow></mml:math></inline-formula> pixels. These dimensions are commonly seen in many neural network architectures, such as ResNet50 and MobileNet [<xref rid="CR36" ref-type="bibr">36</xref>, <xref rid="CR37" ref-type="bibr">37</xref>]. All training images were cropped randomly from the fill size raw images using a simple MatLab script that selected a single random crop from each of the images from the 2021 growing season. The crops were taken randomly by using a random number generator to choose an upper left pixel for the subimage. The three remaining corners were calculated and the subimage was then cropped out of the larger image. These cropped subimages were stored in a local directory as individual images to facilitate the training process.</p><p id="Par18">Using the Labelbox platform, labels for semantic segmentation were generated on hundreds of these patches [<xref rid="CR38" ref-type="bibr">38</xref>]. At the pixel level, the images were divided into one of four classes: (1) healthy, or uninfected green leaf area that shows no signs of leaf spot infection; (2) infected, which represents living but discoloured leaf tissue caused by the leaf spot infection; (3) dead, which is comprised of non-living and defoliated plant tissue; and (4) non-plant, which describes any pixel capturing non-plant or indiscernible material. Due to the three dimensional canopy structure of peanut, it is possible that some area becomes obscured due to shadows cast from the upper canopy. This behavior was observed during the labeling process by our team; to resolve this, any regions that were obscured due to shadows cast part of the canopy structure was considered “non-plant” material for the purpose of semantic segmentation. Upon completing each image label, Labelbox saved a semantic label image that can be paired with its associated RGB image during training. Figure <xref rid="Fig4" ref-type="fig">4</xref> shows one of these hand-made semantic label images. The complete data set containing the RGB images and the labels is available on a GitHub repository<xref rid="Fn1" ref-type="fn">1</xref>.</p><fig id="Fig4" position="float"><?disp-level 4?><label>Fig. 4</label><caption><p>Comparison of <bold>a</bold> an image patch versus <bold>b</bold> its semantic segmentation label, where red represents infected lesion area, green represents the healthy subclass, yellow represents dead or defoliated plant material, and black represents non-plant / non-discernible area</p></caption><alternatives><graphic xmlns:xlink="http://www.w3.org/1999/xlink" content-type="image" id="MO4" xlink:href="13007_2024_1316_Fig4_HTML.jpg"><?cloudpmc-path blobs/dd03/11841321/dce95f631a81/13007_2024_1316_Fig4_HTML.jpg?><?cloudpmc-bucket cdn?><?image-server-status LOAD_COMPLETED?><?original-height 812?><?original-width 1545?><?scaled-height 812?><?scaled-width 1545?></graphic><graphic xmlns:xlink="http://www.w3.org/1999/xlink" content-type="thumb" xlink:href="13007_2024_1316_Fig4_HTML.gif"><?cloudpmc-path blobs/dd03/11841321/1188192bf1c9/13007_2024_1316_Fig4_HTML.gif?><?cloudpmc-bucket cdn?></graphic></alternatives></fig></sec></sec><sec id="Sec7" disp-level="2"><title>Transfer learning and selecting the neural network architecture</title><p id="Par19">A neural network was transfer learned to perform semantic segmentation, such that each pixel would be classified as either healthy, infected, dead, or non-plant material. Four networks were chosen and trained prior to down-selecting the best-performing model. The U-Net architecture was first chosen given its origin in biomedical image segmentation and powerful encoder-decoder structure [<xref rid="CR39" ref-type="bibr">39</xref>]. Three additional deep learning networks were also employed: MobileNet, ResNet18, and ResNet50 [<xref rid="CR36" ref-type="bibr">36</xref>, <xref rid="CR37" ref-type="bibr">37</xref>]. These were implemented using DeepLabV3+ in MatLab, allowing the networks to all perform pixel-wise classification on the images [<xref rid="CR40" ref-type="bibr">40</xref>].</p><p id="Par20">The training data subset consisted of 420 image and semantic segmentation label pairs. The validation and holdout data subsets were 48 images each, representing a split of 81.4% / 9.3% / 9.3% for the training / validation / holdout split from the original <italic>Neural Network Development data set</italic>. Table <xref rid="Tab2" ref-type="table">2</xref> describes the raw pixel counts of each of the individual classes in the training data set as well as the normalized frequency for the classes.
</p><table-wrap id="Tab2" position="float"><?disp-level 3?><label>Table 2</label><caption><p>Raw counts and normalized values</p></caption><table frame="hsides" rules="groups"><thead><tr><th align="left" colspan="1" rowspan="1"/><th align="left" colspan="1" rowspan="1">Raw counts</th><th align="left" colspan="1" rowspan="1">Normalized frequency</th></tr></thead><tbody><tr><td align="left" colspan="1" rowspan="1">Healthy</td><td align="center" colspan="1" rowspan="1">15,439,914</td><td align="center" colspan="1" rowspan="1">0.7341</td></tr><tr><td align="left" colspan="1" rowspan="1">Infected</td><td align="center" colspan="1" rowspan="1">440,205</td><td align="center" colspan="1" rowspan="1">0.0209</td></tr><tr><td align="left" colspan="1" rowspan="1">Non-plant</td><td align="center" colspan="1" rowspan="1">3,848,687</td><td align="center" colspan="1" rowspan="1">0.183</td></tr><tr><td align="left" colspan="1" rowspan="1">Dead</td><td align="center" colspan="1" rowspan="1">1,303,985</td><td align="center" colspan="1" rowspan="1">0.062</td></tr></tbody></table></table-wrap><p id="Par21">All four networks were trained using the following settings: </p><list list-type="order"><list-item><p id="Par22">Use of the Adam optimizer and a mini-batch size of 32 [<xref rid="CR41" ref-type="bibr">41</xref>]. Note that mini-batch sizes of 8, 16, 32, and 128 were studied. A batch size of 32 resulted in the highest mean accuracy when training the network for 20 epochs with training parameters identical to the full model - the only change was the early stopping parameter was removed. Table <xref rid="Tab5" ref-type="table">5</xref> contains a brief summary of all mini-batch sizes that were studied and their finalized result metrics when evaluating the same validation subset as the finished model. 32 was the selected value for the mini batch size due to the maximum mean accuracy found with this testing.</p></list-item><list-item><p id="Par23">Training parameters, summarized in Table <xref rid="Tab4" ref-type="table">4</xref>, were identical for all four networks.</p></list-item><list-item><p id="Par24">The training process spanned a dynamically chosen number of epochs based on an early stopping procedure. Note that while a maximum of 1500 epochs was technically possible and validation patience was 150 epochs, the actual number of training epochs was much lower [<xref rid="CR42" ref-type="bibr">42</xref>–<xref rid="CR46" ref-type="bibr">46</xref>]. MobileNetV2, ResNet18, ResNet50, and U-Net reached their minimum validation error at 4, 5, 12, and 60 epochs respectively, and these were the final models that were evaluated. Each model was trained for a further 150 epochs (although this overtrained version was not saved) to ensure that the model with minimum validation error had been selected.</p></list-item><list-item><p id="Par25">The risk of over fitting was minimized by dividing the data into 81.4% training, 9.3% validation, and 9.3% holdout. All training, validation, and holdout data sets were comprised exclusively of crops taken from images from the 2021 growing season, although both field trials were used to create the model.</p></list-item><list-item><p id="Par26">Class weights were incorporated into the loss function. The original data set suffered from a high degree of imbalance as shown in Table <xref rid="Tab2" ref-type="table">2</xref>. Class weights, summarized in Table <xref rid="Tab3" ref-type="table">3</xref>, were used to correct for this in each network, as weighting the classes should result in a more reliable performance on the unbalanced data set [<xref rid="CR47" ref-type="bibr">47</xref>].</p></list-item><list-item><p id="Par27">GPU acceleration was used to train the models at a faster rate than traditional CPU training. System specifications included an RTX 3060 12GB, a Ryzen 5 5600X, and 32GB of system RAM.</p></list-item></list><table-wrap id="Tab5" position="float"><?disp-level 3?><label>Table 5</label><caption><p>Evaluation criteria on the validation subset with a ResNet Model Trained with varying mini batch size</p></caption><table frame="hsides" rules="groups"><thead><tr><th align="left" colspan="1" rowspan="1">Mini batch size</th><th align="left" colspan="1" rowspan="1">Global accuracy</th><th align="left" colspan="1" rowspan="1">Mean accuracy</th><th align="left" colspan="1" rowspan="1">Mean IoU</th><th align="left" colspan="1" rowspan="1">Weighted IoU</th></tr></thead><tbody><tr><td align="left" colspan="1" rowspan="1">8</td><td align="left" colspan="1" rowspan="1">0.8038</td><td align="left" colspan="1" rowspan="1">0.68738</td><td align="left" colspan="1" rowspan="1">0.42089</td><td align="left" colspan="1" rowspan="1">0.7239</td></tr><tr><td align="left" colspan="1" rowspan="1">16</td><td align="left" colspan="1" rowspan="1">0.85449</td><td align="left" colspan="1" rowspan="1">0.85598</td><td align="left" colspan="1" rowspan="1">0.56597</td><td align="left" colspan="1" rowspan="1">0.78873</td></tr><tr><td align="left" colspan="1" rowspan="1">32</td><td align="left" colspan="1" rowspan="1">0.82879</td><td align="left" colspan="1" rowspan="1">0.872332</td><td align="left" colspan="1" rowspan="1">0.54744</td><td align="left" colspan="1" rowspan="1">0.75412</td></tr><tr><td align="left" colspan="1" rowspan="1">128</td><td align="left" colspan="1" rowspan="1">0.76852</td><td align="left" colspan="1" rowspan="1">0.76271</td><td align="left" colspan="1" rowspan="1">0.45586</td><td align="left" colspan="1" rowspan="1">0.68135</td></tr></tbody></table></table-wrap><table-wrap id="Tab4" position="float"><?disp-level 3?><label>Table 4</label><caption><p>Model training settings</p></caption><table frame="hsides" rules="groups"><thead><tr><th align="left" colspan="1" rowspan="1">Setting</th><th align="left" colspan="1" rowspan="1">Value</th></tr></thead><tbody><tr><td align="left" colspan="1" rowspan="1">Initial learning rate</td><td align="left" colspan="1" rowspan="1">0.001</td></tr><tr><td align="left" colspan="1" rowspan="1">Learn rate schedule settings</td><td align="left" colspan="1" rowspan="1">None</td></tr><tr><td align="left" colspan="1" rowspan="1">L2 Regularization</td><td align="left" colspan="1" rowspan="1">0.0001</td></tr><tr><td align="left" colspan="1" rowspan="1">Gradient decay factor</td><td align="left" colspan="1" rowspan="1">0.9</td></tr><tr><td align="left" colspan="1" rowspan="1">Squared gradient decay factor</td><td align="left" colspan="1" rowspan="1">0.999</td></tr><tr><td align="left" colspan="1" rowspan="1">Epsilon</td><td align="left" colspan="1" rowspan="1">1e−8</td></tr><tr><td align="left" colspan="1" rowspan="1">Batch normalization statistics</td><td align="left" colspan="1" rowspan="1">Population</td></tr></tbody></table></table-wrap><table-wrap id="Tab3" position="float"><?disp-level 3?><label>Table 3</label><caption><p>Class weights for training</p></caption><table frame="hsides" rules="groups"><thead><tr><th align="left" colspan="4" rowspan="1">Class weights</th></tr><tr><th align="left" colspan="1" rowspan="1">Healthy</th><th align="left" colspan="1" rowspan="1">Infected</th><th align="left" colspan="1" rowspan="1">Background 3</th><th align="left" colspan="1" rowspan="1">Dead</th></tr></thead><tbody><tr><td align="left" colspan="1" rowspan="1">0.1966</td><td align="left" colspan="1" rowspan="1">1.1133</td><td align="left" colspan="1" rowspan="1">1.0417</td><td align="left" colspan="1" rowspan="1">0.9651</td></tr></tbody></table></table-wrap></sec></sec><sec id="Sec8" disp-level="1"><title>Results</title><sec id="Sec9" disp-level="2"><title>Imaging protocol</title><p id="Par29">The main metric for success with respect to the imaging protocol was the number of images captured and plots imaged compared to the speed of a human scorer. To that end, imaging per plot takes an individual approximately 1 minute. For a field of 530 plots, this would take almost 9 hours for an individual to properly image for scoring protocols. By comparison, an individual scoring in compliance with the traditional 9-point can score the same number of field trials in approximately 1–1.5 hours. To this end, the imaging protocol was much less time efficient than traditional field surveys, with imaging taking almost five times longer compared to a traditional field survey.</p><p id="Par30">We also see a reduction in total plant canopy area used for scoring through the imaging protocol as described. Given the typical ground sampling distance of 94 pixels / inch, we are left with an approximate 0.90 <inline-formula id="IEq4"><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" id="M8"><mml:msup><mml:mi>m</mml:mi><mml:mn>2</mml:mn></mml:msup></mml:math></inline-formula> area per image taken. Compared to a human scorer who can see the entirety of the 6.8 <inline-formula id="IEq5"><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" id="M10"><mml:msup><mml:mi>m</mml:mi><mml:mn>2</mml:mn></mml:msup></mml:math></inline-formula> plot at a glance, this is a massive reduction in sampled area.</p></sec><sec id="Sec10" disp-level="2"><title>Neural network performance</title><p id="Par31">As previously described, a holdout data set of 48 image / segmentation label pairs was used to evaluate how well the models generalized to new information. The performance on this data set would demonstrate how the model performs on future new data sets. The hold out data set was used to generate two primary metrics of evaluation. The first metric was the Jaccard Index, which evaluates the similarities in the semantic segmentation labels versus the generated labels by comparing the intersection areas of each class to the overlapping areas of each class. The ResNet50 model scored the highest, with a Jaccard index of 0.770. A full list of Jaccard indices for each network, alongside global accuracy, can be seen in Table <xref rid="Tab6" ref-type="table">6</xref>. The time for each model to perform inference was determined by running each model on one thousand <inline-formula id="IEq6"><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" id="M12"><mml:mrow><mml:mn>224</mml:mn><mml:mo>×</mml:mo><mml:mn>224</mml:mn></mml:mrow></mml:math></inline-formula> pixel images, with the mean time to perform interference recorded. The GPU utilization was logged during this using the program GPU-Z version 0.8.9, with the mean GPU Utilization during this time period recorded for each model. Each of these tasks were performed using the aforementioned system with Ryzen 5600X CPU and RTX 3060 graphics card.
</p><table-wrap id="Tab6" position="float"><?disp-level 3?><label>Table 6</label><caption><p>Accuracy, Jaccard Index, inference time, and size of each model</p></caption><table frame="hsides" rules="groups"><thead><tr><th align="left" colspan="1" rowspan="1">Model</th><th align="left" colspan="1" rowspan="1">Mean accuracy</th><th align="left" colspan="1" rowspan="1">Jaccard Index</th><th align="left" colspan="1" rowspan="1">Inference time (ms)</th><th align="left" colspan="1" rowspan="1">Size (MB)</th><th align="left" colspan="1" rowspan="1">GPU utilization (%)</th></tr></thead><tbody><tr><td align="left" colspan="1" rowspan="1">MobileNet</td><td align="left" colspan="1" rowspan="1">0.853</td><td align="left" colspan="1" rowspan="1">0.716</td><td align="center" colspan="1" rowspan="1">7.64</td><td align="left" colspan="1" rowspan="1">27.9</td><td align="left" colspan="1" rowspan="1">39.47</td></tr><tr><td align="left" colspan="1" rowspan="1">U-Net</td><td align="left" colspan="1" rowspan="1">0.815</td><td align="left" colspan="1" rowspan="1">0.721</td><td align="center" colspan="1" rowspan="1">17.7</td><td align="left" colspan="1" rowspan="1">124</td><td align="left" colspan="1" rowspan="1">81.96</td></tr><tr><td align="left" colspan="1" rowspan="1">ResNet18</td><td align="left" colspan="1" rowspan="1">0.795</td><td align="left" colspan="1" rowspan="1">0.665</td><td align="center" colspan="1" rowspan="1">5.28</td><td align="left" colspan="1" rowspan="1">82.8</td><td align="left" colspan="1" rowspan="1">51.18</td></tr><tr><td align="left" colspan="1" rowspan="1">ResNet50</td><td align="left" colspan="1" rowspan="1">0.838</td><td align="left" colspan="1" rowspan="1">0.770</td><td align="center" colspan="1" rowspan="1">7.92</td><td align="left" colspan="1" rowspan="1">177</td><td align="left" colspan="1" rowspan="1">56.21</td></tr></tbody></table></table-wrap><p id="Par32">The normalized Confusion Matrices for all four of the preliminary networks can be seen in Fig. <xref rid="Fig6" ref-type="fig">6</xref>, which shows how well the architectures could identify each pixel belonging to each class. While each model demonstrated a mean accuracy of between 0.795 and 0.853, the minimum performance of each model across the four classes was the metric used to decide which model would be used in the finished pipeline. Despite a larger model and longer inference time compared to the three other models that were tested, ResNet50 was the only network to achieve an accuracy of over 50% on the dead leaf material during testing (See Figure 5d). ResNet50 was selected for the application due to its highest minimum accuracy across classes. While mean accuracy and even Jaccard index indicates similar performance of each network, we determined that ResNet50 provides a good balance of all classes, spanning early leaf spot (visual scores 1–5) and defoliation (visual scores 6–9) based on the confusion matrices.</p><fig id="Fig6" position="float"><?disp-level 3?><label>Fig. 6</label><caption><p>Confusion matrices for the four networks</p></caption><alternatives><graphic xmlns:xlink="http://www.w3.org/1999/xlink" content-type="image" id="MO6" xlink:href="13007_2024_1316_Fig6_HTML.jpg"><?cloudpmc-path blobs/dd03/11841321/c708b837a913/13007_2024_1316_Fig6_HTML.jpg?><?cloudpmc-bucket cdn?><?image-server-status LOAD_COMPLETED?><?original-height 1342?><?original-width 1546?><?scaled-height 671?><?scaled-width 773?></graphic><graphic xmlns:xlink="http://www.w3.org/1999/xlink" content-type="thumb" xlink:href="13007_2024_1316_Fig6_HTML.gif"><?cloudpmc-path blobs/dd03/11841321/09ffe1db043a/13007_2024_1316_Fig6_HTML.gif?><?cloudpmc-bucket cdn?></graphic></alternatives></fig><p id="Par33">In addition to simple numeric testing of the network’s accuracy on test sets, it was important to perform visual inspections of how well the model generalized to new data. An example of this qualitative testing can be seen in Fig. <xref rid="Fig5" ref-type="fig">5</xref>, which shows an image that was passed into the preliminary ResNet50 architecture and its resulting label. As depicted, semantic labels were applied correctly, demonstrating proper semantic segmentation of the image—this is supported by the confusion matrix. Within the image, green represents Healthy plant area, red sections are infected lesions, yellow representing Dead plants, and black represents Non-Plant or non-distinguishable area.</p><fig id="Fig5" position="float"><?disp-level 3?><label>Fig. 5</label><caption><p>Comparison of an image patch versus its generated label. Green areas represent Healthy regions, red represents infected lesions or Infected, and black regions represent background or Non-Plant material. No completely dead material can be seen in this example</p></caption><alternatives><graphic xmlns:xlink="http://www.w3.org/1999/xlink" content-type="image" id="MO5" xlink:href="13007_2024_1316_Fig5_HTML.jpg"><?cloudpmc-path blobs/dd03/11841321/bf8412eb4657/13007_2024_1316_Fig5_HTML.jpg?><?cloudpmc-bucket cdn?><?image-server-status LOAD_COMPLETED?><?original-height 808?><?original-width 1546?><?scaled-height 404?><?scaled-width 773?></graphic><graphic xmlns:xlink="http://www.w3.org/1999/xlink" content-type="thumb" xlink:href="13007_2024_1316_Fig5_HTML.gif"><?cloudpmc-path blobs/dd03/11841321/aaabaef1de91/13007_2024_1316_Fig5_HTML.gif?><?cloudpmc-bucket cdn?></graphic></alternatives></fig><p id="Par34">All of the associated networks exhibited the lowest correct classification on the “Dead” class. ResNet50 saw the best result here, with more than half of the Dead pixels being properly classified. The other networks all saw under 50% proper classification of the Dead classed pixels, reinforcing our choice to keep the ResNet50 network in the pipeline. This low classification rate was noticeably exacerbated in images where there was no green plant area - this behavior was seen routinely.</p></sec><sec id="Sec11" disp-level="2"><title>Scoring function</title><p id="Par35">To examine the relationship between our two primary classes and visual severity level, a simple data set was created. This data set, referred to as the <italic>Image Scoring Data Set</italic>, was comprised of 475 images captured at the end of the growing season on 5 Oct. 2022 at PBRS per Table <xref rid="Tab1" ref-type="table">1</xref>. Each of the full-size 12MP images in the <italic>Image Scoring Data Set</italic> was segmented by our network and the labels were converted into their relative class frequency. Each visual severity level represents a small range of possible severities—for example, a score of 4 is described as having “many spots; mostly on lower and middle leaves; disease evident” [<xref rid="CR11" ref-type="bibr">11</xref>]. This description represents a range of severities before increasing to the next score, effectively introducing quantization or round-off error to the measurements [<xref rid="CR48" ref-type="bibr">48</xref>]. To reduce error caused by this range, all samples of a specific visual severity were averaged to a single value, representing the typical infection for each visual severity score. Figure <xref rid="Fig7" ref-type="fig">7</xref> shows a plot of the average normalized frequency of each of these class counts as compared to the visual severity level. The <inline-formula id="IEq7"><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" id="M14"><mml:msup><mml:mi>r</mml:mi><mml:mn>2</mml:mn></mml:msup></mml:math></inline-formula> for this fitting can be found in Table <xref rid="Tab7" ref-type="table">7</xref> alongside the root-mean-square-error (RMSE) when the fit function is applied to all images in the <italic>Image Scoring Data Set</italic>. A fit was performed on the classification frequency to the linear function <inline-formula id="IEq8"><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" id="M16"><mml:mrow><mml:mi>f</mml:mi><mml:mo>=</mml:mo><mml:msub><mml:mi>p</mml:mi><mml:mn>00</mml:mn></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>p</mml:mi><mml:mn>01</mml:mn></mml:msub><mml:msub><mml:mi>s</mml:mi><mml:mi>v</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> where <italic>f</italic> is the normalized frequency, <inline-formula id="IEq9"><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" id="M18"><mml:msub><mml:mi>s</mml:mi><mml:mi>v</mml:mi></mml:msub></mml:math></inline-formula> is the ground truth visual severity level, <inline-formula id="IEq10"><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" id="M20"><mml:msub><mml:mi>p</mml:mi><mml:mn>00</mml:mn></mml:msub></mml:math></inline-formula> is an initial offset, <inline-formula id="IEq11"><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" id="M22"><mml:msub><mml:mi>p</mml:mi><mml:mn>01</mml:mn></mml:msub></mml:math></inline-formula> is the multiplication coefficient for the visual severity level. The results of fitting to a linear trend as described here can be seen in Table <xref rid="Tab7" ref-type="table">7</xref>. A continuous decrease in the Healthy plant frequency is observed as the visual severity level increases. We also see an increase in Infected plant material and Dead plant material as the severity increases. A correlation coefficient matrix can be seen in Figure <xref rid="Fig8" ref-type="fig">8</xref>, showing the correlation coefficients of each pixel class and the visual level.</p><fig id="Fig7" position="float"><?disp-level 3?><label>Fig. 7</label><caption><p>Normalized frequency of Healthy, Infected, and Dead (defoliated) plant material. Vertical error bars represent 1 standard deviation from the mean and horizontal error bars represent half of a visual level</p></caption><alternatives><graphic xmlns:xlink="http://www.w3.org/1999/xlink" content-type="image" id="MO7" xlink:href="13007_2024_1316_Fig7_HTML.jpg"><?cloudpmc-path blobs/dd03/11841321/4f835eb8d69f/13007_2024_1316_Fig7_HTML.jpg?><?cloudpmc-bucket cdn?><?image-server-status LOAD_COMPLETED?><?original-height 716?><?original-width 1546?><?scaled-height 358?><?scaled-width 773?></graphic><graphic xmlns:xlink="http://www.w3.org/1999/xlink" content-type="thumb" xlink:href="13007_2024_1316_Fig7_HTML.gif"><?cloudpmc-path blobs/dd03/11841321/fa6dd8ec7b65/13007_2024_1316_Fig7_HTML.gif?><?cloudpmc-bucket cdn?></graphic></alternatives></fig><table-wrap id="Tab7" position="float"><?disp-level 3?><label>Table 7</label><caption><p>Parameters of fits for normalized class frequency alongside quality of fit metrics</p></caption><table frame="hsides" rules="groups"><thead><tr><th align="left" colspan="1" rowspan="1"/><th align="left" colspan="1" rowspan="1">
<inline-formula id="IEq12"><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" id="M24"><mml:msub><mml:mi>p</mml:mi><mml:mn>00</mml:mn></mml:msub></mml:math></inline-formula>
</th><th align="left" colspan="1" rowspan="1">
<inline-formula id="IEq13"><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" id="M26"><mml:msub><mml:mi>p</mml:mi><mml:mn>01</mml:mn></mml:msub></mml:math></inline-formula>
</th><th align="left" colspan="1" rowspan="1">RMSE</th><th align="left" colspan="1" rowspan="1">Average severity <inline-formula id="IEq14"><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" id="M28"><mml:msup><mml:mi>r</mml:mi><mml:mn>2</mml:mn></mml:msup></mml:math></inline-formula>
</th></tr></thead><tbody><tr><td align="left" colspan="1" rowspan="1">Healthy green area</td><td align="center" colspan="1" rowspan="1">0.984</td><td align="center" colspan="1" rowspan="1">− 0.081</td><td align="left" colspan="1" rowspan="1">0.109</td><td align="left" colspan="1" rowspan="1">0.960</td></tr><tr><td align="left" colspan="1" rowspan="1">Infected leaf area</td><td align="center" colspan="1" rowspan="1">0.110</td><td align="center" colspan="1" rowspan="1">0.022</td><td align="left" colspan="1" rowspan="1">0.0687</td><td align="left" colspan="1" rowspan="1">0.883</td></tr><tr><td align="left" colspan="1" rowspan="1">Dead plant material</td><td align="center" colspan="1" rowspan="1">− 0.094</td><td align="center" colspan="1" rowspan="1">0.059</td><td align="left" colspan="1" rowspan="1">0.1068</td><td align="left" colspan="1" rowspan="1">0.883</td></tr></tbody></table></table-wrap><fig id="Fig8" position="float"><?disp-level 3?><label>Fig. 8</label><caption><p>Correlation matrix for three class labels and the visual severity level</p></caption><alternatives><graphic xmlns:xlink="http://www.w3.org/1999/xlink" content-type="image" id="MO8" xlink:href="13007_2024_1316_Fig8_HTML.jpg"><?cloudpmc-path blobs/dd03/11841321/b3b92d7beef5/13007_2024_1316_Fig8_HTML.jpg?><?cloudpmc-bucket cdn?><?image-server-status LOAD_COMPLETED?><?original-height 704?><?original-width 885?><?scaled-height 469?><?scaled-width 590?></graphic><graphic xmlns:xlink="http://www.w3.org/1999/xlink" content-type="thumb" xlink:href="13007_2024_1316_Fig8_HTML.gif"><?cloudpmc-path blobs/dd03/11841321/555bd9056652/13007_2024_1316_Fig8_HTML.gif?><?cloudpmc-bucket cdn?></graphic></alternatives></fig><p id="Par37">Using the <italic>Image Scoring Data Set</italic>, the ratios of Infected and Dead pixels within the image can be used as inputs and converted into a predicted visual score by</p><disp-formula id="Equ1"><label>1</label><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" id="M30" display="block"><mml:mrow><mml:mtable><mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:msub><mml:mi>s</mml:mi><mml:mi>p</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mn>1.0</mml:mn><mml:mo>+</mml:mo><mml:mn>11.2621</mml:mn><mml:mi>δ</mml:mi><mml:mo>+</mml:mo><mml:mn>7.6794</mml:mn><mml:mi>ω</mml:mi><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:mrow></mml:math></disp-formula><p>where <inline-formula id="IEq15"><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" id="M32"><mml:mi>δ</mml:mi></mml:math></inline-formula> is the normalized frequency of Infected pixels, <inline-formula id="IEq16"><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" id="M34"><mml:mi>ω</mml:mi></mml:math></inline-formula> is the normalized frequency of dead pixels, and <inline-formula id="IEq17"><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" id="M36"><mml:msub><mml:mi>s</mml:mi><mml:mi>p</mml:mi></mml:msub></mml:math></inline-formula> is the predicted visual level. This equation was determined by performing a linear regression across all samples in the <italic>Image Scoring Data Set</italic>. The Healthy classification ratio was not needed as it is linearly dependent upon the Infected and Dead values.</p><p id="Par38">Using this linear regression equation, we can determine a new level that is directly comparable to the 9-point scale. By converting from the normalized frequency of plant classes to the 9-point scale, it can be determined how well this image scoring system replicates the results of our visual severity levels. Using the <italic>Image Scoring Data Set</italic>, the visual severity level can be estimated from the ratio of Infected and Dead pixels <xref rid="Equ1" ref-type="disp-formula">1</xref>. As mentioned previously, occasionally more images were taken per plot, which can lead to an imbalance in the scored data set as not all plots were imaged equally. To eliminate this possible bias, a random subsampling of images was performed. Only three images per plot were selected, and each image was passed through the scoring pipeline to determine an estimated leaf spot severity rating. The root mean square error (RMSE) value was calculated to be 0.996. Some of this error can be attributed to the 9-point scale’s integer basis compared to the continuous levels of the predicted level. While the visual severity levels force a small range of infection severities to be equal to a single integer level, the predicted level is continuous and will not always match up exactly with the original level.</p><p id="Par39">To identify how the number of images and sampling area impacts the expected error, a second comparison was performed where the predicted level of three images per plot, the same randomly sampled images described previously, were averaged before being passed into the scoring function. The resulting predicted score was then compared to the ground truth measurement for the plot as a whole. This increases the area of the plot that is being measured by a factor of three. When performing this average across three images the RMSE for each plot decrease to approximately 0.800 from the previous 0.996.</p><p id="Par40">Additionally, non-linear fitting functions were investigated to determine the suitability of the linear function. Three support vector machines (SVM) were fit to the entire <italic>Image Scoring Data Set</italic> using the Regression Learner from MatLab 2023b. The kernel scale, box constraint, and epsilon were all determined dynamically by the Regression Learner application. The Linear SVM was found to be the highest performing with an RMSE of 1.064, followed by the Cubic SVM with an RMSE of 1.071, and lastly was the Quadratic SVM with an RMSE of 1.081. Due to the performance of the SVM models all being slightly worse than the linear model, the linear model was selected as the final model for converting segmentation values into an estimated leaf spot score.</p></sec><sec id="Sec12" disp-level="2"><title>Predicted severity over time</title><p id="Par41">One limitation of our study is that visual severity levels were only conducted at the end of each growing season; however, image data were collected at earlier time-points with our scoring protocol, our previously described <italic>Temporal Data Set</italic>. A simple hypothesis to test is whether the scoring algorithm produces a lower average level early on in the season, when leaf spot severity should be lower due to the reduced duration of the infection period [<xref rid="CR5" ref-type="bibr">5</xref>]. To quantify trends in the data over time, our temporal dataset was used to predict the distribution of levels from the UCPS location at two different points in time toward the end of the 2022 growing season (exact dates can be found in Table <xref rid="Tab1" ref-type="table">1</xref>). To avoid biasing the data, a random subsampling was performed in the cases where more than three images were captured of a particular plot, resulting in each of our plots in the data set contributing three images to the analysis. A graph of normalized frequency versus predicted levels for both sampling dates can be seen in Fig. <xref rid="Fig9" ref-type="fig">9</xref>. The mean predicted level for the early season subset was 3.87 where the mean predicted level for the late season subset was 4.29, an increase of 0.42 over the course of 12 days. A wider spread of levels is observed on the late season subset, with the standard deviation of 1.33 on the early subset and a standard deviation of 2.18 on the late subset. Finally, we see a higher maximum predicted level in the late subset; the maximum predicted level being 9.32 in the late subset and 7.71 in the early subset. The minimum predicted level in the early subset is 1.05 compared to 1.11 in the late subset.</p><fig id="Fig9" position="float"><?disp-level 3?><label>Fig. 9</label><caption><p>Histograms of randomly sampled plots at two different points in time</p></caption><alternatives><graphic xmlns:xlink="http://www.w3.org/1999/xlink" content-type="image" id="MO9" xlink:href="13007_2024_1316_Fig9_HTML.jpg"><?cloudpmc-path blobs/dd03/11841321/46859e4dc360/13007_2024_1316_Fig9_HTML.jpg?><?cloudpmc-bucket cdn?><?image-server-status LOAD_COMPLETED?><?original-height 720?><?original-width 896?><?scaled-height 480?><?scaled-width 597?></graphic><graphic xmlns:xlink="http://www.w3.org/1999/xlink" content-type="thumb" xlink:href="13007_2024_1316_Fig9_HTML.gif"><?cloudpmc-path blobs/dd03/11841321/4e7b2ca9fb6e/13007_2024_1316_Fig9_HTML.gif?><?cloudpmc-bucket cdn?></graphic></alternatives></fig></sec></sec><sec id="Sec13" disp-level="1"><title>Discussion</title><sec id="Sec14" disp-level="2"><title>Handheld imaging protocol and dataset creation</title><p id="Par42">The first step in this automated leaf spot scoring pipeline involved the handheld imaging component. As described previously, our imaging personnel used a cell phone camera, combined with a simple handheld tool, to perform rapid imaging of a random selection of plots. For our purpose, we needed to obtain hundreds of images across numerous plots in our field trials. Compared to a traditional visual scoring, our imaging protocol was more time-intensive than traditional expert visual scoring by a factor of five. While this limitation may mean that field surveys require five times as many personnel to survey at the same rate as an individual using traditional field survey protocols, the training time is reduced with the imaging protocol and scalability is increased. The element of human subjectivity present in traditional field surveys is greatly reduced using our protocol, which reduces the error introduced by having more personnel present in the scoring process. An additional benefit is that the raw data is stored in the form of captured images, where a traditional field survey does not store data that can easily be revisited if errors are identified.</p><p id="Par43">When the plots were imaged, a minimum of three images were taken, two at either end and one in the center. This does not fully image the plot and means that the entire 6.8 square meter plot must be scored on a combined area of 2.7 square meters, a reduction in area scored by 60%. As described in the results, an RMSE of 0.996 visual scores was observed when evaluating the individual images in the <italic>Image Scoring Data Set</italic>, and when randomly averaging the results of three images, the RMSE was reduced to 0.800. This reduction in error indicates that a higher number of images reduces the error seen when evaluating a plot for infection severity. This is reinforced by the <inline-formula id="IEq18"><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" id="M38"><mml:msup><mml:mi>r</mml:mi><mml:mn>2</mml:mn></mml:msup></mml:math></inline-formula> values when fitting the normalized frequency of each class per the severity score, as seen in Fig. <xref rid="Fig7" ref-type="fig">7</xref> and Table <xref rid="Tab7" ref-type="table">7</xref>. Here, we see a high <inline-formula id="IEq19"><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" id="M40"><mml:mrow><mml:msup><mml:mi>r</mml:mi><mml:mn>2</mml:mn></mml:msup><mml:mo>≈</mml:mo><mml:mn>0.88</mml:mn><mml:mo>-</mml:mo><mml:mn>0.95</mml:mn></mml:mrow></mml:math></inline-formula> for all classes when averaging all images associated with a particular severity score. As previously described, the discrete nature of the 9-point scale and the continuous output of the scoring function introduces round-off errors into the measurements. Representing a range of infection severities as an integer value causes unavoidable error due to compressing each severity range to a single integer. Round-off error in the ground truth measurements leads to an unavoidable error when evaluating the performance of the pipeline.</p><p id="Par44">As a limitation of this study, only three images were captured per plot, which limits the multi-angle coverage of each area and could result in leaf occlusion. This imaging protocol was performed to minimize time spent capturing images and minimize the barrier of entry. More advanced image collection protocols are under investigation by peanut breeding teams around the country, such as automated drone image capturing pipelines; future work should could investigate the possibility of combining the pipeline developed here with these systems that are capable of more fully imaging plots and minimizing leaf occlusion [<xref rid="CR20" ref-type="bibr">20</xref>]. Future work could examine integrating the pipeline developed here with such systems to achieve more comprehensive plot imaging and reduce the impact of leaf occlusion.</p></sec><sec id="Sec15" disp-level="2"><title>Neural network and scoring algorithm</title><p id="Par45">A key neural network metric is how predictably it performs on images associated with specific levels of infection severity. The network must both classify pixels correctly and fit into the overall scoring pipeline. One key identifiers of the semantic segmentation network’s generalizability is the normalized confusion matrix that was generated from the testing (holdout) subset of the <italic>Neural Network Development Data Set</italic> as seen in Fig. <xref rid="Fig6" ref-type="fig">6</xref>. These results demonstrate the varying degrees of accuracy for the four classes. The least important class—Non-Plant—shows the highest degree of accuracy. The Healthy and Infected classes show similar levels of accuracy, with accurate classification <inline-formula id="IEq20"><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" id="M42"><mml:mrow><mml:mo>&gt;</mml:mo><mml:mn>80.0</mml:mn></mml:mrow></mml:math></inline-formula>% of the time. The Dead class was frequently mistaken for the Non-Plant class, with 40.0% of the Dead pixels being mistaken for Non-Plant pixels and only 53.8% of the Dead class being identified correctly. Despite having the second-highest mean accuracy across all classes, the ResNet50-based model had the worst identification of Non-Plant material of any of the four models. The next closest performer in mean accuracy was MobileNetV2. However, this model suffered from a low accuracy (66.5%) in identifying infected material. ResNet18 performed poorly across almost all classes, with Dead pixel classification accuracy of only 18.5% and Infected pixel classification accuracy of 70.4%. The U-Net model performed similarly to ResNet50 on both the Healthy and Infected classes, and even outscored ResNet50 in regards to the Non-Plant class, but suffered from a low accuracy of 34.9% on the Dead class, indicating that it may struggle in identifying one of the key classes to our scoring pipeline. Finally, the Jaccard index, shown in Table <xref rid="Tab6" ref-type="table">6</xref>, was another key metric for success when evaluating the networks tested for developing our pipeline. The ResNet50 model scored the highest Jaccard Index of the four networks created. While the mean accuracy was slightly lower than the MobileNet-based model, the higher Jaccard Index indicated that the labels produced by the ResNet50 model were more similar to the semantic labels created for testing compared to the labels produced by any other model. The Jaccard Index is based on the overlapping area of the labels rather than a raw accuracy of correctly applied labels; this behavior means the metric is less impacted by imbalanced datasets than the overall accuracy metric, making it key to evaluating the performance of the trained neural network [<xref rid="CR49" ref-type="bibr">49</xref>].</p><p id="Par46">Because many other damage detection pipelines treat damage as a singular class rather than differentiating between different classifications of damage, the networks’ ability to differentiate between damage to the canopy in the form of infected lesions and dead plant material was of key interest [<xref rid="CR50" ref-type="bibr">50</xref>]. In the ResNet50 model that was chosen, Infected pixels were misclassified as Dead 5.7% of the time, and Dead pixels were misclassified as Infected 1.6% of the time. Other models also showed a low misclassification rate between the two different damage classifications. The ResNet18 model for example showed no misclassification where Infected was mislabelled as Dead, and only 3.6% of Dead pixels were misclassified as Infected; the U-Net and MobileNetV2 also showed low misclassification rates between Infected and Dead, as seen in Fig. <xref rid="Fig6" ref-type="fig">6</xref>. These results are indicative that the four models tested are capable of differentiating between the types of damage seen in our field trials, implying suitability for these networks in multi-class classification tasks across different timespans. Future work may focus on developing pipelines capable of detecting and scoring additional types of damage in peanut, to allow for a more complete tool.</p><p id="Par47">We saw a small level of defoliation that was present even at low levels of severity infection. Referring to Fig. <xref rid="Fig6" ref-type="fig">6</xref>, we observed that Non-Plant was mistakenly for Dead plant material 2.5% of the time. The average frequency of Dead plant material in an image associated with a level 1 severity infection was 0.03, or approximately 3% of pixels classified as plant material. The standard deviation of our Dead pixel frequency from images associated with a level 1 infection was only 0.01, or 1%. It is believed that much of this remaining error in Dead classified pixels can be attributed to misclassification by the neural network; the confusion matrix seen in Fig. <xref rid="Fig6" ref-type="fig">6</xref> shows that 40% of the Dead pixels in the holdout set were misclassified as Non-Plant. Much of the Non-Plant was soil, which indicated that many of our Dead pixels were mistaken for soil or other background material. Despite the misclassification, the dead class showed a strong linear relationship with the visual ground truth score, as shown in Fig. <xref rid="Fig7" ref-type="fig">7</xref>. The averaged dead classified pixel fit demonstrated an <inline-formula id="IEq21"><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" id="M44"><mml:msup><mml:mi>r</mml:mi><mml:mn>2</mml:mn></mml:msup></mml:math></inline-formula> of 0.883 and an RMSE of 0.11 as detailed in Table <xref rid="Tab7" ref-type="table">7</xref>. This indicated that, while misclassification on the full Score Set may be higher than that of the test subset from the <italic>Neural Network Development Data Set</italic>, it was low enough and consistent enough for use in the scoring pipeline. This predictable behavior was reinforced by explicitly quantifying the Healthy class’s linearity, where the average fitting function had an <inline-formula id="IEq22"><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" id="M46"><mml:msup><mml:mi>r</mml:mi><mml:mn>2</mml:mn></mml:msup></mml:math></inline-formula> of 0.960 when predicting the visual score as seen in Table <xref rid="Tab7" ref-type="table">7</xref>. The RMSE values were on the order of magnitude of 0.1, indicating a variance of almost 10% of the pixels within an image versus the linear function’s prediction. Given that each severity score represents a range of infection severity, this range of possible outputs within a predicted score is to be expected. A high correlation coefficient between the visual score and the healthy number of pixels, with a correlation coefficient of − 0.81. It should be noted that the three normalized classification values are linearly dependent on one another; the healthy pixel value is equivalent to <inline-formula id="IEq23"><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" id="M48"><mml:mrow><mml:mn>1</mml:mn><mml:mo>-</mml:mo><mml:mi>δ</mml:mi><mml:mo>-</mml:mo><mml:mi>ω</mml:mi></mml:mrow></mml:math></inline-formula>, so while the Dead and Infected classes suffered from a lower correlation, the combined sum of the two provided a strong correlation to the visual severity score that was equivalent to the healthy class score.</p><p id="Par48">The overall pipeline had an RMSE of 0.996 visual scores when using individual images and 0.800 visual scores when using three images per plot. The average error for an image will be just under one level of severity on the 9-point scale, while imaging more of the plot and averaging the scores of several images can reduce the error to below one severity level, indicating the suitability of the pipeline.</p><p id="Par49">The pipeline includes an intermediary step to extract ratios of Healthy, Infected, and Dead plant regions. While the 9-point scale is used by NC State’s breeding program, other scales, such as that of Chiteka et al. have been historically applied [<xref rid="CR6" ref-type="bibr">6</xref>, <xref rid="CR11" ref-type="bibr">11</xref>, <xref rid="CR20" ref-type="bibr">20</xref>]. If the breeding community adopts a new scale, the neural network can still be used, requiring only adjustments to the scoring function to accommodate the new severity standard.</p></sec><sec id="Sec16" disp-level="2"><title>Predicted score over time</title><p id="Par50">The randomly sampled scores over time served as a demonstration of the pipeline’s scalability. Given this pipeline’s purpose as a tool for monitoring severity in peanuts, it is important to show that the pipeline can be used not just to score at the end of field trials (when scoring would normally be done), but also as a tool to monitor the severity’s progression over time, which impacts yield [<xref rid="CR5" ref-type="bibr">5</xref>]. Using the <italic>Temporal Data Set</italic>, the early season subset demonstrated a significantly lower maximum predicted score on individual images than the late season subset—a maximum score of 7.71 versus 9.32, respectively. A higher mean single image score was also seen, with the mean increasing from 3.87 to 4.29—an increase of 0.42 in the predicted visual score between the two subsets. The late-season subs<italic>et al</italic>so exhibited a higher standard deviation compared to the early-season data set of 2.18 versus 1.33, respectively, which indicated that the spread of predicted severities increased as the growing season progressed.</p><p id="Par51">While these observations aligned with our expectations, the limited number of sampling dates makes it difficult to draw definitive conclusions about the sensitivity of our pipeline to small changes in the severity of the infection over time. However, such a capability would allow for the detection of increasing severities over time and would enable recurring monitoring of leaf spot progression during field trials—offering a new dimension of analysis for peanut breeding programs. While future studies—which capture visual score data at different times of the year—will help to further justify this in the future, these results indicated that capturing a wider range of scores across a larger span of time should be possible using this pipeline.</p></sec></sec><sec id="Sec17" disp-level="1"><title>Conclusion</title><p id="Par52">This study successfully achieved the main objective of developing an automated peanut leaf spot severity scoring pipeline to augment the subjective visual severity scale commonly used in peanut breeding programs. By employing a ResNet50 architecture, a machine learning model was developed that provides a reliable method to measure the infected and defoliating regions of peanut, allowing for an objective determination of infection severity. The significance of our peanut scoring pipeline lies in its potential to overcome the limitations of human subjectivity and variability associated with manual scoring methods. By automating the scoring process, we ensure consistent and reliable results across different field trials, facilitating collaboration and enabling researchers to compare findings accurately. This pipeline serves as a valuable tool for peanut breeders and scientists, offering a standardized approach to scoring and monitoring leaf spot severity in peanuts.</p><p id="Par53">Moreover, our automated system opens avenues for future collaboration and research. By eliminating the influence of human subjectivity, researchers can confidently compare results, exchange data, and validate findings across different breeding programs. This promotes transparency and efficiency in peanut research, ultimately contributing to the development of improved peanut varieties and disease management strategies.</p><p id="Par54">In conclusion, our peanut scoring pipeline provides a reliable and objective approach to assess leaf spot severity in peanuts. By integrating automated image analysis and machine learning techniques, we offer a valuable tool for peanut breeders and researchers, improving the efficiency, consistency, and accuracy of scoring processes. The pipeline has the potential to revolutionize peanut breeding programs and contribute to advancements in disease management strategies, ultimately benefiting the agricultural community and ensuring the sustainable production of disease resistant peanut.</p></sec><sec id="notes1" disp-level="1"><title>Author contributions</title><p>J. C. Larsen performed the data collection, image masking, network training, and model development. J. C. Dunne provided the ground truth scores of infection severity. C. Newman and R. Austin provided detailed overviews of the field trials and system management. M. W. Kudenov conceived the idea and performed initial planning of the experiments and pipeline.</p></sec><sec id="notes2" disp-level="1"><title>Funding</title><p>This work was supported by the United States of America Department of Agriculture Agriculture National Institute of Food and Agriculture Agriculture and Food Research Initiative grant [2021-67013-33832].</p></sec><sec id="notes3" disp-level="1"><title>Data availability</title><p>The datasets generated and/or analysed during the current study are available in the Automated Leaf Spot Scoring GitHub repository: <ext-link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="https://github.ncsu.edu/jclarse2/AutomatedLeafSpotScoring" ext-link-type="uri">https://github.ncsu.edu/jclarse2/AutomatedLeafSpotScoring</ext-link>.</p></sec><sec id="notes4" disp-level="1"><title>Materials availability</title><p>Not applicable.</p></sec><sec id="notes5" disp-level="1"><title>Declarations</title><sec id="FPar2" disp-level="2"><title>Ethics approval and consent to participate</title><p id="Par55">Not applicable.</p></sec><sec id="FPar3" disp-level="2"><title>Consent for publication</title><p id="Par56">Not applicable.</p></sec><sec id="FPar1" disp-level="2"><title>Competing interests</title><p id="Par57">The author(s) declare(s) that there is no conflict of interest regarding the publication of this article.</p></sec></sec><sec id="fn-group1" sec-type="fn-group" disp-level="1"><title>Footnotes</title><fn-group><fn id="Fn1"><label>1</label><p id="Par58"><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="https://github.ncsu.edu/jclarse2/AutomatedLeafSpotScoring" ext-link-type="uri">GitHub Repository containing all training data</ext-link>.</p></fn><fn id="fn2"><p><bold>Publisher's Note</bold></p><p>Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.</p></fn></fn-group></sec><sec id="Bib1" sec-type="ref-list" disp-level="1"><title>References</title><sec id="Bib1_sec2" disp-level="2"><ref-list><ref id="CR1"><label>1.</label><mixed-citation id="mc-CR1"><named-content content-type="citation-string">Mekonnen MM, Hoekstra AY. The green, blue and grey water footprint of crops and derived crop products. Hydrol Earth Syst Sci. 2011;15:1577–600.</named-content><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="google-scholar" xlink:href="Mekonnen MM, Hoekstra AY. The green, blue and grey water footprint of crops and derived crop products. Hydrol Earth Syst Sci. 2011;15:1577–600."/></mixed-citation></ref><ref id="CR2"><label>2.</label><mixed-citation><named-content content-type="citation-string">Acreage. 2021. <ext-link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="https://www.nass.usda.gov/Publications/Todays_Reports/reports/acrg0621.pdf" ext-link-type="uri">https://www.nass.usda.gov/Publications/Todays_Reports/reports/acrg0621.pdf</ext-link>. Accessed 02 Nov 2024.</named-content></mixed-citation></ref><ref id="CR3"><label>3.</label><mixed-citation id="mc-CR3"><named-content content-type="citation-string">Boote KJ, Jones JW, Smerage GH, Barfield CS, Berger RD. Photosynthesis of peanut canopies as affected by leafspot and artificial defoliation. Agron J. 1980;72:247–52.</named-content><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="google-scholar" xlink:href="Boote KJ, Jones JW, Smerage GH, Barfield CS, Berger RD. Photosynthesis of peanut canopies as affected by leafspot and artificial defoliation. Agron J. 1980;72:247–52."/></mixed-citation></ref><ref id="CR4"><label>4.</label><mixed-citation id="mc-CR4"><named-content content-type="citation-string">Kishore GK, Pande S, Podile AR. Biological control of late leaf spot of peanut (<italic>Arachis hypogaea</italic>) with Chitinolytic Bacteria. Phytopathology®. 2005;95:1157–65.
</named-content><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="doi" xlink:href="10.1094/PHYTO-95-1157"/><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="pmid" xlink:href="18943468"/><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="google-scholar" xlink:href="Kishore GK, Pande S, Podile AR. Biological control of late leaf spot of peanut (Arachis hypogaea) with Chitinolytic Bacteria. Phytopathology®. 2005;95:1157–65."/></mixed-citation></ref><ref id="CR5"><label>5.</label><mixed-citation id="mc-CR5"><named-content content-type="citation-string">Anco DJ, Thomas JS, Jordan DL, et al. Peanut yield loss in the presence of defoliation caused by late or early leaf spot. Plant Disease. 2020;104:1390–9.
</named-content><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="doi" xlink:href="10.1094/PDIS-11-19-2286-RE"/><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="pmid" xlink:href="32223639"/><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="google-scholar" xlink:href="Anco DJ, Thomas JS, Jordan DL, et al. Peanut yield loss in the presence of defoliation caused by late or early leaf spot. Plant Disease. 2020;104:1390–9."/></mixed-citation></ref><ref id="CR6"><label>6.</label><mixed-citation id="mc-CR6"><named-content content-type="citation-string">Chiteka ZA, Gorbet DW, Shokes FM, Kucharek TA, Knauft DA. Components of resistance to late leafspot in peanut. I. Levels and variability—implications for selection1. Peanut Sci. 1988;15:25–30.</named-content><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="google-scholar" xlink:href="Chiteka ZA, Gorbet DW, Shokes FM, Kucharek TA, Knauft DA. Components of resistance to late leafspot in peanut. I. Levels and variability—implications for selection1. Peanut Sci. 1988;15:25–30."/></mixed-citation></ref><ref id="CR7"><label>7.</label><mixed-citation><named-content content-type="citation-string">Newman CS, Andres RJ, Youngblood RC, Campbell JD, Simpson SA, Cannon SB, Scheffler BE, Oakley AT,
Hulse-Kemp AM, Dunne JC. Initiation of genomics-assisted breeding in Virginia-type peanuts through
the generation of a de novo reference genome and informative markers. Frontiers in Plant Science.
2023;13:1073542</named-content><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="doi" xlink:href="10.3389/fpls.2022.1073542"/><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="pmcid" xlink:href="PMC9911918"/><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="pmid" xlink:href="36777543"/></mixed-citation></ref><ref id="CR8"><label>8.</label><mixed-citation><named-content content-type="citation-string">Bhat RS, Venkatesh, Jadhav MP, Patil PV, and Shirasawa K. Genomics-Assisted breeding for resistance to leaf spots and rust diseases in peanut. In: Gosal SS, Wani SH, editors. Accelerated plant breeding, Volume 4: oil crops. Cham: Springer International Publishing, 2022:239–78. 10.1007/978-3-030-81107-5_8. </named-content></mixed-citation></ref><ref id="CR9"><label>9.</label><mixed-citation id="mc-CR9"><named-content content-type="citation-string">Kankam F, Akpatsu IB, Tengey TK. Leaf spot disease of groundnut: a review of existing research on management strategies. Cogent Food Agric. 2022;8:2118650.</named-content><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="google-scholar" xlink:href="Kankam F, Akpatsu IB, Tengey TK. Leaf spot disease of groundnut: a review of existing research on management strategies. Cogent Food Agric. 2022;8:2118650."/></mixed-citation></ref><ref id="CR10"><label>10.</label><mixed-citation id="mc-CR10"><named-content content-type="citation-string">Chen T, Zhang J, Chen Y, Wan S, Zhang L. Detection of peanut leaf spots disease using canopy hyperspectral reflectance. Comput Electron Agric. 2019;156:677–83.</named-content><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="google-scholar" xlink:href="Chen T, Zhang J, Chen Y, Wan S, Zhang L. Detection of peanut leaf spots disease using canopy hyperspectral reflectance. Comput Electron Agric. 2019;156:677–83."/></mixed-citation></ref><ref id="CR11"><label>11.</label><mixed-citation><named-content content-type="citation-string">Subrahmanyam P, McDonald D, Waliyar F, et al. Screening methods and sources of resistance to rust and late leaf spot of groundnut. Information Bulletin no. 47. International Crops Research Institute for the Semi-Arid Tropics, 1995.</named-content></mixed-citation></ref><ref id="CR12"><label>12.</label><mixed-citation id="mc-CR12"><named-content content-type="citation-string">Lamon S, Chu Y, Guimaraes LA, et al. Characterization of peanut lines with interspecific introgressions conferring late leaf spot resistance. Crop Sci. 2021;61:1724–38.</named-content><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="google-scholar" xlink:href="Lamon S, Chu Y, Guimaraes LA, et al. Characterization of peanut lines with interspecific introgressions conferring late leaf spot resistance. Crop Sci. 2021;61:1724–38."/></mixed-citation></ref><ref id="CR13"><label>13.</label><mixed-citation id="mc-CR13"><named-content content-type="citation-string">Cantonwine EG, Culbreath AK, Holbrook CC, Gorbet DW. Disease progress of early leaf spot and components of resistance to Cercospora arachidicola and Cercosporidium personatum in runner-type peanut cultivars. Peanut Sci. 2008;35:1–10.</named-content><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="google-scholar" xlink:href="Cantonwine EG, Culbreath AK, Holbrook CC, Gorbet DW. Disease progress of early leaf spot and components of resistance to Cercospora arachidicola and Cercosporidium personatum in runner-type peanut cultivars. Peanut Sci. 2008;35:1–10."/></mixed-citation></ref><ref id="CR14"><label>14.</label><mixed-citation id="mc-CR14"><named-content content-type="citation-string">Gorbet DW, Tillman BL. Registration of ‘DP-1’ peanut. J Plant Regis. 2008;2:200–4.</named-content><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="google-scholar" xlink:href="Gorbet DW, Tillman BL. Registration of ‘DP-1’ peanut. J Plant Regis. 2008;2:200–4."/></mixed-citation></ref><ref id="CR15"><label>15.</label><mixed-citation id="mc-CR15"><named-content content-type="citation-string">Jordan BS, Culbreath AK, Brenneman TB, Kemerait RC, Branch WD. Late leaf spot severity and yield of new peanut breeding lines and cultivars grown without fungicides. Plant Dis. 2017;101:1843–50.
</named-content><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="doi" xlink:href="10.1094/PDIS-02-17-0165-RE"/><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="pmid" xlink:href="30677310"/><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="google-scholar" xlink:href="Jordan BS, Culbreath AK, Brenneman TB, Kemerait RC, Branch WD. Late leaf spot severity and yield of new peanut breeding lines and cultivars grown without fungicides. Plant Dis. 2017;101:1843–50."/></mixed-citation></ref><ref id="CR16"><label>16.</label><mixed-citation id="mc-CR16"><named-content content-type="citation-string">Singh MP, Erickson JE, Boote KJ, Jones JW, Tillman BL, Bruggen AHC. Using the CSM-CROPGRO-peanut model to simulate late leaf spot effects on peanut cultivars of differing resistance. Agron J. 2013;105:1307–16.</named-content><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="google-scholar" xlink:href="Singh MP, Erickson JE, Boote KJ, Jones JW, Tillman BL, Bruggen AHC. Using the CSM-CROPGRO-peanut model to simulate late leaf spot effects on peanut cultivars of differing resistance. Agron J. 2013;105:1307–16."/></mixed-citation></ref><ref id="CR17"><label>17.</label><mixed-citation><named-content content-type="citation-string">Zhang JC, Pu Rl, Wang Jh, Huang Wj, Yuan L, Luo Jh. Detecting powdery mildew of winter wheat using leaf level hyperspectral measurements. Comput Electron Agric. 2012;85:13–23.</named-content></mixed-citation></ref><ref id="CR18"><label>18.</label><mixed-citation id="mc-CR18"><named-content content-type="citation-string">Huang W, Lamb DW, Niu Z, Zhang Y, Liu L, Wang J. Identification of yellow rust in wheat using in-situ spectral reflectance measurements and airborne hyperspectral imaging. Precis Agric. 2007;8:187–97.</named-content><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="google-scholar" xlink:href="Huang W, Lamb DW, Niu Z, Zhang Y, Liu L, Wang J. Identification of yellow rust in wheat using in-situ spectral reflectance measurements and airborne hyperspectral imaging. Precis Agric. 2007;8:187–97."/></mixed-citation></ref><ref id="CR19"><label>19.</label><mixed-citation id="mc-CR19"><named-content content-type="citation-string">Mahlein AK, Steiner U, Dehne HW, Oerke EC. Spectral signatures of sugar beet leaves for the detection and differentiation of diseases. Precis Agric. 2010;11:413–31.</named-content><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="google-scholar" xlink:href="Mahlein AK, Steiner U, Dehne HW, Oerke EC. Spectral signatures of sugar beet leaves for the detection and differentiation of diseases. Precis Agric. 2010;11:413–31."/></mixed-citation></ref><ref id="CR20"><label>20.</label><mixed-citation><named-content content-type="citation-string">Newman CS. Enabling data-driven breeding for leaf-spot resistant virginia-type peanuts [dissertation].
Raleigh: NC State University; 2024.</named-content></mixed-citation></ref><ref id="CR21"><label>21.</label><mixed-citation><named-content content-type="citation-string">Kim TY, Park S, Lim CK, Choi JH, An CH, Song LH, Kim DN. Deep Learning-Based Detection of Defects
in Wafer Buffer Zone During Semiconductor Packaging Process. Multiscale Science and Engineering.
2024:1-8.</named-content></mixed-citation></ref><ref id="CR22"><label>22.</label><mixed-citation><named-content content-type="citation-string">Jiang S, Tang C, Yang J, Li H, Zhang T, Li R, Wang D, Wu J. TSCB-Net: transformer-enhanced semantic
segmentation of surface damage of concrete bridges. Structure and Infrastructure Engineering. 2024:1-0.</named-content></mixed-citation></ref><ref id="CR23"><label>23.</label><mixed-citation id="mc-CR23"><named-content content-type="citation-string">Nag MK, Koley S, Sadhu AK, et al. A computer-aided tool for automatic volume estimation of hematoma using non-contrast brain CT scans. Biomed Phys Eng Exp. 2023;9: 045011.</named-content><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="doi" xlink:href="10.1088/2057-1976/acd256"/><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="pmid" xlink:href="37141864"/><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="google-scholar" xlink:href="Nag MK, Koley S, Sadhu AK, et al. A computer-aided tool for automatic volume estimation of hematoma using non-contrast brain CT scans. Biomed Phys Eng Exp. 2023;9: 045011."/></mixed-citation></ref><ref id="CR24"><label>24.</label><mixed-citation id="mc-CR24"><named-content content-type="citation-string">Ferguson M, Ak R, Lee YTT, Law KH. Detection and segmentation of manufacturing defects with convolutional neural networks and transfer learning. Smart Sustain Manuf Syst. 2018;2:137–64.</named-content><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="doi" xlink:href="10.1520/SSMS20180033"/><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="pmcid" xlink:href="PMC6512995"/><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="pmid" xlink:href="31093604"/><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="google-scholar" xlink:href="Ferguson M, Ak R, Lee YTT, Law KH. Detection and segmentation of manufacturing defects with convolutional neural networks and transfer learning. Smart Sustain Manuf Syst. 2018;2:137–64."/></mixed-citation></ref><ref id="CR25"><label>25.</label><mixed-citation id="mc-CR25"><named-content content-type="citation-string">Sladojevic S, Arsenovic M, Anderla A, Culibrk D, Stefanovic D. Deep neural networks based recognition of plant diseases by leaf image classification. Comput Intell Neurosci. 2016;2016:1–11.</named-content><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="doi" xlink:href="10.1155/2016/3289801"/><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="pmcid" xlink:href="PMC4934169"/><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="pmid" xlink:href="27418923"/><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="google-scholar" xlink:href="Sladojevic S, Arsenovic M, Anderla A, Culibrk D, Stefanovic D. Deep neural networks based recognition of plant diseases by leaf image classification. Comput Intell Neurosci. 2016;2016:1–11."/></mixed-citation></ref><ref id="CR26"><label>26.</label><mixed-citation id="mc-CR26"><named-content content-type="citation-string">Ferentinos KP. Deep learning models for plant disease detection and diagnosis. Comput Electron Agric. 2018;145:311–8.</named-content><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="google-scholar" xlink:href="Ferentinos KP. Deep learning models for plant disease detection and diagnosis. Comput Electron Agric. 2018;145:311–8."/></mixed-citation></ref><ref id="CR27"><label>27.</label><mixed-citation id="mc-CR27"><named-content content-type="citation-string">Toda Y, Okura F. How convolutional neural networks diagnose plant disease. Plant Phenom. 2019;2019:2019/9237136.</named-content><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="doi" xlink:href="10.34133/2019/9237136"/><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="pmcid" xlink:href="PMC7706313"/><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="pmid" xlink:href="33313540"/><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="google-scholar" xlink:href="Toda Y, Okura F. How convolutional neural networks diagnose plant disease. Plant Phenom. 2019;2019:2019/9237136."/></mixed-citation></ref><ref id="CR28"><label>28.</label><mixed-citation id="mc-CR28"><named-content content-type="citation-string">McDonald SC, Buck J, Li Z. Automated, image-based disease measurement for phenotyping resistance to soybean frogeye leaf spot. Plant Methods. 2022;18:103.
</named-content><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="doi" xlink:href="10.1186/s13007-022-00934-7"/><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="pmcid" xlink:href="PMC9382788"/><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="pmid" xlink:href="35974392"/><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="google-scholar" xlink:href="McDonald SC, Buck J, Li Z. Automated, image-based disease measurement for phenotyping resistance to soybean frogeye leaf spot. Plant Methods. 2022;18:103."/></mixed-citation></ref><ref id="CR29"><label>29.</label><mixed-citation id="mc-CR29"><named-content content-type="citation-string">Liu L, Li G, Du Y, et al. CS-net: Conv-simpleformer network for agricultural image segmentation. Pattern Recogn. 2024;147: 110140.</named-content><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="google-scholar" xlink:href="Liu L, Li G, Du Y, et al. CS-net: Conv-simpleformer network for agricultural image segmentation. Pattern Recogn. 2024;147: 110140."/></mixed-citation></ref><ref id="CR30"><label>30.</label><mixed-citation id="mc-CR30"><named-content content-type="citation-string">Yao C, Yang Z, Li P, et al. Two-stage detection algorithm for plum leaf disease and severity assessment based on deep learning. Agronomy. 2024;14:1589.</named-content><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="google-scholar" xlink:href="Yao C, Yang Z, Li P, et al. Two-stage detection algorithm for plum leaf disease and severity assessment based on deep learning. Agronomy. 2024;14:1589."/></mixed-citation></ref><ref id="CR31"><label>31.</label><mixed-citation id="mc-CR31"><named-content content-type="citation-string">Chapu I, Chandel A, Sie EK, Okello DK, Oteng-Frimpong R, Okello RC, Hoisington D, Balota M.
Comparing Regression and Classification Models to Estimate Leaf Spot Disease in Peanut (Arachis
hypogaea L.) for Implementation in Breeding Selection. Agronomy. 2024;14(5):947.</named-content><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="google-scholar" xlink:href="Chapu I, Chandel A, Sie EK, Okello DK, Oteng-Frimpong R, Okello RC, Hoisington D, Balota M. Comparing Regression and Classification Models to Estimate Leaf Spot Disease in Peanut (Arachis hypogaea L.) for Implementation in Breeding Selection. Agronomy. 2024;14(5):947."/></mixed-citation></ref><ref id="CR32"><label>32.</label><mixed-citation id="mc-CR32"><named-content content-type="citation-string">Lin Y, Wang L, Chen T, Liu Y, Zhang L. Monitoring system for peanut leaf disease based on a lightweight deep learning model. Comput Electron Agric. 2024;222: 109055.</named-content><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="google-scholar" xlink:href="Lin Y, Wang L, Chen T, Liu Y, Zhang L. Monitoring system for peanut leaf disease based on a lightweight deep learning model. Comput Electron Agric. 2024;222: 109055."/></mixed-citation></ref><ref id="CR33"><label>33.</label><mixed-citation><named-content content-type="citation-string">Borlinghaus P, Jung J, Odemer R. Introducing pollenyzer: An app for automatic determination of colour
diversity for corbicular pollen loads. Smart Agricultural Technology. 2023;5:100263.</named-content></mixed-citation></ref><ref id="CR34"><label>34.</label><mixed-citation id="mc-CR34"><named-content content-type="citation-string">Dorman SJ, Kudenov MW, Lytle AJ, Griffith EH, Huseth AS. Computer vision for detecting field-evolved lepidopteran resistance to Bt maize. Pest Manag Sci. 2021;77:5236–45.
</named-content><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="doi" xlink:href="10.1002/ps.6566"/><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="pmid" xlink:href="34310008"/><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="google-scholar" xlink:href="Dorman SJ, Kudenov MW, Lytle AJ, Griffith EH, Huseth AS. Computer vision for detecting field-evolved lepidopteran resistance to Bt maize. Pest Manag Sci. 2021;77:5236–45."/></mixed-citation></ref><ref id="CR35"><label>35.</label><mixed-citation id="mc-CR35"><named-content content-type="citation-string">Shadrin D, Menshchikov A, Somov A, Bornemann G, Hauslage J, Fedorov M. Enabling precision agriculture through embedded sensing with artificial intelligence. IEEE Trans Instrum Meas. 2019;69:4103–13.</named-content><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="google-scholar" xlink:href="Shadrin D, Menshchikov A, Somov A, Bornemann G, Hauslage J, Fedorov M. Enabling precision agriculture through embedded sensing with artificial intelligence. IEEE Trans Instrum Meas. 2019;69:4103–13."/></mixed-citation></ref><ref id="CR36"><label>36.</label><mixed-citation><named-content content-type="citation-string">He K, Zhang X, Ren S, Sun J. Deep residual learning for image recognition. 2015. <ext-link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://arxiv.org/abs/1512.03385" ext-link-type="uri">arXiv:1512.03385</ext-link> [cs.CV].</named-content></mixed-citation></ref><ref id="CR37"><label>37.</label><mixed-citation><named-content content-type="citation-string">Howard AG, Zhu M, Chen B, et al. MobileNets: efficient convolutional neural networks for mobile vision applications. 2017. <ext-link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://arxiv.org/abs/1704.04861" ext-link-type="uri">arXiv:1704.04861</ext-link> [cs.CV].</named-content></mixed-citation></ref><ref id="CR38"><label>38.</label><mixed-citation><named-content content-type="citation-string">Labelbox. Labelbox. <ext-link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="https://labelbox.com/" ext-link-type="uri">https://labelbox.com/</ext-link>. 2023.</named-content></mixed-citation></ref><ref id="CR39"><label>39.</label><mixed-citation><named-content content-type="citation-string">Ronneberger O, Fischer P, Brox T. U-Net: convolutional networks for biomedical image segmentation. In: Navab N, Hornegger J, Wells WM, Frangi AF, editors. Medical image computing and computer-assisted intervention—MICCAI 2015. Vol. 9351. Series Title: Lecture Notes in Computer Science. Cham: Springer International Publishing, 2015:234–41. 10.1007/978-3-319-24574-4_28.</named-content></mixed-citation></ref><ref id="CR40"><label>40.</label><mixed-citation><named-content content-type="citation-string">Chen LC, Zhu Y, Papandreou G, Schroff F, Adam H. Encoder-decoder with atrous separable convolution for semantic image segmentation. 2018. <ext-link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://arxiv.org/abs/1802.02611" ext-link-type="uri">arXiv:1802.02611</ext-link> [cs.CV].</named-content></mixed-citation></ref><ref id="CR41"><label>41.</label><mixed-citation><named-content content-type="citation-string">Kingma DP, Ba J. Adam: a method for stochastic optimization. 2017. <ext-link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://arxiv.org/abs/1412.6980" ext-link-type="uri">arXiv:1412.6980</ext-link> [cs.LG]</named-content></mixed-citation></ref><ref id="CR42"><label>42.</label><mixed-citation id="mc-CR42"><named-content content-type="citation-string">Shoaib M, Hussain T, Shah B, et al. Deep learning-based segmentation and classification of leaf images for detection of tomato plant disease. Front Plant Sci. 2022;13:1031748.
</named-content><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="doi" xlink:href="10.3389/fpls.2022.1031748"/><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="pmcid" xlink:href="PMC9585275"/><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="pmid" xlink:href="36275583"/><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="google-scholar" xlink:href="Shoaib M, Hussain T, Shah B, et al. Deep learning-based segmentation and classification of leaf images for detection of tomato plant disease. Front Plant Sci. 2022;13:1031748."/></mixed-citation></ref><ref id="CR43"><label>43.</label><mixed-citation id="mc-CR43"><named-content content-type="citation-string">Borhani Y, Khoramdel J, Najafi E. A deep learning based approach for automated plant disease classification using vision transformer. Sci Rep. 2022;12:11554.
</named-content><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="doi" xlink:href="10.1038/s41598-022-15163-0"/><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="pmcid" xlink:href="PMC9262884"/><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="pmid" xlink:href="35798775"/><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="google-scholar" xlink:href="Borhani Y, Khoramdel J, Najafi E. A deep learning based approach for automated plant disease classification using vision transformer. Sci Rep. 2022;12:11554."/></mixed-citation></ref><ref id="CR44"><label>44.</label><mixed-citation id="mc-CR44"><named-content content-type="citation-string">Natesan B, Singaravelan A, Hsu JL, Lin YH, Lei B, Liu CM. Channel-spatial segmentation network for classifying leaf diseases. Agriculture. 2022;12:1886.</named-content><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="google-scholar" xlink:href="Natesan B, Singaravelan A, Hsu JL, Lin YH, Lei B, Liu CM. Channel-spatial segmentation network for classifying leaf diseases. Agriculture. 2022;12:1886."/></mixed-citation></ref><ref id="CR45"><label>45.</label><mixed-citation id="mc-CR45"><named-content content-type="citation-string">Bhujel A, Khan F, Basak JK, et al. Detection of gray mold disease and its severity on strawberry using deep learning networks. J Plant Dis Protect. 2022;129:579–92.</named-content><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="google-scholar" xlink:href="Bhujel A, Khan F, Basak JK, et al. Detection of gray mold disease and its severity on strawberry using deep learning networks. J Plant Dis Protect. 2022;129:579–92."/></mixed-citation></ref><ref id="CR46"><label>46.</label><mixed-citation id="mc-CR46"><named-content content-type="citation-string">Pal A, Kumar V. AgriDet: plant leaf disease severity classification using agriculture detection framework. Eng Appl Artif Intell. 2023;119: 105754.</named-content><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="google-scholar" xlink:href="Pal A, Kumar V. AgriDet: plant leaf disease severity classification using agriculture detection framework. Eng Appl Artif Intell. 2023;119: 105754."/></mixed-citation></ref><ref id="CR47"><label>47.</label><mixed-citation><named-content content-type="citation-string">Lawrence S, Burns I, Back A, Tsoi AC, Giles CL. Neural network classification and prior class probabilities. In: Neural networks: tricks of the trade. Springer, 2002:299–313.</named-content></mixed-citation></ref><ref id="CR48"><label>48.</label><mixed-citation id="mc-CR48"><named-content content-type="citation-string">Widrow B, Kollár I. Quantization noise: roundoff error in digital computation, signal processing, control, and communications. Cambridge: Cambridge University Press; 2008.</named-content><ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="google-scholar" xlink:href="Widrow B, Kollár I. Quantization noise: roundoff error in digital computation, signal processing, control, and communications. Cambridge: Cambridge University Press; 2008."/></mixed-citation></ref><ref id="CR49"><label>49.</label><mixed-citation><named-content content-type="citation-string">Costa LdF. Further generalizations of the Jaccard index. arXiv preprint <ext-link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://arxiv.org/abs/2110.09619" ext-link-type="uri">arXiv:2110.09619</ext-link> 2021.</named-content></mixed-citation></ref><ref id="CR50"><label>50.</label><mixed-citation><named-content content-type="citation-string">HACIEFENDİOĞLU K, Özgan K, Adanur S, ALTUNIŞIK A, Demirer B, GÜNAYDIN M. Estimation of Damage
Levels in Masonry Structures Following Earthquake Impact Using Deep Learning-based Segmentation
Method. Journal of Earthquake and Tsunami. 2024;18(2).</named-content></mixed-citation></ref></ref-list></sec></sec><sec id="_ad93_" xml:lang="en" sec-type="associated-data" disp-level="1"><title>Associated Data</title><sec id="_adda93_" xml:lang="en" sec-type="data-availability-statement" disp-level="2"><title>Data Availability Statement</title><p>The datasets generated and/or analysed during the current study are available in the Automated Leaf Spot Scoring GitHub repository: <ext-link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="https://github.ncsu.edu/jclarse2/AutomatedLeafSpotScoring" ext-link-type="uri">https://github.ncsu.edu/jclarse2/AutomatedLeafSpotScoring</ext-link>.</p><p>Not applicable.</p></sec></sec></body></article>