Bactrocera dorsalis trapping and counting device and counting method thereof
By designing a fruit fly trapping and counting device, a cam and comb structure is used to guide the fruit flies into the area in an orderly manner and count them using a fiber optic sensor. This solves the problems of time-consuming and labor-intensive fruit fly monitoring and large counting errors in existing technologies, and achieves efficient and stable fruit fly trapping and counting.
Patent Information
- Application Number
- CN202511226540.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-29
- Publication Date
- 2025-12-23
AI Technical Summary
Existing methods for monitoring oriental fruit flies are time-consuming, labor-intensive, have poor timeliness, are easily interfered with, and have high management costs. Automatic counting devices are prone to oriental fruit flies escaping, have large counting errors, and are unstable in performance, making it difficult to achieve long-term, high-precision trapping and counting.
Design a counting device for attracting oriental fruit flies. The device uses a cam and comb structure to guide oriental fruit flies into the trap in an orderly manner and counts them through a fiber optic sensor. It combines motor drive and continuous attraction with a attractant. The comb structure prevents escape and uses the time difference between the protrusions and the oriental fruit flies to filter out false alarms.
It achieves stable trapping and high-precision counting of oriental fruit flies, reduces the complexity of detection mechanisms, improves service life and counting accuracy, and is suitable for long-term field work.
Smart Images

Figure CN121189362A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of biological sampling technology, and in particular to a counting device and method for attracting and counting fruit flies (Bactrocera dorsalis). Background Technology
[0002] The citrus fruit fly belongs to the order Diptera, family Tetranychidae, subfamily Oligochaetae, and genus Flyflies. It has strong flight ability, adaptability, and reproductive capacity, and it damages more than 250 kinds of fruit trees, vegetables, and flowers from 46 families, many of which are important economic crops.
[0003] Monitoring the oriental fruit fly (Bactrocera dorsalis) is an effective means of determining its population status, extent, and spread trend, providing a basis for pest early warning and forecasting and the scientific formulation of control strategies. Traditional monitoring methods involve setting up observation points in the field, hanging trap bottles, and manually counting the number of fruit flies collected at regular intervals to assess population dynamics. However, this method has drawbacks such as being time-consuming and labor-intensive, having poor timeliness, being susceptible to interference, and having high management costs, and is no longer able to cope with the increasingly serious and ever-changing oriental fruit fly infestation situation.
[0004] To achieve long-term, stable, real-time, and efficient field monitoring of the population dynamics of the oriental fruit fly (Bactrocera dorsalis), researchers have conducted numerous studies on automated trapping and counting devices and monitoring systems. For example, photoelectric sensors or machine vision are used for automatic counting of oriental fruit flies. However, these automated counting devices generally suffer from problems such as easy escape of oriental fruit flies, large counting errors, and unstable performance, making it difficult to achieve long-term, high-precision trapping and counting. Summary of the Invention
[0005] The present invention aims to at least solve one of the aforementioned technical problems existing in the prior art. To this end, this application proposes a fruit fly trapping and counting device, which can trap and accurately count fruit flies, and has high stability, making it suitable for long-term field operation.
[0006] This application also proposes a counting method based on the above-mentioned oriental fruit fly trapping and counting device, which can perform high-precision counting of oriental fruit flies.
[0007] The oriental fruit fly trapping and counting device according to a first aspect embodiment of this application includes: A trap box with an internal cavity, the trap box having an inlet and an outlet that connect to the cavity; A cam has a protrusion on its side. The cam rotates within the cavity. The end face of the cam and the top of the protrusion are both in contact with the inner wall of the cavity. The protrusion is provided with a plurality of first comb bars arranged side by side. An interception block is installed at the outlet of the trap box. The interception block is provided with a plurality of second combs arranged side by side. The second combs are tangent to the base circle of the cam. The first comb can pass through the gap between the second combs. The distance between the first comb and the second comb is smaller than the size of the oriental fruit fly. A trap container is mounted on the side of the cam; An electric motor, the output shaft of which is connected to and drives the cam to rotate; A fiber optic sensor is installed in the trap box to count oriental fruit flies; A collection box, which is connected to the outlet of the trap box.
[0008] The oriental fruit fly trapping and counting device according to the embodiments of this application has at least the following beneficial effects: through the continuous rotation of the cam, the attractant container can continuously attract oriental fruit flies into the trapping box; the evenly distributed protrusions on the cam can guide the oriental fruit flies through the fiber optic sensor in an orderly manner, while preventing the oriental fruit flies from returning to the detection area, thus avoiding repeated counting caused by the random movement of the oriental fruit flies; moreover, the interdigitated structure of the first and second combs can effectively prevent the oriental fruit flies from escaping and guide them into the collection box. This structure does not cause material fatigue problems and has better stability and a longer service life.
[0009] According to some embodiments of this application, during the rotation of the cam, the first comb moves from the end of the second comb to the root.
[0010] According to some embodiments of this application, the interception block is provided with a guide ramp, one end of which is connected to the outlet of the trap box, and the other end of which is connected to the root of the second comb.
[0011] According to some embodiments of this application, the number of bumps is at least four and they are distributed in a circular array around the rotation axis of the cam.
[0012] According to some embodiments of this application, the attractant container is disposed between two adjacent bumps.
[0013] According to some embodiments of this application, the attractant container includes a bottle body, a plug, and a sponge. One end of the bottle body is open, the plug is installed at the open end of the bottle body, the plug has a through hole, and the sponge is filled in the plug.
[0014] According to some embodiments of this application, the fiber optic sensor includes a beam emitter and a beam receiver. A first opening and a second opening are respectively provided on opposite sides of the trap box. The beam emitter is installed in the first opening, and the beam receiver is installed in the second opening. The beam emitted by the beam emitter can pass through the first opening, the cavity and the second opening and be directed to the beam receiver.
[0015] According to some embodiments of this application, the collection box is equipped with an attraction box, which is filled with an attractant.
[0016] According to some embodiments of this application, the oriental fruit fly trapping and counting device further includes a housing, which is fitted over the outside of the trapping box, and the housing has an opening to expose the entrance of the trapping box.
[0017] The counting method according to the second aspect of this application, which is based on the above-described fruit fly trapping and counting device, includes: The motor drives the cam to rotate; The oriental fruit fly is attracted by the attractant in the attractant container and enters from the entrance of the trap box, and stays on the side of the cam; The continuous rotation of the cam draws the oriental fruit fly into the trap box, while the top of the protrusion fits against the inner wall of the cavity, guiding the oriental fruit fly and preventing it from escaping. When the oriental fruit fly passes through the fiber optic sensor, it triggers the fiber optic sensor to count. At the same time, since the time it takes for the bump to pass through the fiber optic sensor is significantly different from the time it takes for the oriental fruit fly to pass through the fiber optic sensor, the system automatically filters out false alarms from the bump's count. The protrusion moves to the outlet of the trap box, the first comb is inserted into the gap of the second comb, the second comb drives the oriental fruit fly away from the side of the cam, and the oriental fruit fly moves from the outlet of the trap box to the collection box, thus completing the collection of the oriental fruit fly; The cam continues to rotate, repeating the above steps to continuously trap, count, and collect oriental fruit flies.
[0018] The counting method according to the embodiments of this application has at least the following beneficial effects: the oriental fruit fly passes through the fiber optic sensor under the drive of the cam for counting and finally enters the collection box. During this process, by distinguishing the different passing times of the bump and the oriental fruit fly in front of the fiber optic sensor, the false alarms of the bump are filtered out, thereby improving the counting accuracy and reducing the complexity of the detection mechanism.
[0019] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0020] The accompanying drawings are used to provide a further understanding of the technical solutions disclosed in this application and form part of the specification. They are used together with the embodiments disclosed in this application to explain the technical solutions of this application and do not constitute a limitation on the technical solutions disclosed in this application.
[0021] Figure 1 This is a schematic diagram of the appearance of the oriental fruit fly trapping and counting device according to the first aspect of this application; Figure 2 This is a schematic diagram of the oriental fruit fly trapping and counting device according to the first aspect of this application after removing the outer casing; Figure 3 This is an exploded view of the oriental fruit fly trapping and counting device according to the first aspect of this application; Figure 4 for Figure 3 A magnified view of a section at point A in the middle; Figure 5 for Figure 3 A magnified view of a section at point B in the middle; Figure 6 This is a cross-sectional view of the trap container in the oriental fruit fly trapping and counting device according to the first aspect of this application.
[0022] Reference numerals: 100-Catching box, 110-Cavity, 120-Inlet, 130-Outlet, 200-Cam, 210-Protrusion, 211-First comb bar, 300-Interceptor block, 310-Second comb bar, 400-Attractant container, 410-Bottle body, 420-Plug, 430-Sponge, 500-Motor, 600-Fiber optic sensor, 610-Beam emitter, 620-Beam receiver, 700-Collection box, 710-Attractor box, 800-Outer shell. Detailed Implementation
[0023] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application.
[0024] In the description of this application, it should be understood that the orientation descriptions, such as up, down, front, back, left, right, etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application.
[0025] In the description of this application, "several" means one or more, "multiple" means two or more, "greater than," "less than," and "exceeding" are understood to exclude the stated number, while "above," "below," and "within" are understood to include the stated number. The use of "first" and "second" in the description is merely for distinguishing technical features and should not be construed as indicating or implying relative importance, or implicitly indicating the number of indicated technical features, or implicitly indicating the order of the indicated technical features.
[0026] In the description of this application, unless otherwise expressly defined, terms such as "setup," "installation," and "connection" should be interpreted broadly, and those skilled in the art can reasonably determine the specific meaning of the above terms in this application in conjunction with the specific content of the technical solution.
[0027] In the description of this application, the terms "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0028] The citrus fruit fly belongs to the order Diptera, family Tetranychidae, subfamily Oligochaetae, and genus Flyflies. It has strong flight ability, adaptability, and reproductive capacity, and it damages more than 250 kinds of fruit trees, vegetables, and flowers from 46 families, many of which are important economic crops.
[0029] Monitoring the oriental fruit fly (Bactrocera dorsalis) is an effective means of determining its population status, extent, and spread trend, providing a basis for pest early warning and forecasting and the scientific formulation of control strategies. Traditional monitoring methods involve setting up observation points in the field, hanging trap bottles, and manually counting the number of fruit flies collected at regular intervals to assess population dynamics. However, this method has drawbacks such as being time-consuming and labor-intensive, having poor timeliness, being susceptible to interference, and having high management costs, and is no longer able to cope with the increasingly serious and ever-changing oriental fruit fly infestation situation.
[0030] To achieve long-term, stable, real-time, and efficient field monitoring of the population dynamics of the oriental fruit fly (Bactrocera dorsalis), researchers have conducted numerous studies on automated trapping and counting devices and monitoring systems. For example, photoelectric sensors or machine vision are used for automatic counting of oriental fruit flies. However, these automated counting devices generally suffer from problems such as easy escape of oriental fruit flies, large counting errors, and unstable performance, making it difficult to achieve long-term, high-precision trapping and counting.
[0031] In response, this application proposes a fruit fly trapping and counting device. Through the continuous rotation of the cam, the bait container can continuously attract fruit flies into the trapping box. The evenly distributed protrusions on the cam can guide the fruit flies through the fiber optic sensor in an orderly manner, while preventing the fruit flies from returning to the detection area, thus avoiding repeated counting caused by the random movement of the fruit flies. Moreover, the interdigitated structure of the first and second combs can effectively prevent the fruit flies from escaping and guide them into the collection box. This structure does not cause material fatigue and has better stability and a longer service life.
[0032] In addition, this application also proposes a counting method based on the above-mentioned oriental fruit fly trapping and counting device. The oriental fruit fly is driven by a cam to pass through the fiber optic sensor for counting and finally enters the collection box. During this process, the different passing times of the protrusion and the oriental fruit fly in front of the fiber optic sensor are distinguished to filter out false alarms of the protrusion counting, thereby improving the counting accuracy and reducing the complexity of the detection mechanism.
[0033] Reference Figures 1 to 3 The oriental fruit fly trapping and counting device in the first aspect of this application includes a trapping box 100, a cam 200, an intercepting block 300, a bait container 400, a motor 500, a fiber optic sensor 600, and a collection box 700. The trapping box 100 and the collection box 700 together constitute the main structure of the oriental fruit fly trapping and counting device. The trapping box 100 is mainly used to attract oriental fruit flies and count them, while the collection box 700 is mainly used to collect the captured oriental fruit flies. The cam 200 rotates within the trapping box 100 to guide oriental fruit flies into the trapping box 100 and prevent them from escaping. The intercepting block 300 prevents oriental fruit flies from escaping the trapping box 100 and guides them from the trapping box 100 into the collection box 700. The bait container 400 is used to fill with bait, which attracts oriental fruit flies from the outside into the trapping box 100 through its odor. Motor 500 is used to drive cam 200 to rotate, and fiber optic sensor 600 is used to count oriental fruit flies.
[0034] Specifically, refer to Figure 3 The trap box 100 has an interior cavity 110, and the trap box 100 has an entrance 120 and an exit 130 that connect to the cavity 110. The oriental fruit fly enters the cavity 110 through the entrance 120 and eventually leaves through the exit 130.
[0035] The cam 200 has a protrusion 210 on its side. The cam 200 rotates within the cavity 110. The end face of the cam 200 and the top of the protrusion 210 are both in contact with the inner wall of the cavity 110, thereby preventing the oriental fruit fly from escaping through the gap between the cam 200 and the cavity 110. The oriental fruit fly can only be confined to the recessed area of the cam 200 and move with the protrusion 210. It is worth noting that, referring to... Figure 4The protrusion 210 is provided with multiple first comb strips 211 arranged side by side.
[0036] The interceptor block 300 is installed at the outlet 130 of the trap box 100, as shown in the reference. Figure 5 The interceptor block 300 is provided with a plurality of second comb bars 310 arranged side by side. The second comb bars 310 are tangent to the base circle of the cam 200. In this application, the base circle refers to the circle drawn in the cam 200 with the minimum radial distance of the cam profile as the radius. The first comb bar 211 can pass through the gaps between the second comb bars 310, and the distance between the first comb bar 211 and the second comb bar 310 is smaller than the size of the oriental fruit fly, where the size of the oriental fruit fly refers to the length, width or height of its outer contour. Therefore, when the protrusion 210 moves to the outlet 130, the first comb 211 will pass through the gap of the second comb 310, and the intercepting block 300 will not affect the continued rotation of the cam 200; at the same time, the second comb 310 sweeps across the concave area of the cam 200, driving the oriental fruit fly away from the cam 200. Finally, with the arrival of the next protrusion 210, the oriental fruit fly can only be driven to the outlet of the trap box 100. As the number of collected oriental fruit flies increases, the oriental fruit flies enter the collection box 700 from the trap box 100.
[0037] Furthermore, a lure box 710 is installed in the collection box 700, and the lure box 710 is filled with attractant, thereby helping to improve the efficiency of oriental fruit flies entering the collection box 700 from the trap box 100.
[0038] A trap container 400 is mounted on the side of the cam 200 and is filled with a trap. The trap in this application is a biological trap, generally a volatile liquid, using methyl eugenol, which can effectively attract oriental fruit flies, causing them to stay on the cam 200.
[0039] The output shaft of motor 500 is connected to cam 200 and drives it to rotate, thereby realizing the automatic trapping of the fruit fly trapping and counting device.
[0040] A fiber optic sensor 600 is installed in the trap box 100 to count oriental fruit flies. When an oriental fruit fly passes through the beam emitted by the fiber optic sensor 600, the fiber optic sensor 600 is triggered and starts counting.
[0041] The collection box 700 is connected to the outlet 130 of the trap box 100, thereby collecting the oriental fruit flies that have been driven away from the trap box 100.
[0042] Specifically, during the rotation of the cam 200, the first comb bar 211 moves from the end of the second comb bar 310 to its root, thereby correspondingly, the end of the second comb bar 310 first inserts into the recessed area of the cam 200. As the second comb bar 310 continues to insert, the oriental fruit fly is gradually driven away from the surface of the cam 200.
[0043] Furthermore, the interception block 300 is provided with a guide ramp, one end of which is connected to the outlet 130 of the trap box 100, and the other end of which is connected to the root of the second comb 310. Thus, after being driven away by the second comb 310, the oriental fruit fly can be guided by the guide ramp to crawl out of the outlet of the trap box 100.
[0044] Furthermore, the number of protrusions 210 is at least four and they are arranged in a circular array around the rotation axis of the cam 200. For example, in the embodiment of this application, the number of protrusions 210 is four.
[0045] Furthermore, the attractant container 400 is positioned between two adjacent protrusions 210, thereby attracting oriental fruit flies to stay in the space between the two protrusions 210.
[0046] Furthermore, referring to Figure 6 The bait container 400 includes a bottle body 410, a plug 420, and a sponge 430. One end of the bottle body 410 is open, and the plug 420 is installed at the open end of the bottle body 410. The plug 420 has a through hole, and the sponge 430 is connected to the plug 420. The bottle body 410 is filled with bait. When the bait container 400 is inverted as the cam 200 rotates, the bait flows from the through hole of the plug 420 to the sponge 430, where the sponge 430 fully absorbs the flowing bait. When the bait container 400 continues to rotate and is upright, the bait on the sponge 430 begins to evaporate, and the emitted scent attracts oriental fruit flies into the trap box 100. Thus, with the continuous rotation of the cam 200, the bait container 400 is cyclically replenished with bait, and the scent emitted by the sponge 430 attracts oriental fruit flies. On the one hand, the near-sealed environment inside the bottle 410 reduces the natural evaporation of the attractant and the number of times the attractant needs to be replenished from the outside. On the other hand, the attractant evaporates at the sponge 430, and the attractant has a larger contact area with the outside air through the sponge 430, resulting in a better attraction effect.
[0047] Furthermore, the fiber optic sensor 600 includes a beam emitter 610 and a beam receiver 620. A first opening and a second opening are respectively provided on opposite sides of the trap box 100. The beam emitter 610 is installed in the first opening, and the beam receiver 620 is installed in the second opening. The beam emitted by the beam emitter 610 can pass through the cavity 110 and reach the beam receiver 620. When an object passes between the beam emitter 610 and the beam receiver 620, the beam is interrupted, thereby triggering the fiber optic sensor 600 to perform counting.
[0048] For the analysis of data detected by the fiber optic sensor 600, this oriental fruit fly trapping and counting device also includes a circuit system, which mainly comprises a microcontroller, a motor drive module, a serial communication module, and a power management module. The counting signal from the fiber optic sensor 600 is input through the microcontroller's I / O port. The microcontroller identifies oriental fruit flies by determining the trigger characteristics of the signal and completes the counting, storing the data in the microcontroller's power-off save unit EEPROM. Motor speed adjustment, power on / off, data access, and data clearing are all performed by the host computer issuing function commands to the microcontroller via the serial communication module.
[0049] Furthermore, the oriental fruit fly trapping and counting device also includes a housing 800, which is fitted over the outside of the trapping box 100. The housing 800 has an opening to expose the entrance of the trapping box 100. The function of the housing 800 is to protect the trapping box 100 and the various electronic components installed on it, reducing damage to the trapping box 100 caused by external rain or impacts.
[0050] A counting method according to a second aspect embodiment of this application, which is based on the above-mentioned fruit fly trapping and counting device, includes the following steps: S100. Motor 500 drives cam 200 to rotate; S200. The oriental fruit fly is attracted by the bait in the bait container 400 and enters from the inlet 120 of the trap box 100, and stays on the side of the cam 200. S300. The continuous rotation of the cam 200 brings the oriental fruit fly into the trap box 100, while the top of the protrusion 210 fits against the inner wall of the cavity 110 to prevent the oriental fruit fly from escaping. S400. When the oriental fruit fly passes through the fiber optic sensor 600, the fiber optic sensor 600 is triggered to count. At the same time, since the time it takes for the bump 210 to pass through the fiber optic sensor 600 is significantly different from the time it takes for the oriental fruit fly to pass through the fiber optic sensor 600, the system automatically filters out false counts of the bump 210. S500. The protrusion 210 moves to the outlet 130 of the trap box 100, the first comb 211 is inserted into the gap of the second comb 310, the second comb 310 drives the oriental fruit fly away from the side of the cam 200, and the oriental fruit fly flies from the outlet 130 of the trap box 100 to the collection box 700, thus completing the collection of the oriental fruit fly. S600. Cam 200 continues to rotate, repeating the above steps to continuously trap, count, and collect oriental fruit flies.
[0051] The embodiments of this application have been described in detail above with reference to the accompanying drawings. However, this application is not limited to the above embodiments. Within the scope of knowledge possessed by those skilled in the art, various changes can be made without departing from the spirit of this application. Furthermore, unless otherwise specified, the embodiments and features described in the embodiments of this application can be combined with each other.
Claims
1. A device for attracting and counting oriental fruit flies, characterized in that, include: A trap box with an internal cavity, the trap box having an inlet and an outlet that connect to the cavity; A cam has a protrusion on its side. The cam rotates within the cavity. The end face of the cam and the top of the protrusion are both in contact with the inner wall of the cavity. The protrusion is provided with a plurality of first comb bars arranged side by side. An interception block is installed at the outlet of the trap box. The interception block is provided with a plurality of second combs arranged side by side. The second combs are tangent to the base circle of the cam. The first comb can pass through the gap between the second combs. The distance between the first comb and the second comb is smaller than the size of the oriental fruit fly. A trap container is mounted on the side of the cam; An electric motor, the output shaft of which is connected to and drives the cam to rotate; A fiber optic sensor is installed in the trap box to count oriental fruit flies; A collection box, which is connected to the outlet of the trap box.
2. The oriental fruit fly trapping and counting device according to claim 1, characterized in that: During the rotation of the cam, the first comb moves from the end of the second comb to the root.
3. The oriental fruit fly trapping and counting device according to claim 2, characterized in that: The interceptor block is provided with a guide ramp, one end of which is connected to the outlet of the trap box, and the other end of which is connected to the root of the second comb.
4. The oriental fruit fly trapping and counting device according to claim 1, characterized in that: The number of protrusions is at least four, and they are arranged in a circular array around the rotation axis of the cam.
5. The oriental fruit fly trapping and counting device according to claim 4, characterized in that: The attractant container is positioned between two adjacent bumps.
6. The oriental fruit fly trapping and counting device according to claim 5, characterized in that: The attractant container includes a bottle body, a plug, and a sponge. One end of the bottle body is open, the plug is installed at the open end of the bottle body, the plug has a through hole, and the sponge is filled in the plug.
7. The oriental fruit fly trapping and counting device according to claim 1, characterized in that: The fiber optic sensor includes a beam transmitter and a beam receiver. The trap box has a first opening and a second opening on opposite sides. The beam transmitter is installed in the first opening, and the beam receiver is installed in the second opening. The beam emitted by the beam transmitter can pass through the first opening, the cavity, and the second opening and reach the beam receiver.
8. The oriental fruit fly trapping and counting device according to claim 1, characterized in that: The collection box contains an attraction box filled with an attractant.
9. The oriental fruit fly trapping and counting device according to claim 1, characterized in that: The oriental fruit fly trapping and counting device also includes a housing, which is fitted over the outside of the trapping box, and the housing has an opening to expose the entrance of the trapping box.
10. A counting method based on the oriental fruit fly trapping and counting device according to any one of claims 1 to 9, characterized in that, include: The motor drives the cam to rotate; The oriental fruit fly is attracted by the attractant in the attractant container and enters from the entrance of the trap box, and stays on the side of the cam; The continuous rotation of the cam draws the oriental fruit fly into the trap box, while the top of the protrusion fits against the inner wall of the cavity to prevent the oriental fruit fly from escaping. When the oriental fruit fly passes through the fiber optic sensor, it triggers the fiber optic sensor to count. At the same time, since the time it takes for the bump to pass through the fiber optic sensor is significantly different from the time it takes for the oriental fruit fly to pass through the fiber optic sensor, the system automatically filters out false alarms from the bump's count. The protrusion moves to the outlet of the trap box, the first comb is inserted into the gap of the second comb, the second comb drives the oriental fruit fly away from the side of the cam, and the oriental fruit fly moves from the outlet of the trap box to the collection box, thus completing the collection of the oriental fruit fly; The cam continues to rotate, repeating the above steps to continuously trap, count, and collect oriental fruit flies.