Skip to main content

Thank you for visiting nature.com. You are using a browser version with limited support for CSS. To obtain the best experience, we recommend you use a more up to date browser (or turn off compatibility mode in Internet Explorer). In the meantime, to ensure continued support, we are displaying the site without styles and JavaScript.

Advertisement

Scientific Reports
  • View all journals
  • Search
  • My Account Login
  • Content Explore content
  • About the journal
  • Publish with us
  • Sign up for alerts
  • RSS feed
  1. nature
  2. scientific reports
  3. articles
  4. article
A two-stage OOD-aware approach for mosquito species detection based on RT-DETRv2
Download PDF
Download PDF
  • Article
  • Open access
  • Published: 14 May 2026

A two-stage OOD-aware approach for mosquito species detection based on RT-DETRv2

  • Zhaoxin Ni1,
  • Zelin Feng2,
  • Jiabao Jiao2,
  • Juan Li2,
  • Huaiping Zhu3 &
  • …
  • Qing Yao2 

Scientific Reports (2026) Cite this article

  • 398 Accesses

  • Metrics details

We are providing an unedited version of this manuscript to give early access to its findings. Before final publication, the manuscript will undergo further editing. Please note there may be errors present which affect the content, and all legal disclaimers apply.

Subjects

  • Computational biology and bioinformatics
  • Diseases
  • Ecology
  • Mathematics and computing

Abstract

Mosquitoes are important vectors of infectious diseases, and accurate species identification is essential for effective surveillance and control. Traditional image-based identification methods are labor-intensive, while existing deep learning models often exhibit limited generalization in real-world environments due to sensitivity to out-of-distribution (OOD) samples. To address these challenges, this study constructs a real-world mosquito dataset by integrating multiple publicly available sources, comprising 11,514 original images across 33 predefined species. To mitigate class imbalance, data augmentation is applied to the training set, resulting in a total of 17,302 images for training and evaluation. In addition, two OOD datasets are constructed, including a non-target mosquito dataset and a non-Culicidae insect dataset. Based on a comprehensive comparison of mainstream object detection models, RT-DETRv2 with a PResNet-101 backbone is selected as the baseline detector. Building upon this model, a two-stage OOD-aware approach, termed MosquitoID, is proposed by integrating Mahalanobis distance and Energy-based scoring. The first stage performs image-level OOD filtering using Mahalanobis distance, while the second stage conducts instance-level OOD discrimination based on Energy scores. Under a fixed threshold setting determined from the ID validation set to retain 95% of ID samples, experimental results show that the proposed method achieves a Precision of 92.0%, Recall of 93.8%, mAP\(_{50}\) of 90.4%, and mAP\(_{50:95}\) of 84.1% on the ID dataset. For OOD detection, MosquitoID attains AUROC values of 0.914 and 0.935 on the two OOD datasets, with corresponding FPR@95TPR values of 0.205 and 0.156, and \(F_1\)-scores of 83.7% and 90.8%. These results indicate that the proposed approach improves robustness to unknown samples and provides a practical method for mosquito detection in real-world surveillance scenarios.

Similar content being viewed by others

An annotated image dataset for training mosquito species recognition system on human skin

Article Open access 15 July 2022

Automatic identification of medically important mosquitoes using embedded learning approach-based image-retrieval system

Article Open access 30 June 2023

Classifying stages in the gonotrophic cycle of mosquitoes from images using computer vision techniques

Article Open access 13 December 2023

Funding

This work was supported by the National Natural Science Foundation of China (Grant No. 32572927) and Zhejiang Provincial Xinmiao Talent Program (Grant No. 2025R406A054).

Author information

Authors and Affiliations

  1. Qixin Honor School, Zhejiang Sci-Tech University, Hangzhou, 310018, China

    Zhaoxin Ni

  2. School of Computer Science and Technology (School of Artificial Intelligence), Zhejiang Sci-Tech University, Hangzhou, 310018, China

    Zelin Feng, Jiabao Jiao, Juan Li & Qing Yao

  3. Department of Mathematics and Statistics, York University, LAMPS, Centre for Disease Modeling (CDM), Toronto, ON, M3J 1P3, Canada

    Huaiping Zhu

Authors
  1. Zhaoxin Ni
    View author publications

    Search author on:PubMed Google Scholar

  2. Zelin Feng
    View author publications

    Search author on:PubMed Google Scholar

  3. Jiabao Jiao
    View author publications

    Search author on:PubMed Google Scholar

  4. Juan Li
    View author publications

    Search author on:PubMed Google Scholar

  5. Huaiping Zhu
    View author publications

    Search author on:PubMed Google Scholar

  6. Qing Yao
    View author publications

    Search author on:PubMed Google Scholar

Corresponding author

Correspondence to Qing Yao.

Ethics declarations

Competing interests

The authors declare that they have no competing interests.

Additional information

Publisher’s note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Ni, Z., Feng, Z., Jiao, J. et al. A two-stage OOD-aware approach for mosquito species detection based on RT-DETRv2. Sci Rep (2026). https://doi.org/10.1038/s41598-026-52890-0

Download citation

  • Received: 25 March 2026

  • Accepted: 08 May 2026

  • Published: 14 May 2026

  • DOI: https://doi.org/10.1038/s41598-026-52890-0

Share this article

Anyone you share the following link with will be able to read this content:

Sorry, a shareable link is not currently available for this article.

Provided by the Springer Nature SharedIt content-sharing initiative

Keywords

  • Mosquito species detection
  • RT-DETRv2
  • Out-of-distribution detection
  • Mahalanobis distance
  • Energy-based scoring
Download PDF

Advertisement

Explore content

  • Research articles
  • News & Comment
  • Collections
  • Subjects
  • Follow us on Facebook
  • Follow us on X
  • Sign up for alerts
  • RSS feed

About the journal

  • About Scientific Reports
  • Contact
  • Journal policies
  • Guide to referees
  • Calls for Papers
  • Editor's Choice
  • Journal highlights
  • Open Access Fees and Funding

Publish with us

  • For authors
  • Language editing services
  • Open access funding
  • Submit manuscript

Search

Advanced search

Quick links

  • Explore articles by subject
  • Find a job
  • Guide to authors
  • Editorial policies

Scientific Reports (Sci Rep)

ISSN 2045-2322 (online)

nature.com footer links

About Nature Portfolio

  • About us
  • Press releases
  • Press office
  • Contact us

Discover content

  • Journals A-Z
  • Articles by subject
  • protocols.io
  • Nature Index

Publishing policies

  • Nature portfolio policies
  • Open access

Author & Researcher services

  • Reprints & permissions
  • Research data
  • Language editing
  • Scientific editing
  • Nature Masterclasses
  • Research Solutions

Libraries & institutions

  • Librarian service & tools
  • Librarian portal
  • Open research
  • Recommend to library

Advertising & partnerships

  • Advertising
  • Partnerships & Services
  • Media kits
  • Branded content

Professional development

  • Nature Awards
  • Nature Careers
  • Nature Conferences

Regional websites

  • Nature Africa
  • Nature China
  • Nature India
  • Nature Japan
  • Nature Middle East
  • Privacy Policy
  • Use of cookies
  • Legal notice
  • Accessibility statement
  • Terms & Conditions
  • Your US state privacy rights
Springer Nature

© 2026 Springer Nature Limited

Nature Briefing Anthropocene

Sign up for the Nature Briefing: Anthropocene newsletter — what matters in anthropocene research, free to your inbox weekly.

Get the most important science stories of the day, free in your inbox. Sign up for Nature Briefing: Anthropocene