AgriAI: Turning A Farmer’s Phone into an AI Cocoa Advisor

For the Small AI for Development Hackathon organized by the World Bank Group and Hack-Nation, a group of CodeLink team members developed AgriAI, an Android cocoa farming assistant that combines offline disease detection, AI-powered guidance, and French voice interaction with SMS access to price and weather information.

2 Days

From research and design to a working AI prototype, following the Hackathon’s timeline.

8,950 Images

Public cocoa disease images used to train the computer vision model.

14,660 Annotations

Labeled bounding boxes across the training dataset.

7 Cocoa Conditions

Image classification categories covering healthy plants, diseases, and pest damage.

3 Offline AI Capabilities

Computer vision, knowledge-grounded AI assistance, and French speech interaction running directly on Android.

7 Knowledge Cards

Structured agricultural guidance used to ground AI-generated answers.

Client information background
Anonymous client logo

About the client

The Small AI for Development Hackathon challenged participants to develop practical, lightweight AI solutions addressing real-world development challenges. The event emphasized making AI accessible in resource-constrained environments, where internet connectivity, device performance, and digital literacy can limit technology adoption.

The challenge

Smallholder cocoa farmers in Côte d'Ivoire and Papua New Guinea face limited internet access, infrequent agricultural support, and significant crop disease risks. CodeLink set out to explore how lightweight, accessible AI could help farmers identify crop problems and make more informed decisions without relying on constant connectivity.

Limited Access to Timely Agricultural Guidance
Black pod disease and insect attacks can each reduce cocoa harvests in Côte d'Ivoire by approximately 30 - 40%. With agricultural extension officers visiting infrequently, farmers often rely on guesswork or advice from input sellers, increasing the risk of ineffective crop treatments.
Poor Connectivity Limits Access to AI Solutions
At the end of 2025, only 40.7% of people in Côte d'Ivoire and 24.1% in Papua New Guinea were online. Many farmers rely on affordable Android devices with limited memory, storage, and mobile data, making cloud-dependent AI tools impractical in the field.
Language, Literacy, and Trust Barriers
Limited literacy and language accessibility can make digital agricultural tools difficult to use. Farmers need straightforward guidance they can hear, understand, and verify, rather than AI-generated recommendations that may be inaccurate, overly confident, or disconnected from local farming conditions.

Why CodeLink?

CodeLink combined product research, user-centered design, on-device AI development, and full-stack engineering to tackle the challenge. With expertise spanning Android, computer vision, generative AI, and backend systems, our team transformed an agricultural use case into a working prototype within 48 hours.

The result

Completed during the Hackathon, AgriAI was submitted as a working prototype. It combines offline crop disease detection, knowledge-grounded AI guidance, and French voice interaction. An SMS hotline provides access to price and weather information without mobile data. Built in just two days, the solution demonstrates CodeLink's ability to integrate multiple on-device AI technologies into a functional, offline-first agricultural assistant designed for farmers with limited connectivity.

Offline Disease Detection with Grounded AI Guidance
AgriAI uses YOLOv8s to identify seven cocoa conditions from photos and display confidence scores. Findings connect to agricultural knowledge cards that guide an on-device Gemma language model, helping farmers understand potential problems and next steps without an internet connection.
Accessible Assistance Through Voice and SMS
Farmers can ask questions by voice, hear responses in French, and save findings in a local diary. For price and weather inquiries, AgriAI prepares an SMS that farmers choose to send. A separate hotline also lets farmers without the app request information from a basic phone.
Privacy and Safety Built into the Experience
Photos, farm records, and conversations remain on the phone. AgriAI communicates uncertainty, avoids inventing treatments or dosages, and recommends expert support when needed. The SMS system uses anonymous identifiers, message verification, and retrieval-based responses rather than server-side language generation.

Engineering Excellence.
Built for Enterprise and Institutional Innovation.

Contact Us
background

CodeLink Newsletter

Stay up to date with the latest insights on software engineering and AI strategy from CodeLink.

CodeLink

We partner with enterprises and institutions to turn complex technology challenges into reliable digital systems. Through expert software engineering, AI implementation, and disciplined delivery, we help organizations modernize operations, strengthen platforms, and deliver measurable business outcomes.

Contact Us

(+84) 2839 333 143info@codelink.io
Book A Discovery Call
2026 © CodeLink Limited.
All right reserved.
Privacy Statement |