Detection of Fruit Fly using Intelligent Traps

Agriculture has been the source of economic wealth and the vital source of the population?s food supply, which is extensively affected by the infestation of harmful insects. Thus, it requires an effort to control the infestation of such pests. Fruit Fly is one of the largest threats to the

2025-06-28 16:26:38 - Adil Khan

Project Title

Detection of Fruit Fly using Intelligent Traps

Project Area of Specialization Artificial IntelligenceProject Summary

Agriculture has been the source of economic wealth and the vital source of the population’s food supply, which is extensively affected by the infestation of harmful insects. Thus, it requires an effort to control the infestation of such pests. Fruit Fly is one of the largest threats to the fruit farms which spoils a large number of fields every year. Therefore, the objective of this project is to prevent and predict the presence of the fruit fly using intelligent traps.

Fruit Fly has been a serious threat to Pakistan’s agriculture and caused approximately 200$ million in losses to the farms, traders, retailers, and exporters annually. The traditional strategies have significant downsides, which we can feature: the serious, undesirable, and expensive work of dislodging a human by the estate, region and you can't get continuous and synchronized data from all traps as they are being visited consistently.

This solution proposes a modern idea upon the traditional ways of tackling the harms of the pests more accurately and precisely. Dataset as the images of the fruit fly, collected from the farm fields of the University of Agriculture, Faisalabad, and areas where fruit fly propagates, are used for building the deep learning model. Using the proposed solution, the propagation and the infestation of fruit flies can be taken down exponentially which would result in better farms and more wealth.

Project Objectives

The main goal is to design and develop and, an intelligent trap for the early detection of fruit flies. Furthermore, using deep learning techniques to build such an automated system to detect the fruit fly presence in the intelligent traps.The force behind the idea of the proposed solution for the detection of pests particularly fruit flies-, is to decrease the ratio of loss that is accumulated every year.

Project Implementation Method

Traps that are equipped with cameras capture the image of the fruit fly and use Computer Vision techniques to detect the fruit fly. After detecting the presence of fruit flies, the system alerts the farmer about a particular location of fruit fly infestation so that necessary measurements can be carried out.

Benefits of the Project

By implementing the proposed solution to agriculture, the stakeholders can spend their time and money on the things that would help in the growth of the fields rather than the protection and security of the farm fields.

Technical Details of Final Deliverable

Final deliverable consists of an automated dashboard that alerts the user about the presence of fruit fly in a particular area of the farm. The intelligent trap would notify on the dashboard about the particular location of the trap where fruit fly presence has detected.

Python programming language will be used as core development tool along with artificial intelligence frameworks such as, TensorFlow, jupyter notebook, and HTML, Bootstrap.

The hardware system will consist of a high-resolution camera, Raspberry Pi 2 Model B Module, and with mobile internet dongle, powered by a high-capacity battery, fixed inside the fruit fly trap.

Final Deliverable of the Project HW/SW integrated systemCore Industry ITOther Industries Agriculture Core Technology Artificial Intelligence(AI)Other Technologies OthersSustainable Development Goals Industry, Innovation and InfrastructureRequired Resources
Item Name Type No. of Units Per Unit Cost (in Rs) Total (in Rs)
Total in (Rs) 78700
Raspberry Pi 5MP Infrared night vision camera with 2 IR LED's. Equipment173007300
USB 2.0 Wifi Adapter Equipment1700700
Mobile Internet USB Dongle Equipment145004500
Fruit Fly Trap Equipment225005000
Power Bank Equipment2550011000
Bread Board Equipment2400800
Connecting Wires Equipment1200200
Methyl Eugenol, Deltamethrin Equipment1500500
Miscellaneous and farm visit Miscellaneous 187008700
Raspberry Pi 2 Model B Development Kit Equipment14000040000

More Posts