IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v10y2022i3p295-d727846.html
   My bibliography  Save this article

Classification of Fruit Flies by Gender in Images Using Smartphones and the YOLOv4-Tiny Neural Network

Author

Listed:
  • Mikhail A. Genaev

    (Mathematical Center in Akademgorodok, 630090 Novosibirsk, Russia
    Department of Mathematics and Mechanics, Novosibirsk State University, 630090 Novosibirsk, Russia
    Institute of Cytology and Genetics, Siberian Branch of the Russian Academy of Sciences, 630090 Novosibirsk, Russia
    Kurchatov Genomics Center, Institute of Cytology and Genetics, Siberian Branch of the Russian Academy of Sciences, 630090 Novosibirsk, Russia)

  • Evgenii G. Komyshev

    (Mathematical Center in Akademgorodok, 630090 Novosibirsk, Russia
    Department of Mathematics and Mechanics, Novosibirsk State University, 630090 Novosibirsk, Russia
    Institute of Cytology and Genetics, Siberian Branch of the Russian Academy of Sciences, 630090 Novosibirsk, Russia
    Kurchatov Genomics Center, Institute of Cytology and Genetics, Siberian Branch of the Russian Academy of Sciences, 630090 Novosibirsk, Russia)

  • Olga D. Shishkina

    (Institute of Cytology and Genetics, Siberian Branch of the Russian Academy of Sciences, 630090 Novosibirsk, Russia)

  • Natalya V. Adonyeva

    (Institute of Cytology and Genetics, Siberian Branch of the Russian Academy of Sciences, 630090 Novosibirsk, Russia)

  • Evgenia K. Karpova

    (Institute of Cytology and Genetics, Siberian Branch of the Russian Academy of Sciences, 630090 Novosibirsk, Russia)

  • Nataly E. Gruntenko

    (Institute of Cytology and Genetics, Siberian Branch of the Russian Academy of Sciences, 630090 Novosibirsk, Russia)

  • Lyudmila P. Zakharenko

    (Institute of Cytology and Genetics, Siberian Branch of the Russian Academy of Sciences, 630090 Novosibirsk, Russia)

  • Vasily S. Koval

    (Institute of Cytology and Genetics, Siberian Branch of the Russian Academy of Sciences, 630090 Novosibirsk, Russia
    Kurchatov Genomics Center, Institute of Cytology and Genetics, Siberian Branch of the Russian Academy of Sciences, 630090 Novosibirsk, Russia)

  • Dmitry A. Afonnikov

    (Mathematical Center in Akademgorodok, 630090 Novosibirsk, Russia
    Department of Mathematics and Mechanics, Novosibirsk State University, 630090 Novosibirsk, Russia
    Institute of Cytology and Genetics, Siberian Branch of the Russian Academy of Sciences, 630090 Novosibirsk, Russia
    Kurchatov Genomics Center, Institute of Cytology and Genetics, Siberian Branch of the Russian Academy of Sciences, 630090 Novosibirsk, Russia)

Abstract

The fruit fly Drosophila melanogaster is a classic research object in genetics and systems biology. In the genetic analysis of flies, a routine task is to determine the offspring size and gender ratio in their populations. Currently, these estimates are made manually, which is a very time-consuming process. The counting and gender determination of flies can be automated by using image analysis with deep learning neural networks on mobile devices. We proposed an algorithm based on the YOLOv4-tiny network to identify Drosophila flies and determine their gender based on the protocol of taking pictures of insects on a white sheet of paper with a cell phone camera. Three strategies with different types of augmentation were used to train the network. The best performance ( F 1 = 0.838) was achieved using synthetic images with mosaic generation. Females gender determination is worse than that one of males. Among the factors that most strongly influencing the accuracy of fly gender recognition, the fly’s position on the paper was the most important. Increased light intensity and higher quality of the device cameras have a positive effect on the recognition accuracy. We implement our method in the FlyCounter Android app for mobile devices, which performs all the image processing steps using the device processors only. The time that the YOLOv4-tiny algorithm takes to process one image is less than 4 s.

Suggested Citation

  • Mikhail A. Genaev & Evgenii G. Komyshev & Olga D. Shishkina & Natalya V. Adonyeva & Evgenia K. Karpova & Nataly E. Gruntenko & Lyudmila P. Zakharenko & Vasily S. Koval & Dmitry A. Afonnikov, 2022. "Classification of Fruit Flies by Gender in Images Using Smartphones and the YOLOv4-Tiny Neural Network," Mathematics, MDPI, vol. 10(3), pages 1-19, January.
  • Handle: RePEc:gam:jmathe:v:10:y:2022:i:3:p:295-:d:727846
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/10/3/295/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/10/3/295/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Matheus Cardim Ferreira Lima & Maria Elisa Damascena de Almeida Leandro & Constantino Valero & Luis Carlos Pereira Coronel & Clara Oliva Gonçalves Bazzo, 2020. "Automatic Detection and Monitoring of Insect Pests—A Review," Agriculture, MDPI, vol. 10(5), pages 1-24, May.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Dana Čirjak & Ivan Aleksi & Ivana Miklečić & Ana Marija Antolković & Rea Vrtodušić & Antonio Viduka & Darija Lemic & Tomislav Kos & Ivana Pajač Živković, 2022. "Monitoring System for Leucoptera malifoliella (O. Costa, 1836) and Its Damage Based on Artificial Neural Networks," Agriculture, MDPI, vol. 13(1), pages 1-19, December.
    2. Jorge Mendes & Emanuel Peres & Filipe Neves dos Santos & Nuno Silva & Renato Silva & Joaquim João Sousa & Isabel Cortez & Raul Morais, 2022. "VineInspector: The Vineyard Assistant," Agriculture, MDPI, vol. 12(5), pages 1-23, May.
    3. Ana Cláudia Teixeira & José Ribeiro & Raul Morais & Joaquim J. Sousa & António Cunha, 2023. "A Systematic Review on Automatic Insect Detection Using Deep Learning," Agriculture, MDPI, vol. 13(3), pages 1-24, March.
    4. Wei Li & Tengfei Zhu & Xiaoyu Li & Jianzhang Dong & Jun Liu, 2022. "Recommending Advanced Deep Learning Models for Efficient Insect Pest Detection," Agriculture, MDPI, vol. 12(7), pages 1-17, July.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jmathe:v:10:y:2022:i:3:p:295-:d:727846. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.