<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//TaxonX//DTD Taxonomic Treatment Publishing DTD v0 20100105//EN" "https://neobiota.pensoft.net/nlm/tax-treatment-NS0.dtd">
<article xmlns:tp="http://www.plazi.org/taxpub" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" article-type="research-article" xml:lang="en">
  <front>
    <journal-meta>
      <journal-id journal-id-type="publisher-id">5</journal-id>
      <journal-id journal-id-type="index">urn:lsid:arphahub.com:pub:8D1BC1DD-8175-5933-B147-C839B202D5BA</journal-id>
      <journal-id journal-id-type="aggregator">urn:lsid:zoobank.org:pub:C132FA7C-A22D-4474-AAAF-B7A6889D0FF9</journal-id>
      <journal-title-group>
        <journal-title xml:lang="en">NeoBiota</journal-title>
        <abbrev-journal-title xml:lang="en">NB</abbrev-journal-title>
      </journal-title-group>
      <issn pub-type="ppub">1619-0033</issn>
      <issn pub-type="epub">1314-2488</issn>
      <publisher>
        <publisher-name>Pensoft Publishers</publisher-name>
      </publisher>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.3897/neobiota.105.180959</article-id>
      <article-id pub-id-type="publisher-id">180959</article-id>
      <article-categories>
        <subj-group subj-group-type="heading">
          <subject>Methods</subject>
        </subj-group>
        <subj-group subj-group-type="biological_taxon">
          <subject>Arthropoda</subject>
          <subject>Buprestidae</subject>
          <subject>Coleoptera</subject>
          <subject>Hexapoda</subject>
          <subject>Insecta</subject>
        </subj-group>
        <subj-group subj-group-type="scientific_subject">
          <subject>Biological Invasions</subject>
          <subject>Data analysis &amp; Modelling</subject>
          <subject>Imaging and Multimedia</subject>
        </subj-group>
        <subj-group subj-group-type="geological_era">
          <subject>Cenozoic</subject>
          <subject>Neogene</subject>
        </subj-group>
        <subj-group subj-group-type="geographical_area">
          <subject>Eastern Europe</subject>
          <subject>Europe</subject>
          <subject>North America</subject>
          <subject>Southern Europe and Mediterranean</subject>
          <subject>USA and Canada</subject>
          <subject>Western Europe</subject>
        </subj-group>
      </article-categories>
      <title-group>
        <article-title>Image-based recognition using advanced neural networks can aid surveillance of <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">Agrilus</tp:taxon-name-part></tp:taxon-name></italic> jewel beetles</article-title>
      </title-group>
      <contrib-group content-type="authors">
        <contrib contrib-type="author" corresp="yes">
          <name name-style="western">
            <surname>Caruso</surname>
            <given-names>Valerio</given-names>
          </name>
          <email xlink:type="simple">valerio.caruso@unipd.it</email>
          <uri content-type="orcid">https://orcid.org/0009-0006-9421-7447</uri>
          <xref ref-type="aff" rid="A1">1</xref>
          <role content-type="http://credit.niso.org/contributor-roles/conceptualization/">Conceptualization</role>
          <role content-type="http://credit.niso.org/contributor-roles/writing-original-draft/">Writing - original draft</role>
          <role content-type="http://credit.niso.org/contributor-roles/data-curation/">Data curation</role>
          <role content-type="http://credit.niso.org/contributor-roles/formal-analysis/">Formal analysis</role>
          <role content-type="http://credit.niso.org/contributor-roles/investigation/">Investigation</role>
          <role content-type="http://credit.niso.org/contributor-roles/methodology/">Methodology</role>
          <role content-type="http://credit.niso.org/contributor-roles/visualization/">Visualization</role>
        </contrib>
        <contrib contrib-type="author" corresp="yes">
          <name name-style="western">
            <surname>Shirali</surname>
            <given-names>Hossein</given-names>
          </name>
          <email xlink:type="simple">hossein.shirali@kit.edu</email>
          <uri content-type="orcid">https://orcid.org/0009-0005-6884-4263</uri>
          <xref ref-type="aff" rid="A2">2</xref>
          <role content-type="http://credit.niso.org/contributor-roles/writing-original-draft/">Writing - original draft</role>
          <role content-type="http://credit.niso.org/contributor-roles/formal-analysis/">Formal analysis</role>
          <role content-type="http://credit.niso.org/contributor-roles/investigation/">Investigation</role>
          <role content-type="http://credit.niso.org/contributor-roles/methodology/">Methodology</role>
          <role content-type="http://credit.niso.org/contributor-roles/visualization/">Visualization</role>
        </contrib>
        <contrib contrib-type="author" corresp="no">
          <name name-style="western">
            <surname>Bouget</surname>
            <given-names>Christophe</given-names>
          </name>
          <uri content-type="orcid">https://orcid.org/0000-0002-5206-7560</uri>
          <xref ref-type="aff" rid="A3">3</xref>
          <role content-type="http://credit.niso.org/contributor-roles/writing-review-editing/">Writing - review and editing</role>
        </contrib>
        <contrib contrib-type="author" corresp="no">
          <name name-style="western">
            <surname>Cerretti</surname>
            <given-names>Pierfilippo</given-names>
          </name>
          <uri content-type="orcid">https://orcid.org/0000-0002-9204-3352</uri>
          <xref ref-type="aff" rid="A4">4</xref>
          <role content-type="http://credit.niso.org/contributor-roles/conceptualization/">Conceptualization</role>
          <role content-type="http://credit.niso.org/contributor-roles/writing-original-draft/">Writing - original draft</role>
          <role content-type="http://credit.niso.org/contributor-roles/funding-acquisition/">Funding acquisition</role>
          <role content-type="http://credit.niso.org/contributor-roles/supervision/">Supervision</role>
        </contrib>
        <contrib contrib-type="author" corresp="no">
          <name name-style="western">
            <surname>Curletti</surname>
            <given-names>Gianfranco</given-names>
          </name>
          <xref ref-type="aff" rid="A5">5</xref>
          <role content-type="http://credit.niso.org/contributor-roles/writing-review-editing/">Writing - review and editing</role>
          <role content-type="http://credit.niso.org/contributor-roles/data-curation/">Data curation</role>
        </contrib>
        <contrib contrib-type="author" corresp="no">
          <name name-style="western">
            <surname>de Groot</surname>
            <given-names>Maarten</given-names>
          </name>
          <uri content-type="orcid">https://orcid.org/0000-0002-5721-6676</uri>
          <xref ref-type="aff" rid="A6">6</xref>
          <role content-type="http://credit.niso.org/contributor-roles/writing-review-editing/">Writing - review and editing</role>
          <role content-type="http://credit.niso.org/contributor-roles/resources/">Resources</role>
        </contrib>
        <contrib contrib-type="author" corresp="no">
          <name name-style="western">
            <surname>Groznik</surname>
            <given-names>Eva</given-names>
          </name>
          <uri content-type="orcid">https://orcid.org/0009-0006-9647-2871</uri>
          <xref ref-type="aff" rid="A6">6</xref>
          <xref ref-type="aff" rid="A7">7</xref>
          <role content-type="http://credit.niso.org/contributor-roles/writing-review-editing/">Writing - review and editing</role>
          <role content-type="http://credit.niso.org/contributor-roles/resources/">Resources</role>
        </contrib>
        <contrib contrib-type="author" corresp="no">
          <name name-style="western">
            <surname>Gutowski</surname>
            <given-names>Jerzy M.</given-names>
          </name>
          <xref ref-type="aff" rid="A8">8</xref>
          <role content-type="http://credit.niso.org/contributor-roles/writing-review-editing/">Writing - review and editing</role>
          <role content-type="http://credit.niso.org/contributor-roles/resources/">Resources</role>
        </contrib>
        <contrib contrib-type="author" corresp="no">
          <name name-style="western">
            <surname>Pylatiuk</surname>
            <given-names>Christian</given-names>
          </name>
          <uri content-type="orcid">https://orcid.org/0000-0002-3507-7134</uri>
          <xref ref-type="aff" rid="A2">2</xref>
          <role content-type="http://credit.niso.org/contributor-roles/writing-review-editing/">Writing - review and editing</role>
          <role content-type="http://credit.niso.org/contributor-roles/methodology/">Methodology</role>
          <role content-type="http://credit.niso.org/contributor-roles/resources/">Resources</role>
        </contrib>
        <contrib contrib-type="author" corresp="no">
          <name name-style="western">
            <surname>Plewa</surname>
            <given-names>Radosław</given-names>
          </name>
          <xref ref-type="aff" rid="A9">9</xref>
          <role content-type="http://credit.niso.org/contributor-roles/writing-review-editing/">Writing - review and editing</role>
          <role content-type="http://credit.niso.org/contributor-roles/resources/">Resources</role>
        </contrib>
        <contrib contrib-type="author" corresp="no">
          <name name-style="western">
            <surname>Roques</surname>
            <given-names>Alain</given-names>
          </name>
          <xref ref-type="aff" rid="A10">10</xref>
          <role content-type="http://credit.niso.org/contributor-roles/writing-review-editing/">Writing - review and editing</role>
          <role content-type="http://credit.niso.org/contributor-roles/resources/">Resources</role>
        </contrib>
        <contrib contrib-type="author" corresp="no">
          <name name-style="western">
            <surname>Sallé</surname>
            <given-names>Aurélien</given-names>
          </name>
          <xref ref-type="aff" rid="A11">11</xref>
          <role content-type="http://credit.niso.org/contributor-roles/writing-review-editing/">Writing - review and editing</role>
          <role content-type="http://credit.niso.org/contributor-roles/resources/">Resources</role>
        </contrib>
        <contrib contrib-type="author" corresp="no">
          <name name-style="western">
            <surname>Sweeney</surname>
            <given-names>Jon</given-names>
          </name>
          <uri content-type="orcid">https://orcid.org/0000-0003-3391-2375</uri>
          <xref ref-type="aff" rid="A12">12</xref>
          <role content-type="http://credit.niso.org/contributor-roles/writing-review-editing/">Writing - review and editing</role>
          <role content-type="http://credit.niso.org/contributor-roles/resources/">Resources</role>
        </contrib>
        <contrib contrib-type="author" corresp="no">
          <name name-style="western">
            <surname>Van Rooyen</surname>
            <given-names>Kate</given-names>
          </name>
          <xref ref-type="aff" rid="A12">12</xref>
          <role content-type="http://credit.niso.org/contributor-roles/writing-review-editing/">Writing - review and editing</role>
          <role content-type="http://credit.niso.org/contributor-roles/resources/">Resources</role>
        </contrib>
        <contrib contrib-type="author" corresp="no">
          <name name-style="western">
            <surname>Wührl</surname>
            <given-names>Lorenz</given-names>
          </name>
          <xref ref-type="aff" rid="A2">2</xref>
          <role content-type="http://credit.niso.org/contributor-roles/writing-review-editing/">Writing - review and editing</role>
          <role content-type="http://credit.niso.org/contributor-roles/methodology/">Methodology</role>
        </contrib>
        <contrib contrib-type="author" corresp="no">
          <name name-style="western">
            <surname>Rassati</surname>
            <given-names>Davide</given-names>
          </name>
          <xref ref-type="aff" rid="A1">1</xref>
          <role content-type="http://credit.niso.org/contributor-roles/conceptualization/">Conceptualization</role>
          <role content-type="http://credit.niso.org/contributor-roles/writing-original-draft/">Writing - original draft</role>
          <role content-type="http://credit.niso.org/contributor-roles/data-curation/">Data curation</role>
          <role content-type="http://credit.niso.org/contributor-roles/formal-analysis/">Formal analysis</role>
          <role content-type="http://credit.niso.org/contributor-roles/funding-acquisition/">Funding acquisition</role>
          <role content-type="http://credit.niso.org/contributor-roles/investigation/">Investigation</role>
          <role content-type="http://credit.niso.org/contributor-roles/methodology/">Methodology</role>
          <role content-type="http://credit.niso.org/contributor-roles/project-administration/">Project administration</role>
          <role content-type="http://credit.niso.org/contributor-roles/supervision/">Supervision</role>
          <role content-type="http://credit.niso.org/contributor-roles/visualization/">Visualization</role>
        </contrib>
      </contrib-group>
      <aff id="A1">
        <label>1</label>
        <addr-line content-type="verbatim">Department of Agronomy, Food, Natural Resources, Animals and Environment (DAFNAE), University of Padova, Viale dell'Università 16, 35020, Legnaro (PD), Italy</addr-line>
        <institution>Department of Agronomy, Food, Natural Resources, Animals and Environment (DAFNAE), University of Padova</institution>
        <addr-line content-type="city">Legnaro</addr-line>
        <country>Italy</country>
        <uri content-type="ror">https://ror.org/00240q980</uri>
      </aff>
      <aff id="A2">
        <label>2</label>
        <addr-line content-type="verbatim">Institute for Automation and Applied Informatics (IAI), Karlsruhe Institute of Technology (KIT), 76344 Eggenstein-Leopoldshafen, Germany</addr-line>
        <institution>Institute for Automation and Applied Informatics (IAI), Karlsruhe Institute of Technology (KIT)</institution>
        <addr-line content-type="city">Eggenstein-Leopoldshafen</addr-line>
        <country>Germany</country>
        <uri content-type="ror">https://ror.org/04t3en479</uri>
      </aff>
      <aff id="A3">
        <label>3</label>
        <addr-line content-type="verbatim">Institut National de Recherche pour l'Agriculture, l'Alimentation et l'Environnement (INRAE), EFNO, Nogent-sur-Vernisson, France</addr-line>
        <institution>Institut National de Recherche pour l'Agriculture, l'Alimentation et l'Environnement (INRAE), EFNO</institution>
        <addr-line content-type="city">Nogent-sur-Vernisson</addr-line>
        <country>France</country>
        <uri content-type="ror">https://ror.org/003vg9w96</uri>
      </aff>
      <aff id="A4">
        <label>4</label>
        <addr-line content-type="verbatim">Department of Biology and Biotechnologies "Charles Darwin", Sapienza University of Roma, Roma, Italy</addr-line>
        <institution>Department of Biology and Biotechnologies "Charles Darwin", Sapienza University of Roma</institution>
        <addr-line content-type="city">Roma</addr-line>
        <country>Italy</country>
        <uri content-type="ror">https://ror.org/02be6w209</uri>
      </aff>
      <aff id="A5">
        <label>5</label>
        <addr-line content-type="verbatim">Museo Civico di Storia Naturale, Parco Cascina Vigna, 10022 Carmagnola, Italy</addr-line>
        <institution>Museo Civico di Storia Naturale</institution>
        <addr-line content-type="city">Carmagnola</addr-line>
        <country>Italy</country>
      </aff>
      <aff id="A6">
        <label>6</label>
        <addr-line content-type="verbatim">Slovenian Forestry Institute, Department of Forest Protection, Večna Pot 2, 1000 Ljubljana, Slovenia</addr-line>
        <institution>Slovenian Forestry Institute, Department of Forest Protection</institution>
        <addr-line content-type="city">Ljubljana</addr-line>
        <country>Slovenia</country>
        <uri content-type="ror">https://ror.org/0232eqz57</uri>
      </aff>
      <aff id="A7">
        <label>7</label>
        <addr-line content-type="verbatim">Biotechnical Faculty, University of Ljubljana, Jamnikarjeva ulica 101, 1000 Ljubljana, Slovenia</addr-line>
        <institution>Biotechnical Faculty, University of Ljubljana</institution>
        <addr-line content-type="city">Ljubljana</addr-line>
        <country>Slovenia</country>
        <uri content-type="ror">https://ror.org/05njb9z20</uri>
      </aff>
      <aff id="A8">
        <label>8</label>
        <addr-line content-type="verbatim">Department of Natural Forests, Forest Research Institute, 6 Park Dyrekcyjny St., 17-230 Białowieża, Poland</addr-line>
        <institution>Department of Natural Forests, Forest Research Institute</institution>
        <addr-line content-type="city">Białowieża</addr-line>
        <country>Poland</country>
      </aff>
      <aff id="A9">
        <label>9</label>
        <addr-line content-type="verbatim">Department of Forest Protection, Forest Research Institute, Sękocin Stary, 3 Braci Leśnej St., 05-090 Raszyn, Poland</addr-line>
        <institution>Department of Forest Protection, Forest Research Institute</institution>
        <addr-line content-type="city">Raszyn</addr-line>
        <country>Poland</country>
      </aff>
      <aff id="A10">
        <label>10</label>
        <addr-line content-type="verbatim">Institut National de Recherche pour l'Agriculture, l'Alimentation et l'Environnement (INRAE), UR 0633, Zoologie Forestière, 45075, Orléans, France</addr-line>
        <institution>Institut National de Recherche pour l'Agriculture, l'Alimentation et l'Environnement (INRAE)</institution>
        <addr-line content-type="city">Orléans</addr-line>
        <country>France</country>
        <uri content-type="ror">https://ror.org/003vg9w96</uri>
      </aff>
      <aff id="A11">
        <label>11</label>
        <addr-line content-type="verbatim">Laboratoire Physiologie, Ecologie et Environnement (P2E), Université d'Orléans, UR 1207, USC-INRAE 1328, 1 rue de Chartres, Orléans 45067, France</addr-line>
        <institution>Laboratoire Physiologie, Ecologie et Environnement (P2E), Université d'Orléans</institution>
        <addr-line content-type="city">Orléans</addr-line>
        <country>France</country>
        <uri content-type="ror">https://ror.org/014zrew76</uri>
      </aff>
      <aff id="A12">
        <label>12</label>
        <addr-line content-type="verbatim">Atlantic Forestry Centre, Canadian Forest Service, Natural Resources Canada, 1350 Regent St., Fredericton, NB, E3C 2G6, Canada</addr-line>
        <institution>Atlantic Forestry Centre, Canadian Forest Service, Natural Resources Canada</institution>
        <addr-line content-type="city">Fredericton</addr-line>
        <country>Canada</country>
      </aff>
      <author-notes>
        <fn fn-type="corresp">
          <p>Corresponding authors: Valerio Caruso (<email xlink:type="simple">valerio.caruso@unipd.it</email>); Hossein Shirali (<email xlink:type="simple">hossein.shirali@kit.edu</email>)</p>
        </fn>
        <fn fn-type="edited-by">
          <p>Academic editor: Victoria Lantschner</p>
        </fn>
      </author-notes>
      <pub-date pub-type="collection">
        <year>2026</year>
      </pub-date>
      <pub-date pub-type="epub">
        <day>24</day>
        <month>02</month>
        <year>2026</year>
      </pub-date>
      <volume>105</volume>
      <fpage>319</fpage>
      <lpage>336</lpage>
      <uri content-type="arpha" xlink:href="http://openbiodiv.net/9EF15A73-45C0-5FC1-BB86-62DCBDEF7AF1">9EF15A73-45C0-5FC1-BB86-62DCBDEF7AF1</uri>
      <uri content-type="zenodo_dep_id" xlink:href="https://zenodo.org/record/19061380">19061380</uri>
      <history>
        <date date-type="received">
          <day>01</day>
          <month>12</month>
          <year>2025</year>
        </date>
        <date date-type="accepted">
          <day>22</day>
          <month>01</month>
          <year>2026</year>
        </date>
      </history>
      <permissions>
        <copyright-statement>Valerio Caruso, Hossein Shirali, Christophe Bouget, Pierfilippo Cerretti, Gianfranco Curletti, Maarten de Groot, Eva Groznik, Jerzy M. Gutowski, Christian Pylatiuk, Radosław Plewa, Alain Roques, Aurélien Sallé, Jon Sweeney, Kate Van Rooyen, Lorenz Wührl, Davide Rassati</copyright-statement>
        <license license-type="creative-commons-attribution" xlink:href="http://creativecommons.org/licenses/by/4.0/" xlink:type="simple">
          <license-p>This is an open access article distributed under the terms of the Creative Commons Attribution License (CC BY 4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.</license-p>
        </license>
      </permissions>
      <abstract>
        <label>Abstract</label>
        <p>The genus <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">Agrilus</tp:taxon-name-part></tp:taxon-name></italic> includes two species, <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">Agrilus</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="planipennis">planipennis</tp:taxon-name-part></tp:taxon-name></italic> and <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="anxius">anxius</tp:taxon-name-part></tp:taxon-name></italic>, that are of particular phytosanitary concern and that are regulated by the European Union legislation. This implies that phytosanitary agencies of all EU countries are obliged to establish specific surveillance programmes to verify the absence of these species from their territory. These activities commonly consist of the use of green-coloured traps, which are, however, attractive not only for <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="planipennis">planipennis</tp:taxon-name-part></tp:taxon-name></italic> and <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="anxius">anxius</tp:taxon-name-part></tp:taxon-name></italic>, but also for a wide range of other <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">Agrilus</tp:taxon-name-part></tp:taxon-name></italic> species. For this reason, much time and expertise is required to sort and identify specimens to species, impeding an efficient rapid response. In this study, we tested the efficacy of the Entomoscope, a low-cost, open-source photomicroscope that uses high-resolution digital imaging and allows a pre-trained Convolutional Neural Networks (<abbrev xlink:title="Convolutional Neural Networks">CNN</abbrev>) model to accurately detect, image and classify insect specimens, for automatic identification of 13 <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">Agrilus</tp:taxon-name-part></tp:taxon-name></italic> species, including <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="planipennis">planipennis</tp:taxon-name-part></tp:taxon-name></italic> and <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="anxius">anxius</tp:taxon-name-part></tp:taxon-name></italic>. We benchmarked models from three different <abbrev xlink:title="Convolutional Neural Networks">CNN</abbrev> architectures and selected YOLOv8l as the most robust performer; this model achieved a Top-1 accuracy of 90.2% on a “real-world” test set (i.e. a dataset simulating real surveillance conditions). For most species, including <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="planipennis">planipennis</tp:taxon-name-part></tp:taxon-name></italic> and <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="anxius">anxius</tp:taxon-name-part></tp:taxon-name></italic>, either no errors or only a few errors were made, whereas for a few native species, misidentifications were more common. These results provided proof of concept for an AI-driven surveillance system that can strongly aid in surveillance activities of <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">Agrilus</tp:taxon-name-part></tp:taxon-name></italic> species.</p>
      </abstract>
      <kwd-group>
        <label>Key words:</label>
        <kwd>
          <italic>
            <tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">Agrilus</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="anxius">anxius</tp:taxon-name-part></tp:taxon-name>
          </italic>
        </kwd>
        <kwd>
          <italic>
            <tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">Agrilus</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="planipennis">planipennis</tp:taxon-name-part></tp:taxon-name>
          </italic>
        </kwd>
        <kwd>bronze birch borer</kwd>
        <kwd>deep learning</kwd>
        <kwd>early-detection</kwd>
        <kwd>emerald ash borer</kwd>
        <kwd>Entomoscope</kwd>
      </kwd-group>
      <funding-group>
        <funding-statement>This work was supported by the project “Improving Forest Insect Biosecurity in an era of globalization – FORBIO”, funded by the European Union-Next Generation EU, Mission 4, Component 1, CUP:C53D23009620001 and B53D23032040001, and partially by the European Union’s Horizon Europe Research and Innovation programme under grant agreement No. 101134200 "FORSAID: Forest surveillance with artificial intelligence and digital technologies". MdG and EG were funded by the Administration of the Republic of Slovenia for Food Safety, Veterinary Sector and Plant Protection (Contract No. C2337-23-000026) and Slovenian Research Agency (Research Programme P4-0107); HS and CP were funded by grant #ZF4717901SK9 of the program Natural, Artificial and Cognitive Information Processing (NACIP) of the Helmholtz-Association, German.</funding-statement>
      </funding-group>
    </article-meta>
  </front>
  <body>
    <sec sec-type="Introduction" id="sec1">
      <title>Introduction</title>
      <p>The constant increase of global trade over the last hundred years, combined with deliberate plant introductions in the past and ongoing climate changes, has facilitated the movement amongst continents and the establishment likelihood of an increasing number of insects (<xref ref-type="bibr" rid="B4">Brockerhoff and Liebhold 2017</xref>; <xref ref-type="bibr" rid="B42">Pureswaran et al. 2022</xref>; <xref ref-type="bibr" rid="B17">Fenn-Moltu et al. 2023</xref>; <xref ref-type="bibr" rid="B24">Isitt et al. 2024</xref>). The genus <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">Agrilus</tp:taxon-name-part></tp:taxon-name></italic> (<tp:taxon-name><tp:taxon-name-part taxon-name-part-type="order" reg="Coleoptera">Coleoptera</tp:taxon-name-part></tp:taxon-name>, <tp:taxon-name><tp:taxon-name-part taxon-name-part-type="family" reg="Buprestidae">Buprestidae</tp:taxon-name-part></tp:taxon-name>) is amongst the insect taxa most favoured by these processes and is commonly transported to and introduced into new regions. This genus includes 3341 species and, therefore, is one of the most species-rich genera of animals in the world (<xref ref-type="bibr" rid="B25">Jendek and Grebennikov 2023</xref>). More than 30 species have already been introduced and established outside their native range (<xref ref-type="bibr" rid="B45">Ruzzier et al. 2023</xref>), including the emerald ash borer <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="planipennis">planipennis</tp:taxon-name-part></tp:taxon-name></italic> Fairmaire, 1888 which has caused massive ecological and economic damage in North America (<xref ref-type="bibr" rid="B30">Kovacs et al. 2010</xref>; <xref ref-type="bibr" rid="B29">Klooster et al. 2018</xref>), Russia and Ukraine (<xref ref-type="bibr" rid="B39">Orlova-Bienkowskaja et al. 2020</xref>). For these reasons, the development of tools and strategies for the early detection of accidentally introduced <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">Agrilus</tp:taxon-name-part></tp:taxon-name></italic> species was identified as a research priority to trigger rapid response and reduce potential impacts in the invaded areas.</p>
      <p>Amongst the numerous tools developed for <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">Agrilus</tp:taxon-name-part></tp:taxon-name></italic> surveillance programmes, baited or unbaited green traps set up at entry points and in their surrounding forests are currently adopted by several phytosanitary agencies worldwide (<xref ref-type="bibr" rid="B15">Evans et al. 2020</xref>; <xref ref-type="bibr" rid="B23">Imrei et al. 2020</xref>; <xref ref-type="bibr" rid="B51">Silk et al. 2020</xref>; <xref ref-type="bibr" rid="B11">Dodds et al. 2024</xref>; <xref ref-type="bibr" rid="B12">Duan et al. 2024</xref>; <xref ref-type="bibr" rid="B46">Santoiemma et al. 2024a</xref>). These traps were primarily developed, based on laboratory and field studies targeting <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="planipennis">planipennis</tp:taxon-name-part></tp:taxon-name></italic> (<xref ref-type="bibr" rid="B8">Crook et al. 2009</xref>; <xref ref-type="bibr" rid="B18">Francese et al. 2010</xref>; <xref ref-type="bibr" rid="B41">Poland et al. 2019</xref>), but are also attractive for a wide range of other species within the genus <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">Agrilus</tp:taxon-name-part></tp:taxon-name></italic> (<xref ref-type="bibr" rid="B43">Rassati et al. 2019</xref>; <xref ref-type="bibr" rid="B6">Cavaletto et al. 2020</xref>; <xref ref-type="bibr" rid="B31">Kuhn et al. 2024</xref>; <xref ref-type="bibr" rid="B32">Le Souchu et al. 2024</xref>; <xref ref-type="bibr" rid="B47">Santoiemma et al. 2024b</xref>, <xref ref-type="bibr" rid="B48">2025</xref>). This allows practitioners to survey multiple species simultaneously, but much time and expertise are required to sort and identify specimens to species due to both the low interspecific morphological differentiation (<xref ref-type="bibr" rid="B27">Kelnarova et al. 2019</xref>) and the very high species richness of the genus (<xref ref-type="bibr" rid="B25">Jendek and Grebennikov 2023</xref>), impeding an efficient, rapid response (<xref ref-type="bibr" rid="B36">Lyal and Miller 2020</xref>). Thus, novel technologies that can help to improve the efficiency of species identification are promptly needed.</p>
      <p>Artificial intelligence (AI) systems are being increasingly adopted in entomology for various applications (<xref ref-type="bibr" rid="B55">Teixeira et al. 2023</xref>; <xref ref-type="bibr" rid="B22">Hartbauer 2024</xref>). Amongst them, AI is used to enhance the accuracy and speed of insect identification in the laboratory and in the field (<xref ref-type="bibr" rid="B9">De Cesaro Júnior and Rieder 2020</xref>; <xref ref-type="bibr" rid="B19">Gao et al. 2024</xref>; <xref ref-type="bibr" rid="B22">Hartbauer 2024</xref>). Convolutional neural networks (CNNs) trained on image datasets have been shown to reliably classify insects at the family, genus or even species level (<xref ref-type="bibr" rid="B56">Valan et al. 2019</xref>; <xref ref-type="bibr" rid="B1">Ärje et al. 2020</xref>; <xref ref-type="bibr" rid="B21">Hansen et al. 2020</xref>; <xref ref-type="bibr" rid="B58">Wührl et al. 2022</xref>; <xref ref-type="bibr" rid="B54">Tannous et al. 2023</xref>; <xref ref-type="bibr" rid="B33">Lertrusdachakul et al. 2025</xref>; <xref ref-type="bibr" rid="B37">Marais et al. 2025</xref>). Exploiting this technology in surveillance activities for <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">Agrilus</tp:taxon-name-part></tp:taxon-name></italic> species would, however, require that laboratories and plant health inspectors are equipped with an affordable device that can capture images of trapped specimens and, subsequently, automatically identify them to species. The Entomoscope, recently developed by the Karlsruhe Institute of Technology (<abbrev content-type="institution" xlink:title="Karlsruhe Institute of Technology">KIT</abbrev>) (<xref ref-type="bibr" rid="B59">Wührl et al. 2024</xref>), might satisfy these needs. It is a low-cost, open-source photomicroscope that uses high-resolution digital imaging and allows a pre-trained <abbrev xlink:title="Convolutional Neural Networks">CNN</abbrev> to accurately detect, image and classify insect specimens (<xref ref-type="bibr" rid="B59">Wührl et al. 2024</xref>). The Entomoscope has been tested so far on parasitoid wasps (<xref ref-type="bibr" rid="B50">Shirali et al. 2024</xref>), but its potential application in <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">Agrilus</tp:taxon-name-part></tp:taxon-name></italic> surveillance has not yet been investigated.</p>
      <p>In this study, we evaluated the Entomoscope’s efficacy for <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">Agrilus</tp:taxon-name-part></tp:taxon-name></italic> identification, with a specific focus on model robustness for “real-world” deployment, i.e. performance on data that mimic actual surveillance workflows, with new trap collections acquired under realistic variation in lighting, specimen condition and operator handling. First, we benchmarked multiple state-of-the-art <abbrev xlink:title="Convolutional Neural Networks">CNN</abbrev> architectures to select the top performers. Second, we went beyond standard “laboratory” validation, i.e. accuracy measured on randomly shuffled data acquired under controlled and uniform conditions and tested these models against a dataset designed to simulate a surveillance process, based on traps. We compared this “real-world” performance to the often-optimistic results from standard validation on randomly-shuffled data. Finally, we tested the model’s ability to reject “unknown” species not included in the training data, with the objective of developing a truly robust, deployable AI tool to be used along with traps for <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">Agrilus</tp:taxon-name-part></tp:taxon-name></italic> surveillance.</p>
    </sec>
    <sec sec-type="materials|methods" id="sec2">
      <title>Materials and methods</title>
      <sec sec-type="Agrilus specimens" id="sec3">
        <title><italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">Agrilus</tp:taxon-name-part></tp:taxon-name></italic> specimens</title>
        <p>The dataset for this study comprised specimens from 13 <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">Agrilus</tp:taxon-name-part></tp:taxon-name></italic> species, including 11 native species to Europe and two non-native species of high phytosanitary concern: <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="planipennis">planipennis</tp:taxon-name-part></tp:taxon-name></italic> (native to Asia) and <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="anxius">anxius</tp:taxon-name-part></tp:taxon-name></italic> (native to North America) (Suppl. material <xref ref-type="supplementary-material" rid="S1">1</xref>: table SS1, Fig. <xref ref-type="fig" rid="F1">1</xref>). The native species were selected as they are commonly collected in trapping studies carried out in Europe targeting <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">Agrilus</tp:taxon-name-part></tp:taxon-name></italic> spp. (<xref ref-type="bibr" rid="B32">Le Souchu et al. 2024</xref>; <xref ref-type="bibr" rid="B47">Santoiemma et al. 2024b</xref>, <xref ref-type="bibr" rid="B48">2025</xref>), whereas the non-natives were selected because they are regulated by the European Union legislation and surveillance is mandatory in EU countries under Regulation (EU) 2019/2072 (EFSA et al. 2020a, b). Specimens were collected in Canada, France, Poland and Slovenia (Suppl. material <xref ref-type="supplementary-material" rid="S1">1</xref>: table SS1), using green multi-funnel traps. The preservation methods in the trap-collecting cups varied by location and included: a 2:1 mixture of propylene glycol and water (Slovenia); a 1:1 mixture of ethylene glycol and water (Poland); a 2:1 mixture of monopropylene glycol and water with a drop of liquid dish detergent or kept dry, but integrated with a section of mesh impregnated with α-cypermethrin insecticide (Storanet®, BASF Pflanzenschutz Deutschland, Germany) (France); and a saturated salt water solution plus a drop of liquid dish detergent to reduce surface tension (Canada). Specimens were preserved in ethanol until identification. Species-level taxonomic identifications were initially performed by Eva Groznik, Maarten de Groot, Jerzy M. Gutowski, Alain Roques, Aurélien Sallé and Kate Van Rooyen, based on morphological traits, keys and other reference materials (<xref ref-type="bibr" rid="B49">Schaefer 1950</xref>; <xref ref-type="bibr" rid="B16">Farrugia 2007</xref>; <xref ref-type="bibr" rid="B40">Paiero et al. 2012</xref>) and then confirmed by Gianfranco Curletti.</p>
        <fig id="F1">
          <object-id content-type="arpha">772F1CF0-4F92-5B03-8CF1-ED4D0B1CDBC8</object-id>
          <label>Figure 1.</label>
          <caption>
            <p>Examples of pictures taken using the Entomoscope to some of the <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">Agrilus</tp:taxon-name-part></tp:taxon-name></italic> specimens used during the training process. <bold>A</bold>. <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="angustulus">angustulus</tp:taxon-name-part></tp:taxon-name></italic>; <bold>B</bold>. <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="anxius">anxius</tp:taxon-name-part></tp:taxon-name></italic>; <bold>C</bold>. <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="cuprescens">cuprescens</tp:taxon-name-part></tp:taxon-name></italic>; <bold>D</bold>. <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="graminis">graminis</tp:taxon-name-part></tp:taxon-name></italic>; <bold>E</bold>. <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="hastulifer">hastulifer</tp:taxon-name-part></tp:taxon-name></italic>; <bold>F</bold>. <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="laticornis">laticornis</tp:taxon-name-part></tp:taxon-name></italic>; <bold>G</bold>. <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="obscuricollis">obscuricollis</tp:taxon-name-part></tp:taxon-name></italic>; <bold>H</bold>. <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="olivicolor">olivicolor</tp:taxon-name-part></tp:taxon-name></italic>; <bold>I</bold>. <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="planipennis">planipennis</tp:taxon-name-part></tp:taxon-name></italic>; <bold>J</bold>. <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="pratensis">pratensis</tp:taxon-name-part></tp:taxon-name></italic>; <bold>K</bold>. <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="sulcicollis">sulcicollis</tp:taxon-name-part></tp:taxon-name></italic>; <bold>L</bold>. <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="viridis">viridis</tp:taxon-name-part></tp:taxon-name></italic>. Note: the pictures are not to scale relative to each other.</p>
          </caption>
          <graphic xlink:href="neobiota-105-319_article-180959__-g001.jpg" id="oo_1547046.jpg">
            <uri content-type="original_file">https://binary.pensoft.net/fig/1547046</uri>
          </graphic>
        </fig>
      </sec>
      <sec sec-type="Image acquisition" id="sec4">
        <title>Image acquisition</title>
        <p>A standardised imaging protocol was established using the “plug-in” version of the Entomoscope (<xref ref-type="bibr" rid="B59">Wührl et al. 2024</xref>). Two Entomoscope (Suppl. material <xref ref-type="supplementary-material" rid="S1">1</xref>: fig. S1) units were utilized: one at the University of Padova, DAFNAE department and another at the Entomology Museum of La Sapienza University of Rome. To simulate realistic conditions faced by phytosanitary inspectors, specimens were not manipulated or positioned (or at least to a minimal extent for the identification process). Instead, they were photographed in their natural preservation state (i.e. “death position”) and without distinguishing between sexes. Each specimen was photographed from two to five standard points of view to ensure comprehensive morphological coverage: dorsal, laterodorsal, lateral, lateroventral and ventral (Suppl. material <xref ref-type="supplementary-material" rid="S1">1</xref>: fig. S2). For image capture, specimens were submerged in 70% ethanol to minimise distortion effects. All images were acquired using the Entomoscope fixed, standard-intensity lighting. To create a single, fully-focused image for each angle, a focus stacking technique using Helicon Focus (v.8.2.2) was employed.</p>
      </sec>
      <sec sec-type="Dataset preparation and evaluation strategy" id="sec5">
        <title>Dataset preparation and evaluation strategy</title>
        <p>Our evaluation strategy was designed to assess model robustness against the challenges of surveillance. The dataset consisted of 14 classes: 13 <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">Agrilus</tp:taxon-name-part></tp:taxon-name></italic> species and one “Background” class. The “Background” class consisted of 89 images of the empty Entomoscope setup (empty Petri dish, with and without ethanol) taken under various lighting conditions to simulate non-target images. Across the 13 species included in model development, the number of specimens per species ranged from 11 to 59 (mean ± SD = 36.1 ± 13.8; see Suppl. material <xref ref-type="supplementary-material" rid="S1">1</xref>: table SS1), for a total of 469 specimens. Each specimen contributed between two and six images (five points of view), resulting in multiple images per individual for model training and evaluation. The entire dataset was first partitioned at the specimen level (to prevent data leakage). This partitioning was stratified by class (to maintain the distribution of all 14 classes), but ordered by acquisition time (to create a realistic temporal split). Two sets of images were created: i) the development set, including the first 85% of images from the ordered, stratified dataset. This set represents the data available for all model training and validation; ii) the held-out “real-world” set, including the final 15% of images from the ordered, stratified dataset. As these images were collected later, they may contain subtle variations in lighting, operator setup or new specimen batches. This set served as our challenging <abbrev xlink:title="Real-World Validation">OOD</abbrev> test set, simulating the data drift common in surveillance (often termed an Out-Of-Distribution or <abbrev xlink:title="Real-World Validation">OOD</abbrev> dataset).</p>
        <p>Our evaluation followed a two-stage process. Stage 1 consisted of the model benchmarking. In particular, we trained 11 model variants (from You Only Look Once [YOLOv8, YOLO11] and EfficientNet families) using an ordered 70/15 (a total of 85% of the whole set) split of the Development Set. This means that the first 70% of the Development Set was used for training and the 15% was used as a validation set to select the champion models. The models from this stage were also evaluated on the <abbrev xlink:title="Real-World Validation">OOD</abbrev> Set to establish a baseline performance from a simple, ordered training strategy. Stage 2 consisted in the robustness evaluation. The top-performing models were advanced for further evaluation. We performed a randomly-shuffled, stratified 5-fold cross-validation (<abbrev xlink:title="cross-validation">CV</abbrev>) only on the 85% Development Set. The folds were partitioned at the specimen ID level to prevent data leakage. For each of the five trained folds, we performed two distinct evaluations: i) Standard Validation (<abbrev xlink:title="Standard Validation">IID</abbrev>): the performance was measured on the held-out validation fold from the cross-validation. This represents a standard test on randomly-shuffled data (Independent and Identically Distributed or <abbrev xlink:title="Standard Validation">IID</abbrev>); ii) Real-World Validation (<abbrev xlink:title="Real-World Validation">OOD</abbrev>). The exact same model was then tested against the 15% (remaining 15% not used in training and validation process) <abbrev xlink:title="Real-World Validation">OOD</abbrev> Set to measure robustness to data drift. The final reported metrics for our recommended methodology were the average and standard deviation across these five folds. This process validated the training protocol. To test the model’s rejection capabilities, one additional class was created and used only for testing the “unknown” species class (see below). This class included two species not in the training set, <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="biguttatus">biguttatus</tp:taxon-name-part></tp:taxon-name></italic> and <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="convexicollis">convexicollis</tp:taxon-name-part></tp:taxon-name></italic>.</p>
      </sec>
      <sec sec-type="Model architecture" id="sec6">
        <title>Model architecture</title>
        <p>We evaluated and compared three distinct state-of-the-art Convolutional Neural Network (<abbrev xlink:title="Convolutional Neural Networks">CNN</abbrev>) architectures for our fine-grained classification task, i.e. YOLOv8, YOLO11 and EfficientNet. All models were initialised with weights, pre-trained on the ImageNet dataset (<xref ref-type="bibr" rid="B10">Deng et al. 2009</xref>) and subsequently fine-tuned on our <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">Agrilus</tp:taxon-name-part></tp:taxon-name></italic> dataset. The Ultralytics YOLO (<xref ref-type="bibr" rid="B34">Limberg et al. 2022</xref>; <xref ref-type="bibr" rid="B26">Jocher et al. 2023</xref>; <xref ref-type="bibr" rid="B28">Khanam and Hussain 2024</xref>) framework provides a suite of models optimised for various computer vision tasks. Each model version is available in five sizes (nano, small, medium, large and extra-large), which offer a trade-off between speed and accuracy. For this study, we selected their dedicated classification models. These models utilise the powerful and highly efficient YOLO backbone for feature extraction, but employ a standard classification head, making them distinct from the object detection variants and ideally suited for image classification. Their inclusion allows us to evaluate architectures that provide a state-of-the-art balance between inference speed and accuracy, a critical consideration for future deployment in high-throughput surveillance systems. To benchmark the YOLO models against a well-established, pure classification architecture, we included EfficientNet (<xref ref-type="bibr" rid="B52">Tan and Le 2019</xref>). This model family is renowned for achieving high accuracy through a principled compound scaling method and serves as a strong baseline for classification performance. We employed the EfficientNetV2 large variant (<xref ref-type="bibr" rid="B53">Tan and Le 2021</xref>). This comparative approach allows for a robust evaluation, pitting models optimised for speed and efficiency (YOLO series) against an architecture designed to maximise classification accuracy (EfficientNet).</p>
      </sec>
      <sec sec-type="Model training and implementation" id="sec7">
        <title>Model training and implementation</title>
        <p>All models were trained on the HAICORE high-performance computing cluster at the Karlsruhe Institute of Technology (<abbrev content-type="institution" xlink:title="Karlsruhe Institute of Technology">KIT</abbrev>), utilising nodes equipped with NVIDIA A100-SXM4-40GB GPUs. The software environment consisted of Python (v. 3.10) and PyTorch (v. 2.0.1) with the Ultralytics framework for the YOLO models and TensorFlow (v. 2.10) with Keras for the EfficientNetV2 models. We employed transfer learning for all models, initialising them with weights pre-trained on the ImageNet dataset (<xref ref-type="bibr" rid="B10">Deng et al. 2009</xref>) to accelerate training and improve generalisation. Input images were resized to the input dimensions required by each architecture (e.g. 640×640 for YOLOv8, 480×480 for EfficientNetV2L) and standard data augmentation techniques (e.g. random flips, rotations, colour adjustments, erasing) were applied. To ensure robust generalisation and prevent overfitting, we employed a consistent optimisation strategy. All models were fine-tuned using the AdamW optimiser (<xref ref-type="bibr" rid="B35">Loshchilov and Hutter 2017</xref>) and included dropout regularisation (rate = 0.3). An early stopping mechanism was used, halting training if the validation loss did not improve for 15 consecutive epochs, with a maximum limit of 150 epochs. To address the inherent class imbalance in the dataset, we applied class weights to the loss function. For the EfficientNetV2 models, a categorical focal cross-entropy loss was used to further prioritise difficult-to-classify examples, while the YOLO models used their framework’s standard weighted loss function. The training and validation curves, as well as accuracy curves are shown in Fig. <xref ref-type="fig" rid="F2">2</xref>. The learning dynamics showed similar patterns across folds, with consistent loss decay and accuracy stabilisation; therefore, one representative example (fold 4) is shown here. All the images used for training and testing, as well as the scripts employed in the classification pipeline, are available in the Zenodo (<ext-link ext-link-type="uri" xlink:href="http://www.zenodo.org">www.zenodo.org</ext-link>) repository.</p>
        <fig id="F2">
          <object-id content-type="arpha">BF0B80AA-D28A-5F76-941B-D366C757C349</object-id>
          <label>Figure 2.</label>
          <caption>
            <p>Representative training and validation curves for the YOLOv8l model during one of the cross-validation folds. The plots show training loss (<bold>A</bold>) and validation loss (<bold>B</bold>) decreasing over epochs, indicating effective learning; Top-1 accuracy (<bold>C</bold>) and Top-5 accuracy (<bold>D</bold>) on the validation set increasing and stabilising, confirming robust convergence without overfitting. Blue full line = results; orange dashed line = smooth.</p>
          </caption>
          <graphic xlink:href="neobiota-105-319_article-180959__-g002.jpg" id="oo_1547047.jpg">
            <uri content-type="original_file">https://binary.pensoft.net/fig/1547047</uri>
          </graphic>
        </fig>
      </sec>
      <sec sec-type="Performance evaluation metrics" id="sec8">
        <title>Performance evaluation metrics</title>
        <p>Model performance was assessed using a comprehensive set of metrics, evaluated at two distinct stages. In stage 1 (benchmarking), models were ranked, based on Top-1 validation accuracy. Their performance on the <abbrev xlink:title="Real-World Validation">OOD</abbrev> Set was also recorded. In stage 2 (robustness), the 5-fold <abbrev xlink:title="cross-validation">CV</abbrev> models were evaluated on both the <abbrev xlink:title="Standard Validation">IID</abbrev> validation fold and the <abbrev xlink:title="Real-World Validation">OOD</abbrev> test set, using Top-1 Accuracy and Weighted F1-Score. The final performance of the methodology was reported as the average of the 5-fold <abbrev xlink:title="cross-validation">CV</abbrev> results on the <abbrev xlink:title="Real-World Validation">OOD</abbrev> set. A full classification report and an aggregated confusion matrix, summing the predictions from all five folds, were generated. To test the model’s ability to handle species not included in the training process, we added an additional class named “unknown”. In fact, our model does not include an “out-of-class” mechanism to exclude images that do not belong to any trained class, so it still tries to associate the image with the most similar species. When the image is very different from those used for training, the confidence level (max_conf) of the prediction is typically low. In our case, we set this confidence level to 0.5, meaning that the model will ignore all predictions with less than 50% confidence. This threshold was adopted following the standard convention, as it represents the neutral decision boundary in probability-based classification tasks. To test this mechanism, we used 19 images belonging to two native species that were not used for the training procedure (i.e. 8 images belonging to 2 specimens of <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="biguttatus">biguttatus</tp:taxon-name-part></tp:taxon-name></italic> and 11 images belonging to 3 specimens of <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="convexicollis">convexicollis</tp:taxon-name-part></tp:taxon-name></italic>).</p>
      </sec>
      <sec sec-type="Model explainability" id="sec9">
        <title>Model explainability</title>
        <p>To gain insight into the models’ decision-making process, we employed the Eigen-CAM explainability technique (<xref ref-type="bibr" rid="B38">Muhammad and Yeasin 2020</xref>). Eigen-CAM produces saliency maps that highlight the image regions most influential for a given classification, allowing for a qualitative assessment of whether the models focus on relevant morphological features.</p>
      </sec>
    </sec>
    <sec sec-type="Results" id="sec10">
      <title>Results</title>
      <sec sec-type="Stage 1: model benchmarking" id="sec11">
        <title>Stage 1: model benchmarking</title>
        <p>The 11 model variants were trained on an ordered 70% training set and ranked by their Top-1 accuracy on the ordered 15% validation set (Table <xref ref-type="table" rid="T1">1</xref>). The EfficientNetV2L and YOLOv8l emerged as the top performers, tying with an identical validation accuracy of 88.9% (0.8885). These two models were selected for the comprehensive Stage 2 evaluation. When tested on the <abbrev xlink:title="Real-World Validation">OOD</abbrev> Set, the models from this simple, ordered training strategy performed modestly. The top-performing YOLOv8l achieved a Top-1 accuracy of 85.0% (Table <xref ref-type="table" rid="T1">1</xref>), establishing a baseline for our subsequent robustness tests.</p>
        <table-wrap id="T1" position="float" orientation="portrait">
          <label>Table 1.</label>
          <caption>
            <p>Benchmarking of 11 model variants (YOLOv8l and EfficientNetV2L). Reports Validation Top-1 (ordered split) and, on the held-out real-world <abbrev xlink:title="Real-World Validation">OOD</abbrev> test set, Test Top-1 and Test Weighted F1. Values in are reported as point estimates with 95% confidence intervals (Wilson) for Top1 accuracy, to quantify uncertainty due to finite validation/test sample sizes.</p>
          </caption>
          <table>
            <tbody>
              <tr>
                <th rowspan="1" colspan="1"/>
                <th rowspan="1" colspan="1">
                  <bold>Validation Top1 accuracy (95% CI)</bold>
                </th>
                <th rowspan="1" colspan="1">
                  <bold>Test Top1 accuracy (95% CI)</bold>
                </th>
                <th rowspan="1" colspan="1">
                  <bold>Test Weighted F1 score</bold>
                </th>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">Yolov8n</td>
                <td rowspan="1" colspan="1">0.8500 (0.8047–0.8850)</td>
                <td rowspan="1" colspan="1">0.8100 (0.7618–0.8504)</td>
                <td rowspan="1" colspan="1">0.7900</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">Yolov8s</td>
                <td rowspan="1" colspan="1">0.8852 (0.8446–0.9163)</td>
                <td rowspan="1" colspan="1">0.8100 (0.7618–0.8504)</td>
                <td rowspan="1" colspan="1">0.7800</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">Yolov8m</td>
                <td rowspan="1" colspan="1">0.8787 (0.8373–0.9107)</td>
                <td rowspan="1" colspan="1">0.8200 (0.7726–0.8593)</td>
                <td rowspan="1" colspan="1">0.8000</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">Yolov8l</td>
                <td rowspan="1" colspan="1">0.8885 (0.8483–0.9191)</td>
                <td rowspan="1" colspan="1">0.8500 (0.8052–0.8860)</td>
                <td rowspan="1" colspan="1">0.8300</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">Yolov8x</td>
                <td rowspan="1" colspan="1">0.8852 (0.8446–0.9163)</td>
                <td rowspan="1" colspan="1">0.8300 (0.7834–0.8683)</td>
                <td rowspan="1" colspan="1">0.8100</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">Yolo11n</td>
                <td rowspan="1" colspan="1">0.8623 (0.8191–0.8965)</td>
                <td rowspan="1" colspan="1">0.8100 (0.7618–0.8504)</td>
                <td rowspan="1" colspan="1">0.7800</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">Yolo11s</td>
                <td rowspan="1" colspan="1">0.8525 (0.8083–0.8879)</td>
                <td rowspan="1" colspan="1">0.7800 (0.7297–0.8232)</td>
                <td rowspan="1" colspan="1">0.7600</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">Yolo11m</td>
                <td rowspan="1" colspan="1">0.8787 (0.8373–0.9107)</td>
                <td rowspan="1" colspan="1">0.8000 (0.7511–0.8413)</td>
                <td rowspan="1" colspan="1">0.7800</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">Yolo11l</td>
                <td rowspan="1" colspan="1">0.8400 (0.7940–0.8763)</td>
                <td rowspan="1" colspan="1">0.7600 (0.7086–0.8048)</td>
                <td rowspan="1" colspan="1">0.7400</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">Yolo11x</td>
                <td rowspan="1" colspan="1">0.8426 (0.7975–0.8792)</td>
                <td rowspan="1" colspan="1">0.7700 (0.7191–0.8140)</td>
                <td rowspan="1" colspan="1">0.7500</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">EfficientNetV2L</td>
                <td rowspan="1" colspan="1">0.8885 (0.8483–0.9191)</td>
                <td rowspan="1" colspan="1">0.8500 (0.8052–0.8860)</td>
                <td rowspan="1" colspan="1">0.8200</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
      </sec>
      <sec sec-type="Stage 2: Robustness evaluation of standard vs. real-world testing" id="sec12">
        <title>Stage 2: Robustness evaluation of standard vs. real-world testing</title>
        <p>The top two models, YOLOv8l and EfficientNetV2L, underwent a 5-fold <abbrev xlink:title="cross-validation">CV</abbrev>. Both models achieved near-perfect accuracy on the <abbrev xlink:title="Standard Validation">IID</abbrev> validation folds, with YOLOv8l averaging 97.9 ± 1.4% and EfficientNetV2L averaging 97.2 ± 2.4% (Table <xref ref-type="table" rid="T2">2</xref>, Fig. <xref ref-type="fig" rid="F3">3</xref>). However, when these same models were tested against our 15% <abbrev xlink:title="Real-World Validation">OOD</abbrev> Set, two key findings emerged. First, a performance gap was observed. The YOLOv8l model’s accuracy, for example, was 97.9% on the <abbrev xlink:title="Standard Validation">IID</abbrev> fold, but 90.2% on the <abbrev xlink:title="Real-World Validation">OOD</abbrev> set, a difference of 7.7 percentage points. Second, the models trained with the robust, randomly-shuffled <abbrev xlink:title="cross-validation">CV</abbrev> methodology (Stage 2) achieved higher accuracy on the <abbrev xlink:title="Real-World Validation">OOD</abbrev> set than the models from the simple, ordered training (Stage 1). The <abbrev xlink:title="cross-validation">CV</abbrev>-trained YOLOv8l achieved an average Top-1 accuracy of 90.2 ± 1.9%, compared to the 85.0% from the Stage 1 ordered-split model. On this <abbrev xlink:title="Real-World Validation">OOD</abbrev> test, the YOLOv8l methodology had a higher average Top-1 accuracy, with 90.2 ± 1.9% and a weighted F1-score of 88.2 ± 2.4%. This was consistently higher than the EfficientNetV2L (89.8 ± 1.7% Top-1, 88.0 ± 1.6% F1).</p>
        <fig id="F3">
          <object-id content-type="arpha">B8694C9D-40DA-5908-8CBD-352BBF8366AC</object-id>
          <label>Figure 3.</label>
          <caption>
            <p>Comparison of Top-1 Accuracy between Standard Validation (<abbrev xlink:title="Standard Validation">IID</abbrev>) and “Real-World” Validation (<abbrev xlink:title="Real-World Validation">OOD</abbrev>) for YOLOv8l and EfficientNetV2L models. Bars show accuracy across five folds, illustrating the performance gap between <abbrev xlink:title="Standard Validation">IID</abbrev> and <abbrev xlink:title="Real-World Validation">OOD</abbrev> evaluations.</p>
          </caption>
          <graphic xlink:href="neobiota-105-319_article-180959__-g003.jpg" id="oo_1547048.jpg">
            <uri content-type="original_file">https://binary.pensoft.net/fig/1547048</uri>
          </graphic>
        </fig>
        <table-wrap id="T2" position="float" orientation="portrait">
          <label>Table 2.</label>
          <caption>
            <p>Results (%) of the 5-fold cross-validation for YOLOv8l and EfficientNetV2L models.</p>
          </caption>
          <table>
            <tbody>
              <tr>
                <th rowspan="1" colspan="1">
                  <bold>Model</bold>
                </th>
                <th rowspan="1" colspan="1">
                  <bold>Metric</bold>
                </th>
                <th rowspan="1" colspan="1">
                  <bold>Fold 1</bold>
                </th>
                <th rowspan="1" colspan="1">
                  <bold>Fold 2</bold>
                </th>
                <th rowspan="1" colspan="1">
                  <bold>Fold 3</bold>
                </th>
                <th rowspan="1" colspan="1">
                  <bold>Fold 4</bold>
                </th>
                <th rowspan="1" colspan="1">
                  <bold>Fold 5</bold>
                </th>
                <th rowspan="1" colspan="1"><bold>Mean</bold> ± <bold>SD</bold></th>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">EfficientNetV2L</td>
                <td rowspan="1" colspan="1">Validation Top1 Accuracy</td>
                <td rowspan="1" colspan="1">97.0</td>
                <td rowspan="1" colspan="1">100.0</td>
                <td rowspan="1" colspan="1">94.0</td>
                <td rowspan="1" colspan="1">96.0</td>
                <td rowspan="1" colspan="1">99.0</td>
                <td rowspan="1" colspan="1">97.2 ± 2.4</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">EfficientNetV2L</td>
                <td rowspan="1" colspan="1">Test Top1 Accuracy</td>
                <td rowspan="1" colspan="1">90.0</td>
                <td rowspan="1" colspan="1">88.0</td>
                <td rowspan="1" colspan="1">88.0</td>
                <td rowspan="1" colspan="1">91.0</td>
                <td rowspan="1" colspan="1">92.0</td>
                <td rowspan="1" colspan="1">89.8 ± 1.7</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">EfficientNetV2L</td>
                <td rowspan="1" colspan="1">Test Weighted F1</td>
                <td rowspan="1" colspan="1">88.0</td>
                <td rowspan="1" colspan="1">86.0</td>
                <td rowspan="1" colspan="1">87.0</td>
                <td rowspan="1" colspan="1">89.0</td>
                <td rowspan="1" colspan="1">90.0</td>
                <td rowspan="1" colspan="1">88.0 ± 1.6</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">YOLOv8l</td>
                <td rowspan="1" colspan="1">Validation Top1 Accuracy</td>
                <td rowspan="1" colspan="1">96.6</td>
                <td rowspan="1" colspan="1">100.0</td>
                <td rowspan="1" colspan="1">98.0</td>
                <td rowspan="1" colspan="1">96.6</td>
                <td rowspan="1" colspan="1">98.5</td>
                <td rowspan="1" colspan="1">97.9 ± 1.4</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">YOLOv8l</td>
                <td rowspan="1" colspan="1">Test Top1 Accuracy</td>
                <td rowspan="1" colspan="1">88.0</td>
                <td rowspan="1" colspan="1">90.0</td>
                <td rowspan="1" colspan="1">93.0</td>
                <td rowspan="1" colspan="1">91.0</td>
                <td rowspan="1" colspan="1">89.0</td>
                <td rowspan="1" colspan="1">90.2 ± 1.9</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">YOLOv8l</td>
                <td rowspan="1" colspan="1">Test Weighted F1</td>
                <td rowspan="1" colspan="1">86.0</td>
                <td rowspan="1" colspan="1">87.0</td>
                <td rowspan="1" colspan="1">92.0</td>
                <td rowspan="1" colspan="1">89.0</td>
                <td rowspan="1" colspan="1">87.0</td>
                <td rowspan="1" colspan="1">88.2 ± 2.4</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
      </sec>
      <sec sec-type="Final YOLOv8l model performance (5-Fold Average)" id="sec13">
        <title>Final YOLOv8l model performance (5-Fold Average)</title>
        <p>Based on its higher robustness and performance, YOLOv8l was selected as our final recommended methodology. The trained <abbrev xlink:title="Convolutional Neural Networks">CNN</abbrev> correctly assigned the highest percentage of correspondence to the correct species 100% of times for seven species, i.e. the non-native <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="anxius">anxius</tp:taxon-name-part></tp:taxon-name></italic> and <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="planipennis">planipennis</tp:taxon-name-part></tp:taxon-name></italic> and the native <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="angustulus">angustulus</tp:taxon-name-part></tp:taxon-name></italic>, <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="betuleti">betuleti</tp:taxon-name-part></tp:taxon-name></italic>, <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="cuprescens">cuprescens</tp:taxon-name-part></tp:taxon-name></italic>, <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="graminis">graminis</tp:taxon-name-part></tp:taxon-name></italic> and <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="olivicolor">olivicolor</tp:taxon-name-part></tp:taxon-name></italic> (Fig. <xref ref-type="fig" rid="F4">4</xref>). For four of the other species, the trained <abbrev xlink:title="Convolutional Neural Networks">CNN</abbrev> assigned the highest percentage of correspondence to the correct species between 86% and 98% of times (Fig. <xref ref-type="fig" rid="F4">4</xref>). In particular, the native <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="laticornis">laticornis</tp:taxon-name-part></tp:taxon-name></italic> was identified with a 92% accuracy (respectively 4% and 5% of the pictures with <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="laticornis">laticornis</tp:taxon-name-part></tp:taxon-name></italic> were misidentified with <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="angustulus">angustulus</tp:taxon-name-part></tp:taxon-name></italic> and <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="graminis">graminis</tp:taxon-name-part></tp:taxon-name></italic>), the native <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="obscuricollis">obscuricollis</tp:taxon-name-part></tp:taxon-name></italic> with a 95% accuracy (3.5% misidentified as <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="olivicolor">olivicolor</tp:taxon-name-part></tp:taxon-name></italic> and 1.5% as <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="hastulifer">hastulifer</tp:taxon-name-part></tp:taxon-name></italic>), the native <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="sulcicollis">sulcicollis</tp:taxon-name-part></tp:taxon-name></italic> with 86.0% accuracy (9% misidentified as <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="laticornis">laticornis</tp:taxon-name-part></tp:taxon-name></italic>, 1% as <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="planipennis">planipennis</tp:taxon-name-part></tp:taxon-name></italic> and 3% as <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="angustulus">angustulus</tp:taxon-name-part></tp:taxon-name></italic>) and the native <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="viridis">viridis</tp:taxon-name-part></tp:taxon-name></italic> with a 98% accuracy (2% misidentified as <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="graminis">graminis</tp:taxon-name-part></tp:taxon-name></italic>). The <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">Agrilus</tp:taxon-name-part></tp:taxon-name></italic> species for which a misidentification was common were <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="hastulifer">hastulifer</tp:taxon-name-part></tp:taxon-name></italic> and <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="pratensis">pratensis</tp:taxon-name-part></tp:taxon-name></italic>. For <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="hastulifer">hastulifer</tp:taxon-name-part></tp:taxon-name></italic>, the trained <abbrev xlink:title="Convolutional Neural Networks">CNN</abbrev> assigned the highest percentage of correspondence to <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="graminis">graminis</tp:taxon-name-part></tp:taxon-name></italic> 65% of the times and to <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="viridis">viridis</tp:taxon-name-part></tp:taxon-name></italic> 21% of the times (Fig. <xref ref-type="fig" rid="F4">4</xref>), making <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="hastulifer">hastulifer</tp:taxon-name-part></tp:taxon-name></italic> the class with the lowest percentage of correct classification (9%). For <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="pratensis">pratensis</tp:taxon-name-part></tp:taxon-name></italic>, the trained <abbrev xlink:title="Convolutional Neural Networks">CNN</abbrev> assigned the highest percentage of correspondence to the wrong species 58% of the times to <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="obscuricollis">obscuricollis</tp:taxon-name-part></tp:taxon-name></italic> and 2% times to <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="hastulifer">hastulifer</tp:taxon-name-part></tp:taxon-name></italic> (Fig. <xref ref-type="fig" rid="F4">4</xref>). Full per-class metrics (Precision, Recall, F1, Support; mean ± SD over five folds) are provided in Suppl. material <xref ref-type="supplementary-material" rid="S1">1</xref>: table SS2.</p>
        <fig id="F4">
          <object-id content-type="arpha">A2E5E577-C075-587E-88F4-7E7EF850F49E</object-id>
          <label>Figure 4.</label>
          <caption>
            <p>Aggregated confusion matrix for YOLOv8l on the held-out real-world (<abbrev xlink:title="Real-World Validation">OOD</abbrev>) test set. The matrix represents the sum of all predictions from the five cross-validation folds across 14 classes, showing classification accuracy per class and highlighting the main sources of misclassification. True classes (Y axis) indicate the true species identity. Predicted classes (X axis) indicate the species to which the model assigned analysed specimens. The degree of accuracy is reported both in the form of numerical value, showing the percentage of specimens that were assigned to a given species and colour-coded with blue for correct predictions and red for incorrect ones (light blue and red are associated with low degree of prediction, both correct and incorrect).</p>
          </caption>
          <graphic xlink:href="neobiota-105-319_article-180959__-g004.jpg" id="oo_1547049.jpg">
            <uri content-type="original_file">https://binary.pensoft.net/fig/1547049</uri>
          </graphic>
        </fig>
      </sec>
      <sec sec-type="Identification of out-of-distribution species" id="sec14">
        <title>Identification of out-of-distribution species</title>
        <p>The model’s rejection capability was tested on the <abbrev xlink:title="Real-World Validation">OOD</abbrev> set. Averaged across the five folds, the YOLOv8l methodology correctly classified 100% of the 19 images from the “unknown” class (<italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="biguttatus">biguttatus</tp:taxon-name-part></tp:taxon-name></italic> and <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="convexicollis">convexicollis</tp:taxon-name-part></tp:taxon-name></italic>) as unknown species using a 0.5 confidence threshold.</p>
      </sec>
      <sec sec-type="Model explainability" id="sec15">
        <title>Model explainability</title>
        <p>Eigen-CAM analysis of the trained YOLOv8l models revealed that the classification decisions relied on specific morphological regions. For example, the model consistently focused on the distinctive shape and texture of the elytra in most specimens in dorsal and laterodorsal views (<italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="angustulus">angustulus</tp:taxon-name-part></tp:taxon-name></italic>, Fig. <xref ref-type="fig" rid="F5">5A</xref>; <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="olivicolor">olivicolor</tp:taxon-name-part></tp:taxon-name></italic>, Fig. <xref ref-type="fig" rid="F5">5C</xref>), as well as on head morphology — particularly the pronotal margins, eyes and clypeus (<italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="olivicolor">olivicolor</tp:taxon-name-part></tp:taxon-name></italic>, Fig. <xref ref-type="fig" rid="F5">5C</xref>). In lateral and ventral images, key features, such as the shape of the abdominal sternites (<italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="angustulus">angustulus</tp:taxon-name-part></tp:taxon-name></italic>, Fig. <xref ref-type="fig" rid="F5">5B</xref>; <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="planipennis">planipennis</tp:taxon-name-part></tp:taxon-name></italic>, Fig. <xref ref-type="fig" rid="F5">5D</xref>), the structure of the eyes (<italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="planipennis">planipennis</tp:taxon-name-part></tp:taxon-name></italic>, Fig. <xref ref-type="fig" rid="F5">5D</xref>) and, in many cases, the elytra, were especially influential.</p>
        <fig id="F5">
          <object-id content-type="arpha">6BFF0AF9-7C82-57E4-A823-3244480043E6</object-id>
          <label>Figure 5.</label>
          <caption>
            <p>Example of class activation heatmaps obtained for pictures of: <bold>A</bold>. <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">Agrilus</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="angustulus">angustulus</tp:taxon-name-part></tp:taxon-name></italic> (laterodorsal view); <bold>B</bold>. <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="angustulus">angustulus</tp:taxon-name-part></tp:taxon-name></italic> (ventral view); <bold>C</bold>. <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="olivicolor">olivicolor</tp:taxon-name-part></tp:taxon-name></italic> (dorsal view); <bold>D</bold>. <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="planipennis">planipennis</tp:taxon-name-part></tp:taxon-name></italic> (lateral view). The heatmaps indicate the image regions most influential for the model’s prediction (from red = high influence to blue = low influence).</p>
          </caption>
          <graphic xlink:href="neobiota-105-319_article-180959__-g005.jpg" id="oo_1547050.jpg">
            <uri content-type="original_file">https://binary.pensoft.net/fig/1547050</uri>
          </graphic>
        </fig>
      </sec>
    </sec>
    <sec sec-type="Discussion" id="sec16">
      <title>Discussion</title>
      <p>The genus <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">Agrilus</tp:taxon-name-part></tp:taxon-name></italic> includes two species, <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="planipennis">planipennis</tp:taxon-name-part></tp:taxon-name></italic> and <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="anxius">anxius</tp:taxon-name-part></tp:taxon-name></italic>, that are of particular phytosanitary concern due to the economic and ecological impacts they can have in the invaded areas (<xref ref-type="bibr" rid="B2">Baranchikov et al. 2008</xref>, <xref ref-type="bibr" rid="B3">2014</xref>; <xref ref-type="bibr" rid="B30">Kovacs et al. 2010</xref>; <xref ref-type="bibr" rid="B29">Klooster et al. 2018</xref>; <xref ref-type="bibr" rid="B15">Evans et al. 2020</xref>) and, as such, they are regulated by the European Union legislation (EFSA et al. 2020a, 2020b). This implies that phytosanitary agencies of all EU countries are obliged to establish specific surveillance programmes to verify the absence of these species from their territory (<xref ref-type="bibr" rid="B15">Evans et al. 2020</xref>). These activities commonly consist of the use of green-coloured traps, which are, however, attractive not only for <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="planipennis">planipennis</tp:taxon-name-part></tp:taxon-name></italic> and <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="anxius">anxius</tp:taxon-name-part></tp:taxon-name></italic>, but also for a wide range of other <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">Agrilus</tp:taxon-name-part></tp:taxon-name></italic> species (<xref ref-type="bibr" rid="B43">Rassati et al. 2019</xref>; <xref ref-type="bibr" rid="B6">Cavaletto et al. 2020</xref>; <xref ref-type="bibr" rid="B32">Le Souchu et al. 2024</xref>; <xref ref-type="bibr" rid="B46">Santoiemma et al. 2024a</xref>, <xref ref-type="bibr" rid="B47">2024b</xref>, <xref ref-type="bibr" rid="B48">2025</xref>). Here, we showed that the Entomoscope, in combination with our validated deep-learning methodology, can strongly aid in discriminating <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="planipennis">planipennis</tp:taxon-name-part></tp:taxon-name></italic> and <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="anxius">anxius</tp:taxon-name-part></tp:taxon-name></italic> from other commonly collected native <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">Agrilus</tp:taxon-name-part></tp:taxon-name></italic> species, a process that otherwise demands much time and taxonomic expertise.</p>
      <p>Our validated YOLOv8l methodology, which averaged 90.2% Top-1 accuracy on the real-world set, serves as a powerful proof-of-concept for a practical triage tool. Its perfect identification (100% F1-score) of the key pests <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="planipennis">planipennis</tp:taxon-name-part></tp:taxon-name></italic> and <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="anxius">anxius</tp:taxon-name-part></tp:taxon-name></italic>, as well as its almost perfect identification of the “Background” class, demonstrates its immediate value for phytosanitary agencies. This system could be used to autonomously sort through thousands of specimens, filtering out empty images and flagging only those identified as high-priority pests for expert review. However, the model is not an infallible taxonomist. The aggregated confusion matrix shows that misclassifications still occur amongst a few native species, namely <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="hastulifer">hastulifer</tp:taxon-name-part></tp:taxon-name></italic> and <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="pratensis">pratensis</tp:taxon-name-part></tp:taxon-name></italic>. This is quite surprising, as these species are easily separated using classic taxonomic approaches (<xref ref-type="bibr" rid="B49">Schaefer 1950</xref>; <xref ref-type="bibr" rid="B16">Farrugia 2007</xref>). This might be due to the characters used by the models. For species represented by a limited number of test specimens, such as <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="cuprescens">cuprescens</tp:taxon-name-part></tp:taxon-name></italic> and <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="betuleti">betuleti</tp:taxon-name-part></tp:taxon-name></italic>, performance metrics should be interpreted with appropriate caution. Nevertheless, the consistently high classification performance metrics observed for these classes indicate that the model is able to reliably capture diagnostic visual features even when trained and evaluated on relatively small sample sizes. As for many other CNNs, the models are only partially based on the same morphological characteristics (such as genitalia, setae and hairs distribution, size etc.) (e.g. <xref ref-type="bibr" rid="B57">Volkovitsh et al. 2020</xref>) used by taxonomists, but instead on the arrangement and intensity of pixel clusters which are identified as discriminating features by the algorithm (<xref ref-type="bibr" rid="B20">Goodfellow et al. 2016</xref>; <xref ref-type="bibr" rid="B44">Redmon et al. 2016</xref>). Our Eigen-CAM analysis supports this, showing that, depending on the position of the specimen, the general shape of the body and the margins of the head, elytra and pronotum or the shape of the abdominal sternites, the forehead and the clypeus were used as main characters to discriminate amongst the tested <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">Agrilus</tp:taxon-name-part></tp:taxon-name></italic> species. This can result in accurate classification of species that are difficult to distinguish (i.e. <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="obscuricollis">obscuricollis</tp:taxon-name-part></tp:taxon-name></italic>), but also failures when attempting to discriminate between species that are easily separated using classic taxonomic approaches (e.g. <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="hastulifer">hastulifer</tp:taxon-name-part></tp:taxon-name></italic> and <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="pratensis">pratensis</tp:taxon-name-part></tp:taxon-name></italic>). Overall, these results indicate that the Entomoscope and the current methodology are highly useful for surveillance of <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="planipennis">planipennis</tp:taxon-name-part></tp:taxon-name></italic> and <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="anxius">anxius</tp:taxon-name-part></tp:taxon-name></italic>, but are not yet ready to identify all native species collected in traps to a species level.</p>
      <p>Our results also demonstrated the ability of the trained <abbrev xlink:title="Convolutional Neural Networks">CNN</abbrev> to reject non-target images. Our methodology correctly assigned 100% of correspondence to the class “unknown” when identifying specimens belonging to species not used in the training process (<italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="biguttatus">biguttatus</tp:taxon-name-part></tp:taxon-name></italic> and <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="convexicollis">convexicollis</tp:taxon-name-part></tp:taxon-name></italic>). Several trapping studies showed that many <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">Agrilus</tp:taxon-name-part></tp:taxon-name></italic> species can be collected when using green-coloured traps (e.g. <xref ref-type="bibr" rid="B46">Santoiemma et al. 2024a</xref>, <xref ref-type="bibr" rid="B47">2024b</xref>). These species might include native species present at low density or non-native species not initially targeted. In this scenario, the capacity of the trained methodology to discriminate between known and unknown species can alert the phytosanitary personnel of the presence of a potential non-native species that should be further scrutinised via classic morphological or molecular approaches.</p>
      <p>Our results also indicate that the method of validation is critical for determining real-world-viability. Our study demonstrates a significant “validation gap” between <abbrev xlink:title="Standard Validation">IID</abbrev> tests and our more realistic, <abbrev xlink:title="Real-World Validation">OOD</abbrev> dataset. While our top models achieved near-perfect accuracy (97–98%) in the “laboratory” setting, this performance dropped by over seven percentage points when faced with data simulating new collection events. This finding strongly suggests that studies reporting accuracy from simple, random splits may be dangerously optimistic and that testing against <abbrev xlink:title="Real-World Validation">OOD</abbrev> data is essential for validating deployable biosecurity tools. Furthermore, our study provides a key insight into how to train a robust model. The model from our initial benchmark, trained on a simple ordered split, achieved a respectable 85.0% on the <abbrev xlink:title="Real-World Validation">OOD</abbrev> set. However, the models trained using a randomly-shuffled, 5-fold <abbrev xlink:title="cross-validation">CV</abbrev> (on the exact same development data) were demonstrably superior, achieving an average of 90.2%. This proves that a robust training strategy, which exposes the model to more diverse and randomised data combinations, is just as important as the model architecture itself for building a tool that can generalise to new data. This performance gap was not uniform. Interestingly, while the EfficientNetV2L tied for the highest score in our initial benchmark, the YOLOv8l model proved to be more robust, consistently performing better on the challenging <abbrev xlink:title="Real-World Validation">OOD</abbrev> set. This suggests that the architectural properties of YOLOv8l may offer better generalisation to the subtle data drift (e.g. in lighting, pose or operator handling) inherent in real-world surveillance.</p>
      <p>In addition to domain shift, another important challenge in applied image-based classification is the “open-world” or semantic shift problem. In operational surveillance contexts, traps may collect a large number of non-target species that are not represented in the training dataset. In such cases, closed-set classifiers may erroneously assign these specimens to one of the known classes rather than rejecting them as unknown. We acknowledge that this limitation is intrinsic to supervised classification approaches trained on a finite and predefined set of taxa. Consequently, automated identification should be interpreted as a decision-support and triage tool, rather than as a fully autonomous replacement for expert taxonomic assessment, at least under current technological and data-availability constraints. In practice, this implies that a small subset of specimens, particularly those assigned with lower confidence or representing each predicted species, could be routinely verified by a taxonomic expert. Importantly, the species selected for this study correspond to some of the most frequently collected <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">Agrilus</tp:taxon-name-part></tp:taxon-name></italic> species in European trapping programmes, which reduces the practical impact of semantic shift under typical surveillance conditions.</p>
    </sec>
    <sec sec-type="Conclusions" id="sec17">
      <title>Conclusions</title>
      <p>This study provides a robust proof-of-concept for an AI-driven system, combining the Entomoscope with a validated deep-learning methodology, for the surveillance of <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">Agrilus</tp:taxon-name-part></tp:taxon-name></italic> jewel beetles. We have demonstrated that our final YOLOv8l methodology is a reliable triage tool, capable of perfectly identifying the high-priority pests <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="planipennis">planipennis</tp:taxon-name-part></tp:taxon-name></italic> and <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus" reg="Agrilus">A.</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species" reg="anxius">anxius</tp:taxon-name-part></tp:taxon-name></italic>, correctly filtering background noise and effectively rejecting unknown species. In addition, we have presented a validation framework that moves beyond standard “laboratory” accuracy to test for robustness against real-world data drift. This methodology of evaluating on a <abbrev xlink:title="Real-World Validation">OOD</abbrev> dataset is critical for bridging the gap between a promising model and a trustworthy, deployable tool for phytosanitary surveillance. From a longer-term perspective, the progressive expansion and diversification of reference image datasets represents the most effective strategy to mitigate the open-world problem. Increasing taxonomic and phenotypic coverage will reduce classification errors and progressively confine rare or unexpected taxa to a marginal “unknown” category with limited operational impact. In parallel, the open-source nature of this technology, combined with the relatively low cost of setting up and operating an Entomoscope, makes AI-based identification systems highly suitable for technology transfer initiatives. These systems could be integrated into training projects for phytosanitary personnel, foresters and environmental agencies, increasing knowledge on AI-based identification technologies and encouraging their active participation in large-scale monitoring efforts. Future work will focus on expanding the species library and integrating this model into a field-ready, rapid-alert system without the need for extensive laboratory infrastructure (<xref ref-type="bibr" rid="B5">Brydegaard et al. 2024</xref>; <xref ref-type="bibr" rid="B7">Chiavassa et al. 2024</xref>), as well as hybrid approaches that integrate <abbrev xlink:title="Convolutional Neural Networks">CNN</abbrev>-based image classification with other diagnostic methods, such as molecular tools. A cloud-based or mobile application linked to the Entomoscope could allow users to upload images and receive automated identifications in real time, greatly increasing the accessibility and practical applicability of the system. Such an innovation would not only facilitate rapid species identification in phytosanitary surveillance, but also contribute to broader biodiversity assessment initiatives.</p>
    </sec>
  </body>
  <back>
    <sec sec-type="Additional information" id="sec18">
      <title>Additional information</title>
      <sec sec-type="Conflict of interest" id="sec19">
        <title>Conflict of interest</title>
        <p>The authors have declared that no competing interests exist.</p>
      </sec>
      <sec sec-type="Ethical statement" id="sec20">
        <title>Ethical statement</title>
        <p>No ethical statement was reported.</p>
      </sec>
      <sec sec-type="Use of AI" id="sec21">
        <title>Use of AI</title>
        <p>No use of AI was reported.</p>
      </sec>
      <sec sec-type="Funding" id="sec22">
        <title>Funding</title>
        <p>This work was supported by the project “Improving Forest Insect Biosecurity in an era of globalization – FORBIO”, funded by the European Union-Next Generation EU, Mission 4, Component 1, CUP:C53D23009620001 and B53D23032040001 and partially by the European Union’s Horizon Europe Research and Innovation programme under grant agreement No. 101134200 "FORSAID: Forest surveillance with artificial intelligence and digital technologies". MdG and EG were funded by the Administration of the Republic of Slovenia for Food Safety, Veterinary Sector and Plant Protection (Contract No. C2337-23-000026) and Slovenian Research Agency (Research Programme P4-0107); HS and CP were funded by grant #ZF4717901SK9 of the programme Natural, Artificial and Cognitive Information Processing (NACIP) of the Helmholtz-Association, German.</p>
      </sec>
      <sec sec-type="Author contributions" id="sec23">
        <title>Author contributions</title>
        <p>Valerio Caruso: Writing – original draft, Methodology, Investigation, Formal analysis, Data curation, Conceptualisation, Visualisation; Hossein Shirali: Writing – original draft, Methodology, Investigation, Formal analysis, Visualisation; Christophe Bouget: Writing – review and editing; Pierfilippo Cerretti: Writing – original draft, Conceptualisation, Supervision, Funding acquisition; Gianfranco Curletti: Writing – review and editing, Data curation; Maarten de Groot: Writing – review and editing, Resources; Eva Groznik: Writing – review and editing, Resources; Jerzy M. Gutowski: Writing – review and editing, Resources; Pyliatuk: Writing – review and editing, Resources, Methodology; Radosław Plewa: Writing – review and editing, Resources; Alain Roques: Writing – review and editing, Resources; Aurelién Sallé: Writing – review and editing, Resources; Jon Sweeney: Writing – review and editing, Resources; Kate Van Rooyen: Writing – review and editing, Resources; Lorenz Wührl: Writing – review and editing, Methodology; Davide Rassati: Writing – original draft, Methodology, Investigation, Formal analysis, Data curation, Conceptualisation, Supervision, Visualisation, Funding acquisition, Project administration.</p>
      </sec>
      <sec sec-type="Author ORCIDs" id="sec24">
        <title>Author ORCIDs</title>
        <p>Valerio Caruso <ext-link xlink:href="https://orcid.org/0009-0006-9421-7447" ext-link-type="uri">https://orcid.org/0009-0006-9421-7447</ext-link></p>
        <p>Hossein Shirali <ext-link xlink:href="https://orcid.org/0009-0005-6884-4263" ext-link-type="uri">https://orcid.org/0009-0005-6884-4263</ext-link></p>
        <p>Christophe Bouget <ext-link xlink:href="https://orcid.org/0000-0002-5206-7560" ext-link-type="uri">https://orcid.org/0000-0002-5206-7560</ext-link></p>
        <p>Pierfilippo Cerretti <ext-link xlink:href="https://orcid.org/0000-0002-9204-3352" ext-link-type="uri">https://orcid.org/0000-0002-9204-3352</ext-link></p>
        <p>Maarten de Groot <ext-link xlink:href="https://orcid.org/0000-0002-5721-6676" ext-link-type="uri">https://orcid.org/0000-0002-5721-6676</ext-link></p>
        <p>Eva Groznik <ext-link xlink:href="https://orcid.org/0009-0006-9647-2871" ext-link-type="uri">https://orcid.org/0009-0006-9647-2871</ext-link></p>
        <p>Christian Pylatiuk <ext-link xlink:href="https://orcid.org/0000-0002-3507-7134" ext-link-type="uri">https://orcid.org/0000-0002-3507-7134</ext-link></p>
        <p>Jon Sweeney <ext-link xlink:href="https://orcid.org/0000-0003-3391-2375" ext-link-type="uri">https://orcid.org/0000-0003-3391-2375</ext-link></p>
      </sec>
      <sec sec-type="Data availability" id="sec25">
        <title>Data availability</title>
        <p>All image data used and the code developed for this study are available on Zenodo repository at <ext-link xlink:href="10.5281/zenodo.14998760" ext-link-type="doi">https://doi.org/10.5281/zenodo.14998760</ext-link>.</p>
      </sec>
    </sec>
    <ref-list>
      <title>References</title>
      <ref id="B1">
        <mixed-citation>Ärje J, Melvad C, Jeppesen MR, Madsen SA, Raitoharju J, Rasmussen MS, Iosifidis A, Tirronen V, Gabbouj M, Meissner K, Høye TT (2020) Automatic image‐based identification and biomass estimation of invertebrates. Methods in Ecology and Evolution 11: 922–931. <ext-link xlink:href="10.1111/2041-210X.13428" ext-link-type="doi">https://doi.org/10.1111/2041-210X.13428</ext-link></mixed-citation>
      </ref>
      <ref id="B2">
        <mixed-citation>Baranchikov Y, Mozolevskaya E, Yurchenko G, Kenis M (2008) Occurrence of the emerald ash borer, <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus">Agrilus</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species">planipennis</tp:taxon-name-part></tp:taxon-name></italic> in Russia and its potential impact on European forestry. EPPO Bulletin 38: 233–238. <ext-link xlink:href="10.1111/j.1365-2338.2008.01210.x" ext-link-type="doi">https://doi.org/10.1111/j.1365-2338.2008.01210.x</ext-link></mixed-citation>
      </ref>
      <ref id="B3">
        <mixed-citation>Baranchikov Y, Seraya L, Grinash M (2014) All European ash species are susceptible to emerald ash borer <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus">Agrilus</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species">planipennis</tp:taxon-name-part></tp:taxon-name></italic> Fairmaire (<tp:taxon-name><tp:taxon-name-part taxon-name-part-type="order">Coleoptera</tp:taxon-name-part></tp:taxon-name>: <tp:taxon-name><tp:taxon-name-part taxon-name-part-type="family">Buprestidae</tp:taxon-name-part></tp:taxon-name>) – a Far Eastern invader. Siberian Journal of Forest Science 6: 80–85.</mixed-citation>
      </ref>
      <ref id="B4">
        <mixed-citation>Brockerhoff EG, Liebhold AM (2017) Ecology of forest insect invasions. Biological Invasions 19: 3141–3159. <ext-link xlink:href="10.1007/s10530-017-1514-1" ext-link-type="doi">https://doi.org/10.1007/s10530-017-1514-1</ext-link></mixed-citation>
      </ref>
      <ref id="B5">
        <mixed-citation>Brydegaard M, Pedales DR, Feng V, Yamoa AS-D, Kouakou B, Månefjord H, Wührl L, Pylatiuk C, Amorim DS, Meier (2024) Towards global insect biomonitoring with frugal methods. Philosophical Transactions of the Royal Society of London. Series B, Biological Sciences 379(1904): 37920230103. <ext-link xlink:href="10.1098/rstb.2023.0103" ext-link-type="doi">https://doi.org/10.1098/rstb.2023.0103</ext-link></mixed-citation>
      </ref>
      <ref id="B6">
        <mixed-citation>Cavaletto G, Faccoli M, Marini L, Spaethe J, Magnani G, Rassati D (2020) Effect of trap color on captures of bark-and wood-boring beetles (<tp:taxon-name><tp:taxon-name-part taxon-name-part-type="order">Coleoptera</tp:taxon-name-part></tp:taxon-name>; <tp:taxon-name><tp:taxon-name-part taxon-name-part-type="family">Buprestidae</tp:taxon-name-part></tp:taxon-name> and <tp:taxon-name><tp:taxon-name-part taxon-name-part-type="subfamily">Scolytinae</tp:taxon-name-part></tp:taxon-name>) and associated predators. Insects 11: 749. <ext-link xlink:href="10.3390/insects11110749" ext-link-type="doi">https://doi.org/10.3390/insects11110749</ext-link></mixed-citation>
      </ref>
      <ref id="B7">
        <mixed-citation>Chiavassa JA, Kraft M, Noack P, Walther S, Kirse A, Scherber C (2024) The field automatic insect recognition-device — a non-lethal semi-automatic Malaise trap for insect biodiversity monitoring: Proof of concept. Ecology and Evolution 14: e70642. <ext-link xlink:href="10.1002/ece3.70642" ext-link-type="doi">https://doi.org/10.1002/ece3.70642</ext-link></mixed-citation>
      </ref>
      <ref id="B8">
        <mixed-citation>Crook DJ, Francese JA, Zylstra KE, Fraser I, Sawyer AJ, Bartels DW, Lance DR, Mastro VC (2009) Laboratory and field response of the emerald ash borer (<tp:taxon-name><tp:taxon-name-part taxon-name-part-type="order">Coleoptera</tp:taxon-name-part></tp:taxon-name>: <tp:taxon-name><tp:taxon-name-part taxon-name-part-type="family">Buprestidae</tp:taxon-name-part></tp:taxon-name>), to selected regions of the electromagnetic spectrum. Journal of Economic Entomology 102: 2160–2169. <ext-link xlink:href="10.1603/029.102.0620" ext-link-type="doi">https://doi.org/10.1603/029.102.0620</ext-link></mixed-citation>
      </ref>
      <ref id="B9">
        <mixed-citation>De Cesaro Júnior T, Rieder R (2020) Automatic identification of insects from digital images: A survey. Computers and Electronics in Agriculture 178: 105784. <ext-link xlink:href="10.1016/j.compag.2020.105784" ext-link-type="doi">https://doi.org/10.1016/j.compag.2020.105784</ext-link></mixed-citation>
      </ref>
      <ref id="B10">
        <mixed-citation>Deng J, Dong W, Socher R, Li L-J, Li K, Fei-Fei L (2009) ImageNet: A large-scale hierarchical image database. 2009 IEEE Conference on Computer Vision and Pattern Recognition. IEEE, Miami, FL, USA, 248–255. <ext-link xlink:href="10.1109/CVPR.2009.5206848" ext-link-type="doi">https://doi.org/10.1109/CVPR.2009.5206848</ext-link></mixed-citation>
      </ref>
      <ref id="B11">
        <mixed-citation>Dodds KJ, Sweeney J, Francese JA, Besana L, Rassati D (2024) Factors affecting catches of bark beetles and woodboring beetles in traps. Journal of Pest Science 97: 1767–1793. <ext-link xlink:href="10.1007/s10340-024-01774-1" ext-link-type="doi">https://doi.org/10.1007/s10340-024-01774-1</ext-link></mixed-citation>
      </ref>
      <ref id="B12">
        <mixed-citation>Duan JJ, Johnson TD, O’Dea JK, Petrice TR, Haack RA (2024) The ecology, economics, and management of <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus">Agrilus</tp:taxon-name-part></tp:taxon-name></italic> beetles. Current Forestry Reports 10: 487–509. <ext-link xlink:href="10.1007/s40725-024-00230-8" ext-link-type="doi">https://doi.org/10.1007/s40725-024-00230-8</ext-link></mixed-citation>
      </ref>
      <ref id="B13">
        <mixed-citation>European Food Safety Authority (EFSA), Schans J, Schrader G, Delbianco A, Graziosi I, Vos S (2020a) Pest survey card on <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus">Agrilus</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species">planipennis</tp:taxon-name-part></tp:taxon-name></italic>. EFSA Supporting Publications 17: EN-1945. <ext-link xlink:href="10.2903/sp.efsa.2020.EN-1945" ext-link-type="doi">https://doi.org/10.2903/sp.efsa.2020.EN-1945</ext-link></mixed-citation>
      </ref>
      <ref id="B14">
        <mixed-citation>European Food Safety Authority (EFSA), Schrader G, Kinkar M, Vos S (2020b) Pest survey card on <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus">Agrilus</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species">anxius</tp:taxon-name-part></tp:taxon-name></italic>. EFSA Supporting Publications 17: EN-1777. <ext-link xlink:href="10.2903/sp.efsa.2020.EN-1777" ext-link-type="doi">https://doi.org/10.2903/sp.efsa.2020.EN-1777</ext-link></mixed-citation>
      </ref>
      <ref id="B15">
        <mixed-citation>Evans HF, Williams D, Hoch G, Loomans A, Marzano M (2020) Developing a European Toolbox to manage potential invasion by emerald ash borer (<italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus">Agrilus</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species">planipennis</tp:taxon-name-part></tp:taxon-name></italic>) and bronze birch borer (<italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus">Agrilus</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species">anxius</tp:taxon-name-part></tp:taxon-name></italic>), important pests of ash and birch. Forestry 93: 187–196. <ext-link xlink:href="10.1093/forestry/cpz074" ext-link-type="doi">https://doi.org/10.1093/forestry/cpz074</ext-link></mixed-citation>
      </ref>
      <ref id="B16">
        <mixed-citation>Farrugia S (2007) Les <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus">Agrilus</tp:taxon-name-part></tp:taxon-name></italic> de France (<tp:taxon-name><tp:taxon-name-part taxon-name-part-type="order">Coleoptera</tp:taxon-name-part></tp:taxon-name>, <tp:taxon-name><tp:taxon-name-part taxon-name-part-type="family">Buprestidae</tp:taxon-name-part></tp:taxon-name>): une clef de détermination. Magellanes.</mixed-citation>
      </ref>
      <ref id="B17">
        <mixed-citation>Fenn‐Moltu G, Ollier S, Caton B, Liebhold AM, Nahrung H, Pureswaran DS, Turner RM, Yamanaka T, Bertelsmeier C (2023) Alien insect dispersal mediated by the global movement of commodities. Ecological Applications 33: e2721. <ext-link xlink:href="10.1002/eap.2721" ext-link-type="doi">https://doi.org/10.1002/eap.2721</ext-link></mixed-citation>
      </ref>
      <ref id="B18">
        <mixed-citation>Francese JA, Crook DJ, Fraser I, Lance DR, Sawyer AJ, Mastro VC (2010) Optimization of trap color for emerald ash borer (<tp:taxon-name><tp:taxon-name-part taxon-name-part-type="order">Coleoptera</tp:taxon-name-part></tp:taxon-name>: <tp:taxon-name><tp:taxon-name-part taxon-name-part-type="family">Buprestidae</tp:taxon-name-part></tp:taxon-name>). Journal of Economic Entomology 103: 1235–1241. <ext-link xlink:href="10.1603/EC10088" ext-link-type="doi">https://doi.org/10.1603/EC10088</ext-link></mixed-citation>
      </ref>
      <ref id="B19">
        <mixed-citation>Gao Y, Xue X, Qin G, Li K, Liu J, Zhang Y, Li X (2024) Application of machine learning in automatic image identification of insects-a review. Ecological Informatics 80: 102539. <ext-link xlink:href="10.1016/j.ecoinf.2024.102539" ext-link-type="doi">https://doi.org/10.1016/j.ecoinf.2024.102539</ext-link></mixed-citation>
      </ref>
      <ref id="B20">
        <mixed-citation>Goodfellow I, Bengio Y, Courville A (2016) Deep learning. MIT Press.</mixed-citation>
      </ref>
      <ref id="B21">
        <mixed-citation>Hansen OL, Svenning JC, Olsen K, Dupont S, Garner BH, Iosifidis A, Price BW, Høye TT (2020) Species‐level image classification with convolutional neural network enables insect identification from habitus images. Ecology and Evolution 10: 737–747. <ext-link xlink:href="10.1002/ece3.5921" ext-link-type="doi">https://doi.org/10.1002/ece3.5921</ext-link></mixed-citation>
      </ref>
      <ref id="B22">
        <mixed-citation>Hartbauer M (2024) Artificial neuronal networks are revolutionizing entomological research. Journal of Applied Entomology 148: 232–251. <ext-link xlink:href="10.1111/jen.13227" ext-link-type="doi">https://doi.org/10.1111/jen.13227</ext-link></mixed-citation>
      </ref>
      <ref id="B23">
        <mixed-citation>Imrei Z, Lohonyai Z, Csóka G, Muskovits J, Szanyi S, Vétek G, Fail J, Tóth M, Domingue MJ (2020) Improving trapping methods for buprestid beetles to enhance monitoring of native and invasive species. Forestry 93: 254–264. <ext-link xlink:href="10.1093/forestry/cpz071" ext-link-type="doi">https://doi.org/10.1093/forestry/cpz071</ext-link></mixed-citation>
      </ref>
      <ref id="B24">
        <mixed-citation>Isitt R, Liebhold AM, Turner RM, Battisti A, Bertelsmeier C, Blake R, Brockerhoff EG, Heard SB, Krokene P, Økland B, Nahrung HF, Rassati D, Roques A, Yamanaka T, Pureswaran DS (2024) Asymmetrical insect invasions between three world regions. NeoBiota 90: 35–51. <ext-link xlink:href="10.3897/neobiota.90.110942" ext-link-type="doi">https://doi.org/10.3897/neobiota.90.110942</ext-link></mixed-citation>
      </ref>
      <ref id="B25">
        <mixed-citation>Jendek E, Grebennikov VV (2023) Summary of native geographic distribution of all 3,341 species of the most speciose animal genus <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus">Agrilus</tp:taxon-name-part></tp:taxon-name></italic> (<tp:taxon-name><tp:taxon-name-part taxon-name-part-type="order">Coleoptera</tp:taxon-name-part></tp:taxon-name>: <tp:taxon-name><tp:taxon-name-part taxon-name-part-type="family">Buprestidae</tp:taxon-name-part></tp:taxon-name>). Journal of Insect Biodiversity 39: 32–78. <ext-link xlink:href="10.12976/jib/2023.39.2.1" ext-link-type="doi">https://doi.org/10.12976/jib/2023.39.2.1</ext-link></mixed-citation>
      </ref>
      <ref id="B26">
        <mixed-citation>Jocher G, Chaurasia A, Qiu J (2023) Ultralytics YOLO (Version 8.0.0) [Python]. <ext-link xlink:href="https://github.com/ultralytics/ultralytics" ext-link-type="uri">https://github.com/ultralytics/ultralytics</ext-link></mixed-citation>
      </ref>
      <ref id="B27">
        <mixed-citation>Kelnarova I, Jendek E, Grebennikov VV, Bocak L (2019) First molecular phylogeny of <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus">Agrilus</tp:taxon-name-part></tp:taxon-name></italic> (<tp:taxon-name><tp:taxon-name-part taxon-name-part-type="order">Coleoptera</tp:taxon-name-part></tp:taxon-name>: <tp:taxon-name><tp:taxon-name-part taxon-name-part-type="family">Buprestidae</tp:taxon-name-part></tp:taxon-name>), the largest genus on Earth, with DNA barcode database for forestry pest diagnostics. Bulletin of Entomological Research 109: 200–211. <ext-link xlink:href="10.1017/S0007485318000330" ext-link-type="doi">https://doi.org/10.1017/S0007485318000330</ext-link></mixed-citation>
      </ref>
      <ref id="B28">
        <mixed-citation>Khanam R, Hussain M (2024) YOLOv11: an overview of the key architectural enhancements. arXiv 2410.17725. <ext-link xlink:href="10.48550/arXiv.2410.17725" ext-link-type="doi">https://doi.org/10.48550/arXiv.2410.17725</ext-link></mixed-citation>
      </ref>
      <ref id="B29">
        <mixed-citation>Klooster WS, Gandhi KJ, Long LC, Perry KI, Rice KB, Herms DA (2018) Ecological impacts of emerald ash borer in forests at the epicenter of the invasion in North America. Forests 9: 250. <ext-link xlink:href="10.3390/f9050250" ext-link-type="doi">https://doi.org/10.3390/f9050250</ext-link></mixed-citation>
      </ref>
      <ref id="B30">
        <mixed-citation>Kovacs KF, Haight RG, McCullough DG, Mercader RJ, Siegert NW, Liebhold AM (2010) Cost of potential emerald ash borer damage in US communities, 2009–2019. Ecological Economics 69: 569–578. <ext-link xlink:href="10.1016/j.ecolecon.2009.09.004" ext-link-type="doi">https://doi.org/10.1016/j.ecolecon.2009.09.004</ext-link></mixed-citation>
      </ref>
      <ref id="B31">
        <mixed-citation>Kuhn A, San Martin G, Hasbroucq S, Beliën T, Bonte J, Bouget C, Hautier L, Sweeney J, Grégoire JC (2024) Enhancing <tp:taxon-name><tp:taxon-name-part taxon-name-part-type="family">Buprestidae</tp:taxon-name-part></tp:taxon-name> monitoring in Europe: Trap catches increase with a fluorescent yellow colour but not with the presence of decoys. PLoS ONE 19: e0307397. <ext-link xlink:href="10.1371/journal.pone.0307397" ext-link-type="doi">https://doi.org/10.1371/journal.pone.0307397</ext-link></mixed-citation>
      </ref>
      <ref id="B32">
        <mixed-citation>Le Souchu E, Bouget C, Sallé A (2024) Environmental drivers of local and temporal variations in the community of oak-associated borers (<tp:taxon-name><tp:taxon-name-part taxon-name-part-type="order">Coleoptera</tp:taxon-name-part></tp:taxon-name>: <tp:taxon-name><tp:taxon-name-part taxon-name-part-type="family">Buprestidae</tp:taxon-name-part></tp:taxon-name>). European Journal of Forest Research 143: 603–616. <ext-link xlink:href="10.1007/s10342-023-01644-y" ext-link-type="doi">https://doi.org/10.1007/s10342-023-01644-y</ext-link></mixed-citation>
      </ref>
      <ref id="B33">
        <mixed-citation>Lertrusdachakul I, Leni PE, Gschwind R, Bertheau C (2025) Deep learning for genera-level bark beetle taxonomic classification. Forest Ecology and Management 598: 123190. <ext-link xlink:href="10.1016/j.foreco.2025.123190" ext-link-type="doi">https://doi.org/10.1016/j.foreco.2025.123190</ext-link></mixed-citation>
      </ref>
      <ref id="B34">
        <mixed-citation>Limberg C, Melnik A, Harter A, Ritter H (2022) YOLO - you only look 10647 times. Proceedings of the 18<sup>th</sup> International Joint Conference on Computer Vision, Imaging and Computer Graphics Theory and Applications (VISIGRAPP 2023) - Vol. 5: VISAPP, 153–160. <ext-link xlink:href="10.48550/arXiv.2201.06159" ext-link-type="doi">https://doi.org/10.48550/arXiv.2201.06159</ext-link></mixed-citation>
      </ref>
      <ref id="B35">
        <mixed-citation>Loshchilov I, Hutter F (2017) Decoupled weight decay regularization. arXiv:1711.05101. <ext-link xlink:href="10.48550/arXiv.1711.05101" ext-link-type="doi">https://doi.org/10.48550/arXiv.1711.05101</ext-link></mixed-citation>
      </ref>
      <ref id="B36">
        <mixed-citation>Lyal CH, Miller SE (2020) Capacity of United States federal government and its partners to rapidly and accurately report the identity (taxonomy) of non-native organisms intercepted in early detection programs. Biological Invasions 22: 101–127. <ext-link xlink:href="10.1007/s10530-019-02147-x" ext-link-type="doi">https://doi.org/10.1007/s10530-019-02147-x</ext-link></mixed-citation>
      </ref>
      <ref id="B37">
        <mixed-citation>Marais GC, Stratton IC, Johnson AJ, Hulcr J (2025) Progress in developing a bark beetle identification tool. PLoS ONE 20: e0310716. <ext-link xlink:href="10.1371/journal.pone.0310716" ext-link-type="doi">https://doi.org/10.1371/journal.pone.0310716</ext-link></mixed-citation>
      </ref>
      <ref id="B38">
        <mixed-citation>Muhammad MB, Yeasin M (2020) Eigen-CAM: Class Activation Map using principal components. International Joint Conference on Neural Networks (IJCNN), Glasgow, UK, 2020, 1–7. <ext-link xlink:href="10.48550/arXiv.2008.00299" ext-link-type="doi">https://doi.org/10.48550/arXiv.2008.00299</ext-link></mixed-citation>
      </ref>
      <ref id="B39">
        <mixed-citation>Orlova-Bienkowskaja MJ, Drogvalenko AN, Zabaluev IA, Sazhnev AS, Peregudova EY, Mazurov SG, Komarov EV, Struchaev VV, Martynov VV, Nikulina TV, Bieńkowski AO (2020) Current range of <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus">Agrilus</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species">planipennis</tp:taxon-name-part></tp:taxon-name></italic> Fairmaire, an alien pest of ash trees, in European Russia and Ukraine. Annals of Forest Science 77: 29. <ext-link xlink:href="10.1007/s13595-020-0930-z" ext-link-type="doi">https://doi.org/10.1007/s13595-020-0930-z</ext-link></mixed-citation>
      </ref>
      <ref id="B40">
        <mixed-citation>Paiero SM, Jackson MD, Jewiss–Gaines A, Kimoto T, Gill BD, Marshall SA (2012) Field guide to the jewel beetles of Northeastern North America (<tp:taxon-name><tp:taxon-name-part taxon-name-part-type="order">Coleoptera</tp:taxon-name-part></tp:taxon-name>: <tp:taxon-name><tp:taxon-name-part taxon-name-part-type="family">Buprestidae</tp:taxon-name-part></tp:taxon-name>). Canadian Food Inspection Agency, 411 pp. <ext-link xlink:href="https://publications.gc.ca/site/eng/9.699803/publication.html" ext-link-type="uri">https://publications.gc.ca/site/eng/9.699803/publication.html</ext-link></mixed-citation>
      </ref>
      <ref id="B41">
        <mixed-citation>Poland TM, Petrice TR, Ciaramitaro TM (2019) Trap designs, colors, and lures for emerald ash borer detection. Frontiers in Forests and Global Change 2: 80. <ext-link xlink:href="10.3389/ffgc.2019.00080" ext-link-type="doi">https://doi.org/10.3389/ffgc.2019.00080</ext-link></mixed-citation>
      </ref>
      <ref id="B42">
        <mixed-citation>Pureswaran D, Meurisse N, Rassati D, Liebhold AM, Faccoli M (2022) Climate change and invasion by non-native bark and ambrosia beetles. In: Hofstetter RW, Gandhi K (Eds) Bark beetle management, ecology and climate change. Academic Press, New York, 3–30. <ext-link xlink:href="10.1016/B978-0-12-822145-7.00002-7" ext-link-type="doi">https://doi.org/10.1016/B978-0-12-822145-7.00002-7</ext-link></mixed-citation>
      </ref>
      <ref id="B43">
        <mixed-citation>Rassati D, Marini L, Marchioro M, Rapuzzi P, Magnani G, Poloni R, Di Giovanni F, Mayo P, Sweeney J (2019) Developing trapping protocols for wood-boring beetles associated with broadleaf trees. Journal of Pest Science 92: 267–279. <ext-link xlink:href="10.1007/s10340-018-0984-y" ext-link-type="doi">https://doi.org/10.1007/s10340-018-0984-y</ext-link></mixed-citation>
      </ref>
      <ref id="B44">
        <mixed-citation>Redmon J, Divvala S, Girshick R, Farhadi A (2016) You Only Look Once: unified, real-time object detection. Proceedings of the IEEE conference on computer vision and pattern recognition, 779–788. <ext-link xlink:href="10.1109/CVPR.2016.91" ext-link-type="doi">https://doi.org/10.1109/CVPR.2016.91</ext-link></mixed-citation>
      </ref>
      <ref id="B45">
        <mixed-citation>Ruzzier E, Haack RA, Curletti G, Roques A, Volkovitsh MG, Battisti A (2023) Jewels on the go: exotic buprestid around the world (<tp:taxon-name><tp:taxon-name-part taxon-name-part-type="order">Coleoptera</tp:taxon-name-part></tp:taxon-name>: <tp:taxon-name><tp:taxon-name-part taxon-name-part-type="family">Buprestidae</tp:taxon-name-part></tp:taxon-name>). NeoBiota 84: 107–135. <ext-link xlink:href="10.3897/neobiota.84.90829" ext-link-type="doi">https://doi.org/10.3897/neobiota.84.90829</ext-link></mixed-citation>
      </ref>
      <ref id="B46">
        <mixed-citation>Santoiemma G, Battisti A, Courtin C, Curletti G, Faccoli M, Feddern N, Francese J, Franzen EKL, Giannone F, Gossner MM, Kostanowicz C, Marchioro M, Nardi D, Ray AM, Roques A, Sweeney J, Van Rooyen K, Webster V, Rassati D (2024a) Testing a trapping protocol for generic surveillance of wood-boring beetles in heterogeneous landscapes. NeoBiota 95: 77–95. <ext-link xlink:href="10.3897/neobiota.95.129483" ext-link-type="doi">https://doi.org/10.3897/neobiota.95.129483</ext-link></mixed-citation>
      </ref>
      <ref id="B47">
        <mixed-citation>Santoiemma G, Williams D, Booth EG, Cavaletto G, Connell J, Curletti G, de Groot M, Devine SM, Enston A, Francese JA, Franzen EKL, Giasson M, Groznik E, Gutowski JM, Hauptman T, Hinterstoisser W, Hoch G, Hoppe B, Hughes C, Kostaniwicz C, Peterson D, Plewa R, Ray AM, Sallé A, Sućko K, Sweeney J, Van Rooyen K, Rassati D (2024b) Efficacy of trapping protocols for <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus">Agrilus</tp:taxon-name-part></tp:taxon-name></italic> jewel beetles (<tp:taxon-name><tp:taxon-name-part taxon-name-part-type="order">Coleoptera</tp:taxon-name-part></tp:taxon-name>: <tp:taxon-name><tp:taxon-name-part taxon-name-part-type="family">Buprestidae</tp:taxon-name-part></tp:taxon-name>): a multi-country assessment. Journal of Pest Science 97: 1795–1810. <ext-link xlink:href="10.1007/s10340-023-01728-z" ext-link-type="doi">https://doi.org/10.1007/s10340-023-01728-z</ext-link></mixed-citation>
      </ref>
      <ref id="B48">
        <mixed-citation>Santoiemma G, Sweeney J, Booth EG, Cavaletto G, Curletti G, Devine SM, Francese JA, Franzen EKL, Giannone F, Giasson M, Gutowski JM, Hughes C, Kimoto T, Kostanowicz C, Mokrzycki T, Plewa R, Ray AM, Qingfan M, Williams D, Yan L, Rassati D (2025) Efficacy of unbaited and baited green multi-funnel traps for detection of <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus">Agrilus</tp:taxon-name-part></tp:taxon-name></italic> species and other wood-boring beetle taxa. Journal of Pest Science 98: 1317–1333. <ext-link xlink:href="10.1007/s10340-024-01865-z" ext-link-type="doi">https://doi.org/10.1007/s10340-024-01865-z</ext-link></mixed-citation>
      </ref>
      <ref id="B49">
        <mixed-citation>Schaefer L (1950) Les Buprestides de France. Miscellanea Entomologica, Supplément, Paris, 511 pp.</mixed-citation>
      </ref>
      <ref id="B50">
        <mixed-citation>Shirali H, Hübner J, Both R, Raupach M, Reischl M, Schmidt S, Pylatiuk C (2024) Image-based recognition of parasitoid wasps using advanced neural networks. Invertebrate Systematics 38: IS24011. <ext-link xlink:href="10.1071/IS24011" ext-link-type="doi">https://doi.org/10.1071/IS24011</ext-link></mixed-citation>
      </ref>
      <ref id="B51">
        <mixed-citation>Silk PJ, Ryall K, Roscoe L (2020) Emerald ash borer, <italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus">Agrilus</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species">planipennis</tp:taxon-name-part></tp:taxon-name></italic> (<tp:taxon-name><tp:taxon-name-part taxon-name-part-type="order">Coleoptera</tp:taxon-name-part></tp:taxon-name>: <tp:taxon-name><tp:taxon-name-part taxon-name-part-type="family">Buprestidae</tp:taxon-name-part></tp:taxon-name>), detection and monitoring in Canada. Forestry 93: 273–279. <ext-link xlink:href="10.1093/forestry/cpz036" ext-link-type="doi">https://doi.org/10.1093/forestry/cpz036</ext-link></mixed-citation>
      </ref>
      <ref id="B52">
        <mixed-citation>Tan M, Le QV (2019) EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks. Proceedings of the 36<sup>th</sup> International Conference on Machine Learning, ICML 2019, 6105–6114. <ext-link xlink:href="10.48550/arXiv.1905.11946" ext-link-type="doi">https://doi.org/10.48550/arXiv.1905.11946</ext-link></mixed-citation>
      </ref>
      <ref id="B53">
        <mixed-citation>Tan M, Le QV (2021) EfficientNetV2: Smaller Models and Faster Training. Proceedings of the 38<sup>th</sup> International Conference on Machine Learning, ICML 2021, 10096–10106. <ext-link xlink:href="10.48550/arXiv.2104.00298" ext-link-type="doi">https://doi.org/10.48550/arXiv.2104.00298</ext-link></mixed-citation>
      </ref>
      <ref id="B54">
        <mixed-citation>Tannous M, Stefanini C, Romano D (2023) A deep-learning-based detection approach for the identification of insect species of economic importance. Insects 14: 148. <ext-link xlink:href="10.3390/insects14020148" ext-link-type="doi">https://doi.org/10.3390/insects14020148</ext-link></mixed-citation>
      </ref>
      <ref id="B55">
        <mixed-citation>Teixeira AC, Ribeiro J, Morais R, Sousa JJ, Cunha A (2023) A systematic review on automatic insect detection using deep learning. Agriculture 13: 713. <ext-link xlink:href="10.3390/agriculture13030713" ext-link-type="doi">https://doi.org/10.3390/agriculture13030713</ext-link></mixed-citation>
      </ref>
      <ref id="B56">
        <mixed-citation>Valan M, Makonyi K, Maki A, Vondráček D, Ronquist F (2019) Automated taxonomic identification of insects with expert-level accuracy using effective feature transfer from convolutional networks. Systematic Biology 68: 876–895. <ext-link xlink:href="10.1093/sysbio/syz014" ext-link-type="doi">https://doi.org/10.1093/sysbio/syz014</ext-link></mixed-citation>
      </ref>
      <ref id="B57">
        <mixed-citation>Volkovitsh MG, Orlova-Bienkowskaja MJ, Kovalev AV, Bieńkowski AO (2020) An illustrated guide to distinguish emerald ash borer (<italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus">Agrilus</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species">planipennis</tp:taxon-name-part></tp:taxon-name></italic>) from its congeners in Europe. Forestry 93: 316–325. <ext-link xlink:href="10.1093/forestry/cpz024" ext-link-type="doi">https://doi.org/10.1093/forestry/cpz024</ext-link></mixed-citation>
      </ref>
      <ref id="B58">
        <mixed-citation>Wührl L, Pylatiuk C, Giersch M, Lapp F, von Rintelen T, Balke M, Schimdt S, Cerretti P, Meier R (2022) DiversityScanner: Robotic handling of small invertebrates with machine learning methods. Molecular Ecology Resources 22: 1626–1638. <ext-link xlink:href="10.1111/1755-0998.13567" ext-link-type="doi">https://doi.org/10.1111/1755-0998.13567</ext-link></mixed-citation>
      </ref>
      <ref id="B59">
        <mixed-citation>Wührl L, Rettenberger L, Meier R, Hartop E, Graf J, Pylatiuk C (2024) Entomoscope: An open-source photomicroscope for biodiversity discovery. IEEE Access 12: 11785–11794. <ext-link xlink:href="10.1109/ACCESS.2024.3355272" ext-link-type="doi">https://doi.org/10.1109/ACCESS.2024.3355272</ext-link></mixed-citation>
      </ref>
    </ref-list>
    <fn-group>
      <fn id="FN">
        <p>Valerio Caruso and Hossein Shirali contributed equally to this work.</p>
      </fn>
    </fn-group>
    <sec sec-type="supplementary-material">
      <title>Supplementary materials</title>
      <supplementary-material id="S1" position="float" orientation="portrait" xlink:type="simple">
        <object-id content-type="doi">10.3897/neobiota.105.180959.suppl1</object-id>
        <object-id content-type="zenodo_dep_id">19089740</object-id>
        <object-id content-type="arpha">FE9377E4-0FD7-59B4-9A1C-C86C5558491C</object-id>
        <label>Supplementary material 1</label>
        <caption>
          <p>Supplementary information</p>
        </caption>
        <statement content-type="dataType">
          <label>Data type</label>
          <p>docx</p>
        </statement>
        <media xlink:href="neobiota-105-319_article-180959__-s001.docx" mimetype="application" mime-subtype="vnd.openxmlformats-officedocument.wordprocessingml.document" position="float" orientation="portrait" id="oo_1547051.docx">
          <uri content-type="original_file">https://binary.pensoft.net/file/1547051</uri>
        </media>
        <permissions>
          <license>
            <license-p>This dataset is made available under the Open Database License (<ext-link ext-link-type="uri" xlink:href="http://opendatacommons.org/licenses/odbl/1.0/">http://opendatacommons.org/licenses/odbl/1.0/</ext-link>). The Open Database License (ODbL) is a license agreement intended to allow users to freely share, modify, and use this Dataset while maintaining this same freedom for others, provided that the original source and author(s) are credited.</license-p>
          </license>
        </permissions>
        <attrib specific-use="authors"> Valerio Caruso, Hossein Shirali, Christophe Bouget, Pierfilippo Cerretti, Gianfranco Curletti, Maarten de Groot, Eva Groznik, Jerzy M. Gutowski, Christian Pylatiuk, Radosław Plewa, Alain Roques, Aurelien Salle, Jon Sweeney, Kate Van Rooyen, Lorenz Wührl, Davide Rassati</attrib>
      </supplementary-material>
    </sec>
  </back>
</article>
