A “ smart ” trap device for detection of crawling insects and other arthropods in urban environments

We introduce a device for automatic detection and reporting of crawling insects in urban environments. It is a monitoring device for urban pests that complies with the context of smart homes, smart cities and is compatible with the emerging discipline of the Internet of Things (IoT). We believe it can find its place to every room of a hotel, hospital, military camp and residence. This box-shaped device attracts targeted insect pests, senses the entering insect and takes automatically a picture of the internal space of the box. The picture is communicated through the Wi-Fi commonly found in such establishments to an authorized person/stakeholder receiving the picture to take proper action. The e-trap includes strong attractants (pheromone and/or food) to increase capture efficiency. The insect is trapped on the sticky floor of the device. The device carries the necessary optoelectronic sensors to guard all entrances of the trap. As the insect enters it interrupts the infrared light source. This triggers a detection event; a picture is taken, and a time-stamp is set before reporting the event through the Wi-Fi. The device can be integrated seamlessly in urban environments and operates unobtrusively to human activities. We report results on various insect pests and depending on the insect species, can reach a detection accuracy ranging from 9699%. Preprints (www.preprints.org) | NOT PEER-REVIEWED | Posted: 25 June 2018 doi:10.20944/preprints201806.0375.v1 © 2018 by the author(s). Distributed under a Creative Commons CC BY license.


Introduction
The quality of life for most people in the future will be represented in the cities' quality of life index.The European Commission has, in recent years, been increasing its focus on urban issues, as a response to the fact that by 2020 it is estimated that almost 80% of EU citizens will be living in cities [1].Cities provide development and growth, and generally better life benefits than in rural areas.Apart from quality of living, houses, buildings, roads, schools, hospitals, markets, and other structures that characterize the urban environment, cities also provide habitats for a special group of insects and other arthropods, some of which have attained pest status, the so-called "urban insects" [2][3][4].
Contrarily to agroecosystems, pest status in the urban environment may not be based on a measurable feature.The damage and the control treatments costs cannot always be determined.Structural damage (e.g., termites, wood boring beetles), sanitary problems (e.g., cockroaches), health threats (e.g., bed bugs), or simple annoyance only by the insect presence (e.g., insects in houses, stinging insects), have been developed to common cases in urban environments.A decision to apply control measures may be based on potential damage or personal injury, or solely or in part on emotion.
Arthropods in the urban environment are completely unacceptable, whether their populations are low or high.Pest management and control strategies are based on early detection and pest identification before applying chemical and nonchemical control treatments.
Early pest detection is crucial for an effective and affordable control in urban environments.For this purpose, various trap types (mainly sticky) are frequently used by homeowners, pest management professionals, and urban entomologist researchers for detecting infestations of crawling insects like ants, termites, bedbugs, cockroaches, earwigs, beetles, moth larvae, etc., as well as other crawling arthropods such as spiders, millipedes, centipedes, etc. [2,5,6].These devices provide consistent estimates not only of insects' presence (detection) and relative abundance (monitoring), but they are also useful for evaluating insecticide treatment efficacy (post-treatment analysis) and control purposes (population reduction) [7][8][9].
As a detection tool, sticky traps provide information on distribution and population density, thereby assisting in properly targeting insecticide applications.Because of their safety, ease of use, and non-toxicity, sticky traps are considered to be a valuable tool in integrated pest management (IPM) programs especially in urban environments.
For the purposes of this study, trapping tests were performed for the detection of three very common crawling insects in urban environments.
A. Cockroaches (Order: Blattodea): They are cosmopolitan insects, occurring nearly all over the world.Although, most of the approximately 4000 described species live in small populations in forest habitats, their association with decaying organic matter and humid conditions maintains some species (nearly 30) in the urban environment.They may become very serious pests given that they can passively transport pathogenic microbes on their body surfaces.Particularly, in environments such as hospitals [10,11], they are often linked with allergic reactions in humans [12] and asthma [13].These allergens are heat-stable and persistent in the living space.Approximately 20-50% of homes with no visible sign of cockroaches have detectable cockroach allergens in dust [14].
B. Ants (Hymenoptera: Formicidae): The pest status of ants is based on their nesting and foraging habits.The urban environment provides a variety of soil types and conditions, suitable for a large number of ant species [2,15].Nesting along building foundations can result in damage to structural members of buildings, and to exterior faces.Ants usually enter the buildings to find food, demonstrating remarkable persistence foraging inside and establishing satellite nests indoors.The habit of foraging ants to visit a variety of food sources increases their potential to acquire pathogenic and food decay microbes.A large number of pathogens have been recorded from ant species, including bacteria (Burkholderia, Clostridium, Enterobacter, Salmonella, etc.) and fungi (Aspergillus, Penicillium, etc.), [2,15,16].Pest ants in the urban environment have a significant economic impact both on the pest control industry and the general public.Many times, ants have been ranked as the number one pest problem of households, even surpassing cockroaches [17].Most important and well-studied species are the fire ants (Solenopsis sp.), because of their medical and agricultural impact [18]; the Pharaoh ants (Monomorium pharaonis), which are major household pests and can act as disease vectors in hospitals [19]; and carpenter ants (Camponotus spp.), which are important wood-destroying organisms [20].
Recently, we observe an upsurge of interest in shifting sophisticated, high-tech procedures to insect sensing that are typically encountered in other research fields (see the LIDAR applications on insect fauna [23], Perles in optical sensing of termites [24], Potamitis for electronic e-traps for flying insects [25][26][27][28], and Zhong on applying deep learning to insects trapped on sticky traps [29]).This study belongs to this general trend but is different to its aim and cause.Our study aims to introduce a novel "intelligent" trap that can be hidden conveniently under a bed or fixed to the wall that can become a useful tool for the automated early detection of crawling insects and other arthropods in urban environments.Though we have tested three widely encountered cases the applicability can be directly extended to other cases as well, namely: The presence mainly of Bed Bugs (Hemiptera: Cimicidae) and Cloth Moths that feed on stored fabrics (Lepidoptera: Tineidae) can be devastating for the reputation and prospect of a hotel or hospital in the era of TripAdvisor, Instagram, and Facebook.The proposed device will curtail the cost of Integrated Pest Management (IPM) applied to hotels as it will limit the application of IPM from a prescheduled basis (i.e., once a year) to an on-time, localized (i.e., per room) application of IPM.More on, it allows the hotel to advertise that it takes best action to protect its customers and their children by applying surveillance control on insects.

Trap Design and Function
This box-shaped device with dimensions of 21 cm × 11 cm × 7.5 cm, including the plastic box and the attached electronic kit (Figure 1) attracts insect pests, senses the entering insect and takes automatically a picture of the internal space of the box.The picture is communicated through the Wi-Fi commonly found in such establishments to an authorized person/stakeholder receiving the picture to take proper action.In this way, continuous, accurate and verifiable, real-time detection is achieved, without the need for human intervention.It is a monitoring device for urban pests in the context of smart homes and smart cities, and is compatible with the emerging discipline of the Internet of Things (IoT) (see Figure 2 for the way we envision its application).
Electronics 2018, 7, x FOR PEER REVIEW 3 of 11 become a useful tool for the automated early detection of crawling insects and other arthropods in urban environments.Though we have tested three widely encountered cases the applicability can be directly extended to other cases as well, namely: The presence mainly of Bed Bugs (Hemiptera: Cimicidae) and Cloth Moths that feed on stored fabrics (Lepidoptera: Tineidae) can be devastating for the reputation and prospect of a hotel or hospital in the era of TripAdvisor, Instagram, and Facebook.The proposed device will curtail the cost of Integrated Pest Management (IPM) applied to hotels as it will limit the application of IPM from a prescheduled basis (i.e., once a year) to an ontime, localized (i.e., per room) application of IPM.More on, it allows the hotel to advertise that it takes best action to protect its customers and their children by applying surveillance control on insects.

Trap Design and Function
This box-shaped device with dimensions of 21 cm × 11 cm × 7.5 cm, including the plastic box and the attached electronic kit (Figure 1) attracts insect pests, senses the entering insect and takes automatically a picture of the internal space of the box.The picture is communicated through the Wi-Fi commonly found in such establishments to an authorized person/stakeholder receiving the picture to take proper action.In this way, continuous, accurate and verifiable, real-time detection is achieved, without the need for human intervention.It is a monitoring device for urban pests in the context of smart homes and smart cities, and is compatible with the emerging discipline of the Internet of Things (IoT) (see Figure 2 for the way we envision its application).Our smart trap functions like a classic floor trap.Traps may differ greatly in design features (shape, size, surface material, etc.) and the presence of attractants (food, pheromone).All these factors along with placement method influence dramatically the trap efficacy [30].
The box includes a strong attractant to attract the insects and maximize captures.The insect is trapped on a sticky surface that is inside the device, basically a cardboard coated with special insect glue (Tangle-Trap ® Sticky Coatings, Tanglefoot, Marysville, Washington, DC, USA) that lasts (remains sticky) for 4-6 months.The sticky floor provides the means for immediate verification of reported results.Captured insects frequently release additional pheromone by themselves and increase the attractiveness.The presence of multiple attractants targeting different insect species simultaneously is also possible and recommended.
The concept presented in this work does not depend on a specific trap configuration and many types are compatible with it.In this work, we modified a well-known trap for crawling insects (TRAPPER Pest Monitor ® , Bell Labs, Murray Hill, NJ, USA) on which we added the electronic components (see Figure 1-Right).This trap has multiple entrances that are all monitored simultaneously by a single laser beam (infrared laser PN: 980MD-30-1230-CAB/NANMA).Any entering pest will interrupt the laser's beam, and this triggers a time counter.The wavelength of the laser is at 980 nm and its power at 30 mW.Our smart trap functions like a classic floor trap.Traps may differ greatly in design features (shape, size, surface material, etc.) and the presence of attractants (food, pheromone).All these factors along with placement method influence dramatically the trap efficacy [30].
The box includes a strong attractant to attract the insects and maximize captures.The insect is trapped on a sticky surface that is inside the device, basically a cardboard coated with special insect glue (Tangle-Trap ® Sticky Coatings, Tanglefoot, Marysville, Washington, DC, USA) that lasts (remains sticky) for 4-6 months.The sticky floor provides the means for immediate verification of reported results.Captured insects frequently release additional pheromone by themselves and increase the attractiveness.The presence of multiple attractants targeting different insect species simultaneously is also possible and recommended.
The concept presented in this work does not depend on a specific trap configuration and many types are compatible with it.In this work, we modified a well-known trap for crawling insects (TRAPPER Pest Monitor ® , Bell Labs, Murray Hill, NJ, USA) on which we added the electronic components (see Figure 1-Right).This trap has multiple entrances that are all monitored simultaneously by a single laser beam (infrared laser PN: 980MD-30-1230-CAB/NANMA).Any entering pest will interrupt the laser's beam, and this triggers a time counter.The wavelength of the laser is at 980 nm and its power at 30 mW.After 20 s a photograph (Camera OV2640, cmos sensor camera module, Omnivision, Santa Clara, CA, USA) of the internal volume of the trap is taken (Figure 3), time-stamped and delivered to prestored mail addresses while a copy of the picture is stored internally in the SD card of the device.The time delay ensures that is given enough time to the insect that follows the chemical signals of the bait to crawl inside.The crossing of the laser beam by an insect effects a voltage drop in the receiver's amplifier.The drop is analogous to the size of the insect.A minimum and maximum threshold is set during monitoring of the voltage drop based on inactive, targeted pests.For example, when we need to monitor cockroaches we do not want the system to be triggered by the accidental entrance of an ant.Note that a random entrance is uncommon as targeted insects enter the trap because the follow their corresponding pheromones.Similarly, we monitor the time delay of the entering event based on marking the onset and the end of an entering event.A long delay is atypical for an insect movement and this initiates a possible malfunction notice sent through the Wi-Fi (e.g., an insect blocking the entrance).The speed of the entering pest is also calculated, and atypical speeds are rejected as false alarms.
The processor that handles all tasks is a STM32F767 ARM Microcontroller (see Figure 1-Right).After 20 s a photograph (Camera OV2640, cmos sensor camera module, Omnivision, Santa Clara, CA, USA) of the internal volume of the trap is taken (Figure 3), time-stamped and delivered to pre-stored mail addresses while a copy of the picture is stored internally in the SD card of the device.The time delay ensures that is given enough time to the insect that follows the chemical signals of the bait to crawl inside.The crossing of the laser beam by an insect effects a voltage drop in the receiver's amplifier.The drop is analogous to the size of the insect.A minimum and maximum threshold is set during monitoring of the voltage drop based on inactive, targeted pests.For example, when we need to monitor cockroaches we do not want the system to be triggered by the accidental entrance of an ant.Note that a random entrance is uncommon as targeted insects enter the trap because the follow their corresponding pheromones.Similarly, we monitor the time delay of the entering event based on marking the onset and the end of an entering event.A long delay is atypical for an insect movement and this initiates a possible malfunction notice sent through the Wi-Fi (e.g., an insect blocking the entrance).The speed of the entering pest is also calculated, and atypical speeds are rejected as false alarms.
The processor that handles all tasks is a STM32F767 ARM Microcontroller (see Figure 1-Right).
their corresponding pheromones.Similarly, we monitor the time delay of the entering event based on marking the onset and the end of an entering event.A long delay is atypical for an insect movement and this initiates a possible malfunction notice sent through the Wi-Fi (e.g., an insect blocking the entrance).The speed of the entering pest is also calculated, and atypical speeds are rejected as false alarms.
The processor that handles all tasks is a STM32F767 ARM Microcontroller (see Figure 1-Right).A diagram of the system summarizing its modules and their interconnection is depicted in the block diagram of Figure 4.The STM32F767 processors has all the communication buses that are required for the task.The laser sends 200 Hz pulses of 12 µs duration.The pulses are received by the photodiode and are amplified.The amplifier's output is driven to analogue input of the processor.The processor runs an algorithm that reads the amplitude of the signal and detects if the beam of light has been interrupted.If so, then, after 20 s a light illuminates the trap and the camera takes a picture.The jpeg picture is transferred through the 8-BIT DCMI interface to the memory of the processor and stored in the SD card.The communication of the processor with the SD is done through the 4-BIT SPI interface.Subsequently, the photograph is sent via the Wi-Fi functionality to predefined e-mails.The e-mails as well as other parameters are stored in a settings file stored in the SD card of the system.The software is written in C language using the IAR Embedded workbench.The programming of the flash memory has been done using the ST-Link V2 programmer.The code initialization was done using the STM32CubeMX of ST.For programming the peripheral sub-components such as the SD and the camera, ADC and the Wi-Fi interface we made use of the STM32 HAL Drivers.

Evaluation
For the purposes of our study, a prototype of this trap was tested under real conditions in three cases.Our trap was placed: The STM32F767 processors has all the communication buses that are required for the task.The laser sends 200 Hz pulses of 12 µs duration.The pulses are received by the photodiode and are amplified.The amplifier's output is driven to analogue input of the processor.The processor runs an algorithm that reads the amplitude of the signal and detects if the beam of light has been interrupted.If so, then, after 20 s a light illuminates the trap and the camera takes a picture.The jpeg picture is transferred through the 8-BIT DCMI interface to the memory of the processor and stored in the SD card.The communication of the processor with the SD is done through the 4-BIT SPI interface.Subsequently, the photograph is sent via the Wi-Fi functionality to predefined e-mails.The e-mails as well as other parameters are stored in a settings file stored in the SD card of the system.The software is written in C language using the IAR Embedded workbench.The programming of the flash memory has been done using the ST-Link V2 programmer.The code initialization was done using the STM32CubeMX of Electronics 2018, 7, 161 6 of 11 ST.For programming the peripheral sub-components such as the SD and the camera, ADC and the Wi-Fi interface we made use of the STM32 HAL Drivers.

Evaluation
For the purposes of our study, a prototype of this trap was tested under real conditions in three cases.Our trap was placed: (a) in an old food warehouse with an increased presence of cockroaches in Agrinio, Central Greece.
Trap placement lasted from early to mid-May 2018.(b) in a livestock unit with large ant populations in Larissa, Central Greece.Trap placement lasted from early to mid-April 2018.(c) in an old-style granary (horizontal type) with a heavy insect infestation in stored wheat mass in Farsala, Central Greece.Trap placement lasted from early to mid-March 2018.
Trap placement lasted about two weeks in all cases.The trap was visually checked by a qualified entomologist on a daily basis, and the number of captured insect individuals was recorded.These manual records were compared with the data that were automatically recorded by the trap and sent wirelessly.Non-target insects or other arthropods that may enter the trap accidentally were not included in the results but in our experiments, these were rare cases.During each manual inspection the sticky surface with captured insects was removed for examination in the lab (Figure 5) and replaced by an identical one clean sticky cardboard surface.In all cases the proper attractant was placed in the center of sticky surface in order to make sure that insects would enter the trap.Baits applied for each target were: pure wheat germ oil (HealthAid, Harrow, London, UK) for stored food beetles, 25% sugar solution for ants, and Trapper roach attractant (Bell Labs, Murray Hill, NJ, USA) for cockroaches.
Electronics 2018, 7, x FOR PEER REVIEW 6 of 11 Trap placement lasted about two weeks in all cases.The trap was visually checked by a qualified entomologist on a daily basis, and the number of captured insect individuals was recorded.These manual records were compared with the data that were automatically recorded by the trap and sent wirelessly.Non-target insects or other arthropods that may enter the trap accidentally were not included in the results but in our experiments, these were rare cases.During each manual inspection the sticky surface with captured insects was removed for examination in the lab (Figure 5) and replaced by an identical one clean sticky cardboard surface.In all cases the proper attractant was placed in the center of sticky surface in order to make sure that insects would enter the trap.Baits applied for each target were: pure wheat germ oil (HealthAid, Harrow, London, UK) for stored food beetles, 25% sugar solution for ants, and Trapper roach attractant (Bell Labs, Murray Hill, NJ, USA) for cockroaches.

Results and Discussion
Results from the evaluation of the prototype trap are presented in Figure 6 where the result of a linear regression analysis of the manual records and the automatic counts from our system.The slope of the regression line indicates the association between manual and system counting, and r represents the fraction of the total variance of system counting that is explained by the variation in manual records.The analysis result shows that the counting numbers of insects obtained by manual observation and automatic counting system are greatly related (96-99%).

Results and Discussion
Results from the evaluation of the prototype trap are presented in Figure 6 where the result of a linear regression analysis of the manual records and the automatic counts from our system.The slope of the regression line indicates the association between manual and system counting, and r represents the fraction of the total variance of system counting that is explained by the variation in manual records.The analysis result shows that the counting numbers of insects obtained by manual observation and automatic counting system are greatly related (96-99%).
Results from the evaluation of the prototype trap are presented in Figure 6 where the result of a linear regression analysis of the manual records and the automatic counts from our system.The slope of the regression line indicates the association between manual and system counting, and r represents the fraction of the total variance of system counting that is explained by the variation in manual records.The analysis result shows that the counting numbers of insects obtained by manual observation and automatic counting system are greatly related (96-99%).In order to evaluate the accuracy of the proposed system, the numbers of the captures measured by the system were compared to those counted manually.The inaccuracy of the system is based on the error between manual counting and system counting.Equation (1), which represents the accuracy of the system, is shown as follows: where α is the counting accuracy of the system, Mc is the number of the captures by manual counting, and Ac is the number of the automatically counted captures.The results are shown in Table 1.
As it is clearly presented, our smart trap is very accurate, achieving about 90% accuracy on automatic counts compared with manually counted numbers of captured insects.The accuracy of our system in detecting insect presence is also shown by the very high correlation (r > 0.96 in all cases) between the generated signals and actual numbers of insects caught in the trap.
To the best of our knowledge, it is the first time that an automated remote system is evaluated In order to evaluate the accuracy of the proposed system, the numbers of the captures measured by the system were compared to those counted manually.The inaccuracy of the system is based on the error between manual counting and system counting.Equation (1), which represents the accuracy of the system, is shown as follows: where α is the counting accuracy of the system, Mc is the number of the captures by manual counting, and Ac is the number of the automatically counted captures.The results are shown in Table 1.
As it is clearly presented, our smart trap is very accurate, achieving about 90% accuracy on automatic counts compared with manually counted numbers of captured insects.The accuracy of our system in detecting insect presence is also shown by the very high correlation (r > 0.96 in all cases) between the generated signals and actual numbers of insects caught in the trap.
To the best of our knowledge, it is the first time that an automated remote system is evaluated under real conditions in detecting insect pests in urban environments.Lab studies have been carried out on the development of automated detection of insects [31][32][33] but in a totally different context from ours (e.g., probes inserted in the grain mass).
Our study aims to introduce a novel trap-device that we believe it can find its place to every urban environment such as houses, hotel rooms, hospitals, underground stations and trains, military camps, airports, food markets and storages.Such a device will also curtail the cost of Integrated Pest Management (IPM) as it will limit the application of IPM from a prescheduled basis (i.e., once a year) to an on-time, localized (i.e., per room) application of IPM.It has been well documented that insects may act as a "pathogen reservoir", which especially in a hospital environment, may cause serious health hazards [34][35][36].Insect problems can be detrimental for the financial prospect of a private hospital establishment or for the managemental capability of the head of the hotel and finally of the Ministry of Health [37].
Again, the presence of ants, cockroaches, bed bugs or stored food insects in home residencies, schools or even in military camps may become a serious problem with unforeseen consequences [2,38].With a cost of materials roughly 30 Euros (as per 13 August 2018) the device has also the prospect to be widely accepted by typical residencies at least to one device per house.
Finally, the suggested product conforms with the concept of the smart house and through the emerging trend of IoT it can connect the concept of a smart house to a smart city that keeps an eye-watch on the insects at larger spatial scales.

Conclusions
With the recent advancements in wireless communications, networks, and integrated sensors, the ability to use wireless sensor networks (WSNs) to cover large areas with a network of IoT nodes that collectively transmit information to a central server in real-time has become available.Wireless sensor networks have been demonstrated to exhibit the potential of being used in massive scale for environmental parameter monitoring.While they are constantly evolving to the point of a widely used technology, the requirements for an automated trap, including autonomous operation pose practical limitations to the use of off-the-shelf solutions, thus leading to the design and development of custom hardware.This is due to the type of sensor (imaging and presence), the application field, the need for low power operation, adaptable size to match the trap, robustness to environmental conditions, the need for spatial coverage and the existence of isolated or remote monitoring spots.The main concept is to hide a small, affordable device for insect surveillance of urban crawling insects and forget its existence until the user receives a picture in his/her mobile.
The smart trap presented in this work was developed following the above requirements, for fully-automated operation.The cost and size will allow multiple traps to be installed in possibly concealed locations such as under beds, as instructed by the IPM strategy with a sole technical requirement of sufficient Wi-Fi coverage, which is nowadays taken for granted in most indoor environments.
As the events are relayed via wireless networking, following the IoT architecture, these traps may be integrated to any smart-building infrastructure.This may allow the establishment of applications ranging from end-user notification/alerting in order to take appropriate measures, to condition-based insect management depending on set business rules.Moreover, as insect infestation may not be localized on a building basis but be widespread, by centralizing the server infrastructure and providing geolocational information for each smart trap, an interactive infestation map may be created, adding the system to the smart city concept.Future work relates detection of urban insects and deep learning classification algorithms that have become a standard in visual-based applications of artificial intelligence as in the paradigm of Zhong [29], where the device automatically counts the insects and reports their identity and as in Sadegh et al. [39] where the identity of wild animals is automatically inferred based on their picture.

Figure 1 .
Figure 1.(Left) A prototype of the smart trap.(Right) The electronics are mounted on top of a plastic trap.

Figure 1 .
Figure 1.(Left) A prototype of the smart trap.(Right) The electronics are mounted on top of a plastic trap.

11 Figure 2 .
Figure 2. Surveillance of urban, crawling insects in the context of smart-cities.Residential accounts, food processing plants, military camps, underground stations, and hospitals are some of the main locations that can be monitored independently or as part of a regional/country network in the context of the Internet of Things (IoT).

Figure 3 .
Figure 3. Photograph from the internal of the trap, automatically taken 20 s after insect's entrance.

Figure 2 .
Figure 2. Surveillance of urban, crawling insects in the context of smart-cities.Residential accounts, food processing plants, military camps, underground stations, and hospitals are some of the main locations that can be monitored independently or as part of a regional/country network in the context of the Internet of Things (IoT).

Figure 3 .
Figure 3. Photograph from the internal of the trap, automatically taken 20 s after insect's entrance.Figure 3. Photograph from the internal of the trap, automatically taken 20 s after insect's entrance.

Figure 3 .
Figure 3. Photograph from the internal of the trap, automatically taken 20 s after insect's entrance.Figure 3. Photograph from the internal of the trap, automatically taken 20 s after insect's entrance.

Electronics 2018, 7 ,
x FOR PEER REVIEW 5 of 11 A diagram of the system summarizing its modules and their interconnection is depicted in the block diagram of Figure 4.

Figure 4 .
Figure 4. System diagram of the functionality of the suggested device.

Figure 4 .
Figure 4. System diagram of the functionality of the suggested device.

Figure 5 .
Figure 5. Evaluation of reported results.Sticky surface inside the trap after 2 days of placement in (Left) a cereal grain storage facility with serious insect infestations, (Right) in an old food warehouse with an increased presence of cockroaches.

Figure 5 .
Figure 5. Evaluation of reported results.Sticky surface inside the trap after 2 days of placement in (Left) a cereal grain storage facility with serious insect infestations, (Right) in an old food warehouse with an increased presence of cockroaches.

Figure 6 .
Figure 6.Accuracy of the automatic counting in comparison with actual detection, each species target insect.The values of the correlation coefficient r prove that our system is > 96% accurate (when detected and counted values are the same then r equals to 1).

Figure 6 .
Figure 6.Accuracy of the automatic counting in comparison with actual detection, each species target insect.The values of the correlation coefficient r prove that our system is > 96% accurate (when detected and counted values are the same then r equals to 1).

Table 1 .
The counting accuracy of the proposed "smart" trap.