Application of Computer Vision Models for Detecting and Classifying Crop Diseases in Gambian Farms

preprint OA: closed CC-BY-4.0
📄 Open PDF Full text JSON View at publisher
Full text 75,427 characters · extracted from preprint-html · click to expand
Application of Computer Vision Models for Detecting and Classifying Crop Diseases in Gambian Farms | Research Square window.SnipcartSettings = { analytics: { enabled: false } }; (function() { var accessVector = localStorage.getItem('access_vector') || ''; window.dataLayer = window.dataLayer || []; if (accessVector) { window.dataLayer.push({ user: { profile: { profileInfo: { snid: accessVector } } } }); } })(); (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-K279D39R'); Browse Preprints In Review Journals COVID-19 Preprints AJE Video Bytes Research Tools Research Promotion AJE Professional Editing AJE Rubriq About Preprint Platform In Review Editorial Policies Our Team Advisory Board Help Center Sign In Submit a Preprint Cite Share Download PDF Research Article Application of Computer Vision Models for Detecting and Classifying Crop Diseases in Gambian Farms Cherno Basiru Jallow This is a preprint; it has not been peer reviewed by a journal. https://doi.org/ 10.21203/rs.3.rs-6463751/v1 This work is licensed under a CC BY 4.0 License Status: Posted Version 1 posted You are reading this latest preprint version Abstract Crop diseases threaten food security in The Gambia, where agriculture employs 70% of the population. This paper explores the application of computer vision models to help farmers detect and classify crop diseases more effectively, leveraging deep learning techniques—particularly convolutional neural networks (CNNs). Our fine-tuned VGG16 model achieved 91.6% accuracy in identifying diseases like rice blast and cassava mosaic, demonstrating the potential for scalable, low-cost diagnosis. The study evaluates custom CNNs, transfer learning (VGG16, ResNet50, MobileNetV2), and image preprocessing techniques (segmentation, augmentation) to optimize performance for Gambian farm conditions. Beyond technical validation, the paper highlights real-world adoption barriers, including limited technology access, farmer skepticism, and infrastructural gaps. Through surveys and interviews with 120 + farmers, we found that awareness of AI tools strongly correlates with willingness to adopt them (r = 0.63, p < 0.01), but fewer than 40% of respondents had reliable internet access. To bridge these gaps, we propose context-specific strategies: mobile-first design, localized training programs, and partnerships with agricultural extension services. By integrating technical and socio-economic insights, this study provides a roadmap for deploying computer vision in resource-constrained settings. Our rexsults underscore that while AI can transform disease management, success depends on tailoring solutions to the needs and constraints of Gambian smallholders. Artificial Intelligence and Machine Learning Agricultural Engineering Computer Vision Crop Diseases CNN Gambia Agriculture VGG16 Figures Figure 1 Introduction 1.1 Background to the Study Agriculture remains a cornerstone of The Gambia’s economy (Sarch et al., 2023), employing a significant portion of the population and contributing substantially to national food security and income generation. However, recurring outbreaks of crop diseases—such as rice blast, cassava mosaic, and bacterial infections—have posed serious challenges to productivity, particularly for smallholder farmers. Traditional methods of disease detection, which rely heavily on manual inspection and local knowledge, are often time-consuming, inconsistent, and limited in accuracy. With the rapid advancement of artificial intelligence (AI), computer vision has emerged as a promising tool for improving agricultural practices (Tian et al., 2020). By leveraging image-based analysis powered by machine learning—especially convolutional neural networks (CNNs)—computer vision systems can detect and classify crop diseases with high precision. This technology holds great potential for early intervention and more efficient crop management (Tian et al., 2020) , yet its adoption remains limited in regions like The Gambia, due to financial, infrastructural, and educational barriers. 1.2 Research Problem Despite the clear potential of computer vision technologies in agriculture, their implementation in Gambian farming systems is minimal. The core issue lies in understanding how these tools can be effectively adapted , localized, and integrated (Owino, 2023) into existing agricultural practices in The Gambia. Additionally, there is a need to evaluate not just the performance of these models in identifying crop diseases, but also their accessibility and practicality in resource-constrained rural environments. 1.3 Research Question This study addresses the following question: How can computer vision models be effectively adapted and deployed for crop disease detection in The Gambia, given the constraints of limited infrastructure, farmer accessibility, and local agricultural practices? To answer this, we evaluate (1) the technical performance of CNN-based models on Gambian crop images, and (2) the socio-economic barriers to adoption among smallholder farmers. 1.4 Objectives To explore the effectiveness of computer vision models—particularly CNNs—in detecting and classifying common crop diseases found in Gambian farms. To assess the role of image preprocessing techniques (e.g., normalization, segmentation, and augmentation) in enhancing model accuracy. To identify key barriers to the adoption of computer vision tools among Gambian farmers. To propose practical strategies for improving access to and usability of AI-based agricultural solutions in The Gambia. 1.5 Hypotheses H1: There is a significant relationship between farmers’ awareness of computer vision and their willingness to adopt it. H2: Infrastructure challenges significantly hinder the deployment of computer vision tools in rural Gambian farms. 1.6 Scope of the Study The research concentrates on major staple crops such as rice, groundnut, and cassava. Crops that are highly susceptible to common plant diseases like rice blast, cassava mosaic, and bacterial infections. The technical scope covers model design, image preprocessing techniques, performance evaluation using metrics like accuracy and F1 score, and the application of deep learning approaches including transfer learning and custom CNNs. Additionally, the study explores the socio-economic and infrastructural factors that influence technology adoption in rural farming communities in The Gambia. The research does not cover plant disease treatments or pesticide effectiveness but rather focuses solely on the early-stage detection and classification capabilities of AI-powered systems. Field testing is limited to datasets collected or simulated to reflect real-world Gambian farm conditions, without large-scale commercial deployment at this stage. 1.7 Significance of the Study The significance of this study lies in its potential to introduce a more efficient, scalable, and accessible solution to disease detection through the use of computer vision. By identifying how AI models can accurately classify crop diseases, this research offers a path toward early intervention, reducing crop losses and improving yield outcomes. It also contributes to sustainable farming by enabling targeted treatment, which helps minimize the excessive use of chemicals. The ability to automate disease diagnosis using simple image inputs—potentially via smartphones—has the potential to transform agricultural practices in resource-limited environments. Moreover, the study highlights barriers such as limited infrastructure, financial constraints, and low technological literacy—challenges that are often overlooked in tech-centered agricultural solutions. By addressing these realities, the research not only provides technical insights but also practical recommendations for implementation, training, and policy. Literature Review 2.1 Conceptual Review Computer vision in agriculture refers to the use of image-based AI systems to identify patterns, anomalies, or features in plants, soil, and farm environments (Dhanya et al., 2022). At its core, the technology mimics human vision—but with the precision and speed of algorithms that can process thousands of images quickly. These models, often powered by convolutional neural networks (CNNs), are trained to recognize symptoms of crop diseases like discoloration, spots, or texture changes. In the Gambian context, where farming is largely small-scale and heavily reliant on manual monitoring, such technology presents a massive opportunity. It promises to reduce the guesswork involved in disease identification and could be particularly helpful where agricultural extension services are overstretched or hard to reach. This section reviews what this technology is, how it works, and why it’s becoming more relevant to real-world farming challenges. 2.2 Empirical Review Several studies globally and in similar sub-Saharan African contexts have explored the effectiveness of computer vision for crop disease detection. For instance, pre-trained CNNs like ResNet and VGG16 have achieved classification accuracies upwards of 90% in differentiating healthy from diseased plants in datasets of tomatoes, maize, and rice (Chakraborty et al., 2024). Closer to The Gambia, research has been more limited. However, small-scale trials involving peanut leaf spot and rice blast disease detection using mobile image capture show promising results. Still, most of these models were developed in lab settings or other countries, which raises questions about their performance in Gambian farms where image quality, lighting, and crop varieties differ. 2.3 Theoretical Review This study draws on a few key theoretical underpinnings. The most relevant is the Technology Acceptance Model (TAM) , which helps explain how and why users (in this case, farmers) adopt new technologies. Perceived usefulness and ease of use are central here—farmers are more likely to adopt computer vision tools if they believe the tools will make their work easier and more effective. Also important is the theory behind machine learning , especially supervised learning models where the algorithm is trained on labeled datasets to make predictions. For crop disease classification, this often means feeding the model thousands of labeled images to learn what diseased versus healthy crops look like. 2.4 Existing Gap in Literature This study is anchored in two theoretical lenses: Technology Acceptance Model (TAM) – This guides our understanding of how farmers might perceive and engage with computer vision tools. Key variables like perceived ease of use, usefulness, and behavioral intention to adopt are explored in the context of Gambian agriculture. Supervised Machine Learning Theory – This underpins the technical aspect of the research. It supports the rationale behind using annotated image datasets and explains how computer vision models are trained to detect patterns that indicate disease. Together, these frameworks allow us to explore both the technical feasibility and the human factors influencing the success of computer vision tools in Gambian farming systems. Methodology 3.1 Research Design This study adopts a mixed-methods approach , blending qualitative and quantitative research strategies to capture both the technical efficacy of computer vision models and the real-world challenges faced by Gambian farmers. The design was chosen to provide a holistic understanding of how these technologies operate in theory and how they’re received in practice. On one hand, quantitative data (like model performance metrics) will help assess detection accuracy (Nutter et al., 2006). On the other, qualitative insights from farmers and stakeholders will ground our findings in lived experiences. 3.2 Area of Study The research is focused on rural farming communities in The Gambia , particularly in regions where rice, groundnuts, and vegetables are cultivated — areas most affected by crop diseases. Places like Central River Region and North Bank Region, where subsistence farming dominates, are of particular interest due to their vulnerability to crop disease outbreaks and limited access to advanced technologies. 3.3 Population of the Study The target population includes: Smallholder and subsistence farmers Agricultural extension officers Researchers and tech developers involved in digital agriculture Relevant staff from the Ministry of Agriculture This population is selected to reflect the full ecosystem affected and potentially benefitting from the implementation of computer vision technologies in farming. 3.4 Sampling Technique and Sample Size We’ll use purposive sampling for interviews and stratified random sampling for survey distribution. The purposive sample will focus on farmers with varying levels of exposure to technology, while the stratified sample ensures representation across different regions and crop types. Estimated sample size: 100 farmers across 4 major regions 10–15 agricultural officers 3–5 developers/technologists Total: ~120–130 respondents 3.5 Types and Sources of Data Collection Data will be collected through: Primary sources: Semi-structured interviews with farmers and agricultural officers Field surveys on tech adoption and crop disease experiences Image datasets collected from farms showing diseased crops Secondary sources: Academic journals, technical reports, and policy briefs Open-source image repositories (e.g., PlantVillage dataset) for model training Government reports on agriculture and digital infrastructure 3.6 Definition and Measurement of Variables Independent Variable: Application of computer vision models (measured via model type, accuracy, and accessibility) Dependent Variable: Detection and classification of crop diseases (measured through F1 scores, detection speed, and user-reported success) Moderating Variables: Infrastructure (e.g., internet availability) Farmer digital literacy Financial access Quantitative performance metrics (accuracy, recall, etc.) will be measured using standard evaluation techniques, while user feedback will be coded thematically. 3.7 Validity and Reliability of Research Instruments To ensure validity, all survey questions and interview guides will undergo expert review and pilot testing with a small group of farmers. For reliability , consistent protocols will be followed in both data collection and model evaluation, and inter-coder reliability will be maintained during qualitative data analysis. In terms of model testing, cross-validation will be used to confirm the robustness of our computer vision model performance. 3.8 Method of Data Analysis Quantitative data (e.g., survey responses, model metrics) will be analyzed using descriptive statistics, correlation tests, and model evaluation metrics such as precision, recall, and F1-score. Qualitative data from interviews will be analyzed using thematic analysis, with coding conducted in NVivo or similar software. The image classification results will be benchmarked using pre-trained models (e.g., VGG16, ResNet, MobileNet) and compared to custom-trained models using local datasets. We will also explore model interpretability (e.g., Grad-CAM visualizations) to better understand what features the model relies on — and how that aligns with farmers’ visual diagnosis techniques. Data Presentation, Analysis and Discussion 4.1 Socio-Demographic Characteristics of Respondents Understanding the background of the study’s participants provides vital context for interpreting the research outcomes. In this study, the majority of respondents were smallholder farmers operating in rural regions of The Gambia. Most participants had been farming for over 10 years, reflecting a wealth of experiential knowledge, but also highlighting generational dependence on traditional methods. Age Distribution : Respondents were predominantly between 30–55 years old. Gender : Male farmers comprised approximately 70% of the sample, consistent with broader trends in Gambian agriculture. Education Level : A significant number (over 60%) had only primary-level education or none at all, which could influence their comfort with digital tools. Farming Experience : Most had more than a decade of hands-on experience, and nearly all respondents cultivated staple crops such as rice, groundnut, and millet. These demographics suggest that while the farming population is experienced, technological literacy remains a key challenge when introducing computer vision systems. 4.2 Data Presentation on Research Issues (Objective by Objective) The data collected was organized around the research objectives, primarily focused on awareness, accessibility, and the effectiveness of computer vision models in detecting crop diseases. Objective 1: Assessing Awareness of Computer Vision Technology Findings showed that only about 25% of farmers were aware of computer vision or AI-assisted tools in agriculture. Most of that awareness came through NGOs, agricultural extension workers, or word-of-mouth from younger relatives. Objective 2: Evaluating Current Practices in Disease Detection Traditional methods—mainly visual inspection based on signs like wilting, discoloration, or leaf spots—remain the dominant approach. About 80% of respondents said they only act once symptoms are visible and crop damage is already substantial. Objective 3: Determining Perceived Benefits and Challenges When introduced to the concept of AI and image-based crop diagnosis, most farmers saw potential value in early detection, reduced pesticide use, and better yields. However, issues like cost, language barriers, and limited access to smartphones were frequently mentioned as hurdles. Objective 4: Understanding Infrastructure Readiness Data revealed significant digital infrastructure gaps. Less than 40% of farmers had reliable internet access, and only 20% had access to smartphones capable of running basic AI apps. 4.3 Test of Hypotheses This section explores whether the evidence supports the main assumptions driving the study. Hypothesis 1: "There is a significant relationship between farmers’ awareness of computer vision and their willingness to adopt it." Result : Supported. A Pearson correlation test showed a positive correlation (r = 0.63, p < 0.01), indicating that awareness strongly influences openness to adoption. Hypothesis 2: "Infrastructure challenges significantly hinder the deployment of computer vision tools in rural Gambian farms." Result : Supported. Regression analysis confirmed that poor connectivity, limited device access, and energy supply were significant predictors of limited adoption (R² = 0.71). 4.4 Discussion of Findings The findings highlight a strong interest in technology-based farming solutions, but also underline the existing barriers to implementation in The Gambia. Farmers see the value of using computer vision—especially for identifying diseases early and minimizing losses—but accessibility and trust are key roadblocks. This aligns with broader literature noting that while the technical potential of computer vision in agriculture is clear, its impact is dependent on local adaptation and support systems. Many farmers noted they’d be more likely to adopt such tools if training and ongoing support were provided. Interestingly, the data also suggests younger farmers are more open to digital innovation. This demographic could be a valuable entry point for future pilot programs. 4.5 Problems Encountered in the Field As expected, conducting fieldwork in rural Gambia posed several challenges: Limited Connectivity : In some areas, even phone networks were unreliable, making digital data collection difficult. Language Barriers : Communication had to be translated into local dialects (e.g., Mandinka, Wolof), which sometimes led to misinterpretations of technical concepts. Technophobia and Skepticism : Some respondents were suspicious of technology, worried that automation might threaten jobs or disrupt cultural farming norms. Logistical Constraints : Accessing remote villages required significant travel, often on poor road networks, which limited the frequency of researcher visits. Despite these challenges, the data collected provides valuable insights and strongly supports the relevance of computer vision in addressing crop health problems in The Gambia. 4.6 Model Performance Evaluation To effectively evaluate the performance of the computer vision models used in this study, both standard convolutional neural networks (CNNs) and transfer learning models were tested using the curated dataset of diseased and healthy crop images collected from Gambian farms. The evaluation considered accuracy, precision, recall, and F1-score, alongside qualitative visualization methods such as Grad-CAM. 4.6.1 CNN Architecture and Training A custom convolutional neural network was first implemented as a baseline model. The architecture consisted of three convolutional layers (with ReLU activation and max pooling), followed by a flattening layer, and two fully connected (dense) layers with dropout to reduce overfitting. The final output layer used softmax activation for multi-class classification of crop diseases. The model was trained using categorical cross-entropy as the loss function and Adam optimizer, with a learning rate of 0.001. Early stopping and model checkpointing were applied to ensure training stability and avoid overfitting. The model achieved reasonable performance on the validation set, with an average classification accuracy of 82.3% , but struggled slightly on minority class images such as early-stage mildew. 4.6.2 Transfer Learning with VGG16 To improve performance, transfer learning was employed using the VGG16 architecture, pre-trained on ImageNet. The convolutional base of VGG16 was frozen, and a custom classifier head was added with global average pooling, followed by dense layers and softmax output. The modified VGG16 was then fine-tuned using the crop disease dataset. This approach significantly boosted performance. The fine-tuned VGG16 model achieved: Accuracy : 91.6% Precision : 90.8% Recall : 91.2% F1-Score : 91.0% This confirmed that transfer learning, particularly with VGG16, was highly effective in extracting meaningful features from limited agricultural image data. 4.6.3 Comparison with Other Models In addition to the custom CNN and VGG16, experiments were conducted using other transfer learning models such as ResNet50 and MobileNetV2. ResNet50 showed slightly higher precision in certain classes but was computationally heavier. MobileNetV2, while faster, lagged behind in overall accuracy compared to VGG16. Model Accuracy Precision Recall F1-Score CNN (Custom) 82.3% 80.5% 79.8% 80.1% VGG16 91.6% 90.8% 91.2% 91.0% ResNet50 90.9% 91.3% 89.7% 90.5% MobileNetV2 87.2% 86.4% 85.1% 85.7% Based on these results, VGG16 was selected as the best-performing model for the final classification task, balancing high accuracy with computational efficiency. 4.6.4 Model Explainability with Grad-CAM To better understand how the VGG16 model made predictions, Gradient-weighted Class Activation Mapping (Grad-CAM) was used to visualize which parts of the input images influenced the model's decisions. The heatmaps produced by Grad-CAM highlighted diseased leaf spots, discoloration, or fungus patches—areas a human agronomist would also consider when diagnosing. These visualizations provided interpretability and increased trust in the model's predictions, making it a valuable tool for potential integration into real-world farming systems. Conclusion 5.1 Summary This study set out to explore how computer vision models can assist in detecting and classifying crop diseases in Gambian farms—a context where agriculture is central to livelihoods and food security. The research reviewed key aspects of computer vision technology, its agricultural applications, and how it can be tailored to meet the challenges faced by Gambian farmers. Through data analysis and model experimentation, the study demonstrated that deep learning, especially convolutional neural networks (CNNs), can reliably identify common diseases in crops such as rice and groundnuts. Despite the potential, it was also clear that digital infrastructure, affordability, and user-friendliness remain major barriers to adoption in rural Gambia. 5.2 Conclusion Computer vision offers an exciting, practical solution to a long-standing challenge in Gambian agriculture: timely and accurate disease detection. The study concluded that integrating these models into local farming practices could significantly reduce crop loss, improve yield quality, and promote sustainable agriculture. However, successful deployment will depend on more than just the technology itself. It requires enabling ecosystems—financial support, accessible training, digital connectivity, and policy backing. When these conditions are met, computer vision can move from theory to transformative tool. 5.3 Recommendations Based on the findings, the following recommendations are proposed: Government and donor support should focus on subsidizing the cost of computer vision tools and providing training to farmers through extension services. Tech developers should prioritize user-friendly designs and mobile-first platforms to make the technology more accessible in low-connectivity areas. Pilot programs in partnership with farming cooperatives can serve as testbeds for deploying and scaling computer vision applications in real-world scenarios. Educational institutions and research bodies should continue developing locally-relevant models trained on Gambian crop data to ensure effectiveness and cultural fit. 5.4 Contribution to Knowledge This research contributes a novel perspective by contextualizing computer vision within the realities of Gambian agriculture—a field where such studies remain limited. By mapping the technical potential against on-the-ground challenges, the study provides a blueprint for how emerging technology can bridge knowledge gaps, improve crop disease surveillance, and support sustainable farming at scale. It also adds to the growing body of research on AI in African agriculture, making a case for context-sensitive, inclusive tech solutions. 5.5 Suggestions for Further Studies Future research could explore: The performance of computer vision models on a broader variety of crops under different environmental conditions in The Gambia. Integration of drone imagery and IoT sensors with computer vision to create a more holistic precision agriculture system. Behavioral studies to understand farmer attitudes toward digital tools and identify better adoption strategies. Cost-benefit analyses comparing traditional disease control methods with AI-assisted interventions in smallholder settings. Declarations IRB This research was conducted as part of an undergraduate academic project at the University of The Gambia. It was not submitted to a formal Institutional Review Board or Ethics Committee, but the study was reviewed and approved by our academic supervisors, and the university granted permission to proceed based on the low-risk nature of the work. All participants were informed of the study’s purpose and provided verbal consent prior to participation. No sensitive or identifiable information was collected. The study complied with ethical standards for non-clinical, interview-based academic research. References Chakraborty, A., Chakraborty, A., Sobhan, A., & Pathak, A. (2024). Deep learning for precision agriculture: Detecting tomato leaf diseases with VGG-16 model. Int J Comput Appl , 975 , 8887. Dhanya, V. G., Subeesh, A., Kushwaha, N. L., Vishwakarma, D. K., Kumar, T. N., Ritika, G., & Singh, A. N. (2022). Deep learning based computer vision approaches for smart agricultural applications. Artificial Intelligence in Agriculture , 6 , 211–229. Nutter, F. W., Esker, P. D., & Netto, R. A. C. (2006). Disease Assessment Concepts and the Advancements Made in Improving the Accuracy and Precision of Plant Disease Data. European Journal of Plant Pathology , 115 (1), 95–103. https://doi.org/10.1007/s10658-005-1230-z Owino, A. (2023). Challenges of Computer Vision Adoption in the Kenyan Agricultural Sector and How to Solve Them: A General Perspective. Advances in Agriculture , 2023 , 1–9. https://doi.org/10.1155/2023/1530629 Sarch, M.-T., Owens, S., & Copestake, J. (2023). The Gambia: Country overview. In Non-Governmental Organizations and the State in Africa (pp. 213–224). Routledge. https://www.taylorfrancis.com/chapters/edit/10.4324/9781003421740-24/gambia-marie-therese-sarch-solomon-owens-james-copestake Tian, H., Wang, T., Liu, Y., Qiao, X., & Li, Y. (2020). Computer vision technology in agricultural automation—A review. Information Processing in Agriculture , 7 (1), 1–19. Additional Declarations The authors declare no competing interests. Cite Share Download PDF Status: Posted Version 1 posted You are reading this latest preprint version Research Square lets you share your work early, gain feedback from the community, and start making changes to your manuscript prior to peer review in a journal. As a division of Research Square Company, we’re committed to making research communication faster, fairer, and more useful. We do this by developing innovative software and high quality services for the global research community. Our growing team is made up of researchers and industry professionals working together to solve the most critical problems facing scientific publishing. Also discoverable on Platform About Our Team In Review Editorial Policies Advisory Board Help Center Resources Author Services Accessibility API Access RSS feed Manage Cookie Preferences © Research Square 2026 | ISSN 2693-5015 (online) Privacy Policy Terms of Service Do Not Sell My Personal Information {"props":{"pageProps":{"initialData":{"identity":"rs-6463751","acceptedTermsAndConditions":true,"allowDirectSubmit":true,"archivedVersions":[],"articleType":"Research Article","associatedPublications":[],"authors":[{"id":443851762,"identity":"e77ecc10-d5a9-4b68-a1d4-5c81a098cb85","order_by":0,"name":"Cherno Basiru Jallow","email":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAAyAQMAAABI0h/eAAAABlBMVEX///8AAABVwtN+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAABI0lEQVRIie2QMUvEMBSAEwJxeddbLVHuL3gUOrZ/5ULXchx0EqVGhLqU69r7F7pktaWgS92FW672D9hB0eUwPXWQy90smG94L3nJx8sLQgbDHwQLclmoPOk3pA9UFVcqg7VTwWJLISe9Qvf0+a301uG3q4Vcl6LoEm86ZI9lOzuPfYvV7ulr6B1RRJrnJ02PlItykQSRPZ8GTn5f8cQK3eWxDNTDqOOEumdxUQ1kwW9qcBnQYkIB3KUtiVKAMp2SNV/K3UZZx36vRLa82K3kP13UTTZICE7UAney2qM0apZ1wPMaHGcxV7MAjRiWD0CJfpZxFpSrl9rjWQrjdvYW+6OU3HYf8swfHlw1rU4R2zX19bCJuiOERtoqftffNhgMhv/JJ9sLYP2RCJ4cAAAAAElFTkSuQmCC","orcid":"https://orcid.org/0009-0003-9474-6099","institution":"MRC Unit The Gambia at the London School of Hygiene and Tropical Medecine","correspondingAuthor":true,"prefix":"","firstName":"Cherno","middleName":"Basiru","lastName":"Jallow","suffix":""}],"badges":[],"createdAt":"2025-04-16 12:58:24","currentVersionCode":1,"declarations":{"humanSubjects":false,"vertebrateSubjects":true,"conflictsOfInterestStatement":false,"humanSubjectEthicalGuidelines":false,"humanSubjectConsent":false,"humanSubjectClinicalTrial":false,"humanSubjectCaseReport":false,"vertebrateSubjectEthicalGuidelines":true},"doi":"10.21203/rs.3.rs-6463751/v1","doiUrl":"https://doi.org/10.21203/rs.3.rs-6463751/v1","draftVersion":[],"editorialEvents":[],"editorialNote":"","failedWorkflow":false,"files":[{"id":81963192,"identity":"087fe1fb-920a-4a83-a806-74bf679f9e3f","added_by":"auto","created_at":"2025-05-05 11:16:56","extension":"png","order_by":1,"title":"Figure 1","display":"","copyAsset":false,"role":"figure","size":1436559,"visible":true,"origin":"","legend":"\u003cp\u003eSocio-Demographic Characteristics of Respondents\u003c/p\u003e","description":"","filename":"floatimage1.png","url":"https://assets-eu.researchsquare.com/files/rs-6463751/v1/1cff15bee5440be69080c433.png"},{"id":81968036,"identity":"b06bba98-df74-4f1a-b432-b897f1208447","added_by":"auto","created_at":"2025-05-05 11:48:57","extension":"pdf","order_by":0,"title":"","display":"","copyAsset":false,"role":"manuscript-pdf","size":2683754,"visible":true,"origin":"","legend":"","description":"","filename":"manuscript.pdf","url":"https://assets-eu.researchsquare.com/files/rs-6463751/v1/b833f3ab-f293-4935-aaa3-605c53499ed8.pdf"}],"financialInterests":"The authors declare no competing interests.","formattedTitle":"\u003cp\u003e\u003cstrong\u003eApplication of Computer Vision Models for Detecting and Classifying Crop Diseases in Gambian Farms\u003c/strong\u003e\u003c/p\u003e","fulltext":[{"header":"Introduction","content":"\u003cp\u003e\u003cstrong\u003e1.1 Background to the Study\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eAgriculture remains a cornerstone of The Gambia\u0026rsquo;s economy (Sarch et al., 2023), employing a significant portion of the population and contributing substantially to national food security and income generation. However, recurring outbreaks of crop diseases\u0026mdash;such as rice blast, cassava mosaic, and bacterial infections\u0026mdash;have posed serious challenges to productivity, particularly for smallholder farmers. Traditional methods of disease detection, which rely heavily on manual inspection and local knowledge, are often time-consuming, inconsistent, and limited in accuracy.\u003c/p\u003e\n\u003cp\u003eWith the rapid advancement of artificial intelligence (AI), computer vision has emerged as a promising tool for improving agricultural practices (Tian et al., 2020). By leveraging image-based analysis powered by machine learning\u0026mdash;especially convolutional neural networks (CNNs)\u0026mdash;computer vision systems can detect and classify crop diseases with high precision. This technology holds great potential for early intervention and more efficient crop management (Tian et al., 2020) , yet its adoption remains limited in regions like The Gambia, due to financial, infrastructural, and educational barriers.\u0026nbsp;\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e1.2 Research Problem\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eDespite the clear potential of computer vision technologies in agriculture, their implementation in Gambian farming systems is minimal. The core issue lies in understanding how these tools can be effectively adapted , localized, and integrated (Owino, 2023) into existing agricultural practices in The Gambia. Additionally, there is a need to evaluate not just the performance of these models in identifying crop diseases, but also their accessibility and practicality in resource-constrained rural environments.\u0026nbsp;\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e1.3 Research Question\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eThis study addresses the following question: How can computer vision models be effectively adapted and deployed for crop disease detection in The Gambia, given the constraints of limited infrastructure, farmer accessibility, and local agricultural practices? To answer this, we evaluate (1) the technical performance of CNN-based models on Gambian crop images, and (2) the socio-economic barriers to adoption among smallholder farmers.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e1.4 Objectives\u003c/strong\u003e\u003c/p\u003e\n\u003col\u003e\n \u003cli\u003e\u0026nbsp;To explore the effectiveness of computer vision models\u0026mdash;particularly CNNs\u0026mdash;in detecting and classifying common crop diseases found in Gambian farms.\u003c/li\u003e\n \u003cli\u003e\u0026nbsp;To assess the role of image preprocessing techniques (e.g., normalization, segmentation, and augmentation) in enhancing model accuracy.\u003c/li\u003e\n \u003cli\u003eTo identify key barriers to the adoption of computer vision tools among Gambian farmers.\u003c/li\u003e\n \u003cli\u003e\u0026nbsp;To propose practical strategies for improving access to and usability of AI-based agricultural solutions in The Gambia.\u0026nbsp;\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp\u003e\u003cstrong\u003e1.5 Hypotheses\u003c/strong\u003e\u003c/p\u003e\n\u003col\u003e\n \u003cli\u003e\u003cstrong\u003e\u0026nbsp; H1:\u0026nbsp;\u003c/strong\u003eThere is a significant relationship between farmers\u0026rsquo; awareness of computer vision and their willingness to adopt it.\u003c/li\u003e\n \u003cli\u003e\u0026nbsp; \u003cstrong\u003eH2:\u003c/strong\u003e Infrastructure challenges significantly hinder the deployment of computer vision tools in rural Gambian farms.\u0026nbsp;\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp\u003e\u003cstrong\u003e1.6 Scope of the Study\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eThe research concentrates on major staple crops such as rice, groundnut, and cassava. Crops that are highly susceptible to common plant diseases like rice blast, cassava mosaic, and bacterial infections.\u003c/p\u003e\n\u003cp\u003eThe technical scope covers model design, image preprocessing techniques, performance evaluation using metrics like accuracy and F1 score, and the application of deep learning approaches including transfer learning and custom CNNs. Additionally, the study explores the socio-economic and infrastructural factors that influence technology adoption in rural farming communities in The Gambia.\u003c/p\u003e\n\u003cp\u003eThe research does not cover plant disease treatments or pesticide effectiveness but rather focuses solely on the early-stage detection and classification capabilities of AI-powered systems. Field testing is limited to datasets collected or simulated to reflect real-world Gambian farm conditions, without large-scale commercial deployment at this stage.\u0026nbsp;\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e1.7 Significance of the Study\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eThe significance of this study lies in its potential to introduce a more efficient, scalable, and accessible solution to disease detection through the use of computer vision.\u003c/p\u003e\n\u003cp\u003eBy identifying how AI models can accurately classify crop diseases, this research offers a path toward early intervention, reducing crop losses and improving yield outcomes. It also contributes to sustainable farming by enabling targeted treatment, which helps minimize the excessive use of chemicals. The ability to automate disease diagnosis using simple image inputs\u0026mdash;potentially via smartphones\u0026mdash;has the potential to transform agricultural practices in resource-limited environments.\u003c/p\u003e\n\u003cp\u003eMoreover, the study highlights barriers such as limited infrastructure, financial constraints, and low technological literacy\u0026mdash;challenges that are often overlooked in tech-centered agricultural solutions. By addressing these realities, the research not only provides technical insights but also practical recommendations for implementation, training, and policy.\u003c/p\u003e"},{"header":"Literature Review","content":"\u003cp\u003e\u003cstrong\u003e2.1\u003c/strong\u003e \u003cstrong\u003eConceptual Review\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eComputer vision in agriculture refers to the use of image-based AI systems to identify patterns, anomalies, or features in plants, soil, and farm environments (Dhanya et al., 2022). At its core, the technology mimics human vision\u0026mdash;but with the precision and speed of algorithms that can process thousands of images quickly. These models, often powered by convolutional neural networks (CNNs), are trained to recognize symptoms of crop diseases like discoloration, spots, or texture changes.\u003c/p\u003e\n\u003cp\u003eIn the Gambian context, where farming is largely small-scale and heavily reliant on manual monitoring, such technology presents a massive opportunity. It promises to reduce the guesswork involved in disease identification and could be particularly helpful where agricultural extension services are overstretched or hard to reach. This section reviews what this technology is, how it works, and why it\u0026rsquo;s becoming more relevant to real-world farming challenges.\u0026nbsp;\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2.2 Empirical Review\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eSeveral studies globally and in similar sub-Saharan African contexts have explored the effectiveness of computer vision for crop disease detection. For instance, pre-trained CNNs like ResNet and VGG16 have achieved classification accuracies upwards of 90% in differentiating healthy from diseased plants in datasets of tomatoes, maize, and rice (Chakraborty et al., 2024).\u003c/p\u003e\n\u003cp\u003eCloser to The Gambia, research has been more limited. However, small-scale trials involving peanut leaf spot and rice blast disease detection using mobile image capture show promising results. Still, most of these models were developed in lab settings or other countries, which raises questions about their performance in Gambian farms where image quality, lighting, and crop varieties differ.\u0026nbsp;\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2.3 Theoretical Review\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eThis study draws on a few key theoretical underpinnings. The most relevant is the \u003cstrong\u003eTechnology Acceptance Model (TAM)\u003c/strong\u003e, which helps explain how and why users (in this case, farmers) adopt new technologies. Perceived usefulness and ease of use are central here\u0026mdash;farmers are more likely to adopt computer vision tools if they believe the tools will make their work easier and more effective.\u003c/p\u003e\n\u003cp\u003eAlso important is the theory behind \u003cstrong\u003emachine learning\u003c/strong\u003e, especially supervised learning models where the algorithm is trained on labeled datasets to make predictions. For crop disease classification, this often means feeding the model thousands of labeled images to learn what diseased versus healthy crops look like.\u0026nbsp;\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2.4 Existing Gap in Literature\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eThis study is anchored in two theoretical lenses:\u003c/p\u003e\n\u003col start=\"1\" type=\"1\"\u003e\n \u003cli\u003e\u003cstrong\u003eTechnology Acceptance Model (TAM)\u003c/strong\u003e \u0026ndash; This guides our understanding of how farmers might perceive and engage with computer vision tools. Key variables like perceived ease of use, usefulness, and behavioral intention to adopt are explored in the context of Gambian agriculture.\u003c/li\u003e\n \u003cli\u003e\u003cstrong\u003eSupervised Machine Learning Theory\u003c/strong\u003e \u0026ndash; This underpins the technical aspect of the research. It supports the rationale behind using annotated image datasets and explains how computer vision models are trained to detect patterns that indicate disease.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp\u003eTogether, these frameworks allow us to explore both the technical feasibility and the human factors influencing the success of computer vision tools in Gambian farming systems.\u003c/p\u003e"},{"header":"Methodology","content":"\u003cp\u003e\u003cstrong\u003e3.1 Research Design\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eThis study adopts a \u003cstrong\u003emixed-methods approach\u003c/strong\u003e, blending qualitative and quantitative research strategies to capture both the technical efficacy of computer vision models and the real-world challenges faced by Gambian farmers. The design was chosen to provide a holistic understanding of how these technologies operate in theory and how they\u0026rsquo;re received in practice. On one hand, quantitative data (like model performance metrics) will help assess detection accuracy (Nutter et al., 2006). On the other, qualitative insights from farmers and stakeholders will ground our findings in lived experiences.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3.2 Area of Study\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eThe research is focused on \u003cstrong\u003erural farming communities in The Gambia\u003c/strong\u003e, particularly in regions where rice, groundnuts, and vegetables are cultivated \u0026mdash; areas most affected by crop diseases. Places like Central River Region and North Bank Region, where subsistence farming dominates, are of particular interest due to their vulnerability to crop disease outbreaks and limited access to advanced technologies.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3.3 Population of the Study\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eThe target population includes:\u003c/p\u003e\n\u003cul type=\"disc\"\u003e\n \u003cli\u003eSmallholder and subsistence farmers\u003c/li\u003e\n \u003cli\u003eAgricultural extension officers\u003c/li\u003e\n \u003cli\u003eResearchers and tech developers involved in digital agriculture\u003c/li\u003e\n \u003cli\u003eRelevant staff from the Ministry of Agriculture\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003eThis population is selected to reflect the full ecosystem affected and potentially benefitting from the implementation of computer vision technologies in farming.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3.4 Sampling Technique and Sample Size\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eWe\u0026rsquo;ll use \u003cstrong\u003epurposive sampling\u003c/strong\u003e for interviews and\u0026nbsp;\u003cstrong\u003estratified random sampling\u003c/strong\u003e for survey distribution. The purposive sample will focus on farmers with varying levels of exposure to technology, while the stratified sample ensures representation across different regions and crop types.\u003cbr\u003e\u0026nbsp;Estimated sample size:\u003c/p\u003e\n\u003cul type=\"disc\"\u003e\n \u003cli\u003e100 farmers across 4 major regions\u003c/li\u003e\n \u003cli\u003e10\u0026ndash;15 agricultural officers\u003c/li\u003e\n \u003cli\u003e3\u0026ndash;5 developers/technologists\u003c/li\u003e\n \u003cli\u003eTotal: ~120\u0026ndash;130 respondents\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003e\u003cstrong\u003e3.5 Types and Sources of Data Collection\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eData will be collected through:\u003c/p\u003e\n\u003cp\u003e\u0026nbsp; \u003cstrong\u003ePrimary sources:\u003c/strong\u003e\u003c/p\u003e\n\u003cul type=\"disc\"\u003e\n \u003cli\u003eSemi-structured interviews with farmers and agricultural officers\u003c/li\u003e\n \u003cli\u003eField surveys on tech adoption and crop disease experiences\u003c/li\u003e\n \u003cli\u003eImage datasets collected from farms showing diseased crops\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003e\u0026nbsp;\u003cstrong\u003eSecondary sources:\u003c/strong\u003e\u003c/p\u003e\n\u003cul type=\"disc\"\u003e\n \u003cli\u003eAcademic journals, technical reports, and policy briefs\u003c/li\u003e\n \u003cli\u003eOpen-source image repositories (e.g., PlantVillage dataset) for model training\u003c/li\u003e\n \u003cli\u003eGovernment reports on agriculture and digital infrastructure\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003e\u003cstrong\u003e3.6 Definition and Measurement of Variables\u003c/strong\u003e\u003c/p\u003e\n\u003cul type=\"disc\"\u003e\n \u003cli\u003e\u003cstrong\u003eIndependent Variable:\u003c/strong\u003e Application of computer vision models (measured via model type, accuracy, and accessibility)\u003c/li\u003e\n \u003cli\u003e\u003cstrong\u003eDependent Variable:\u003c/strong\u003e Detection and classification of crop diseases (measured through F1 scores, detection speed, and user-reported success)\u003c/li\u003e\n \u003cli\u003e\u003cstrong\u003eModerating Variables:\u003c/strong\u003e\n \u003cul type=\"circle\"\u003e\n \u003cli\u003eInfrastructure (e.g., internet availability)\u003c/li\u003e\n \u003cli\u003eFarmer digital literacy\u003c/li\u003e\n \u003cli\u003eFinancial access\u003c/li\u003e\n \u003c/ul\u003e\n \u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003eQuantitative performance metrics (accuracy, recall, etc.) will be measured using standard evaluation techniques, while user feedback will be coded thematically.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3.7 Validity and Reliability of Research Instruments\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eTo ensure validity, all survey questions and interview guides will undergo expert review and pilot testing with a small group of farmers. For \u003cstrong\u003ereliability\u003c/strong\u003e, consistent protocols will be followed in both data collection and model evaluation, and inter-coder reliability will be maintained during qualitative data analysis. In terms of model testing, cross-validation will be used to confirm the robustness of our computer vision model performance.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3.8 Method of Data Analysis\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003e\u0026nbsp; \u003cstrong\u003eQuantitative data\u003c/strong\u003e (e.g., survey responses, model metrics) will be analyzed using descriptive statistics, correlation tests, and model evaluation metrics such as precision, recall, and F1-score.\u003c/p\u003e\n\u003cp\u003e\u0026nbsp; \u003cstrong\u003eQualitative data\u003c/strong\u003e from interviews will be analyzed using thematic analysis, with coding conducted in NVivo or similar software.\u003c/p\u003e\n\u003cp\u003e\u0026nbsp; The image classification results will be benchmarked using pre-trained models (e.g., VGG16, ResNet, MobileNet) and compared to custom-trained models using local datasets.\u003c/p\u003e\n\u003cp\u003e\u0026nbsp; We will also explore model interpretability (e.g., Grad-CAM visualizations) to better understand what features the model relies on \u0026mdash; and how that aligns with farmers\u0026rsquo; visual diagnosis techniques.\u003c/p\u003e"},{"header":"Data Presentation, Analysis and Discussion","content":"\u003cp\u003e\u003cstrong\u003e4.1 Socio-Demographic Characteristics of Respondents\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eUnderstanding the background of the study\u0026rsquo;s participants provides vital context for interpreting the research outcomes. In this study, the majority of respondents were smallholder farmers operating in rural regions of The Gambia. Most participants had been farming for over 10 years, reflecting a wealth of experiential knowledge, but also highlighting generational dependence on traditional methods.\u003c/p\u003e\n\u003cul type=\"disc\"\u003e\n \u003cli\u003e\u003cstrong\u003eAge Distribution\u003c/strong\u003e: Respondents were predominantly between 30\u0026ndash;55 years old.\u003c/li\u003e\n \u003cli\u003e\u003cstrong\u003eGender\u003c/strong\u003e: Male farmers comprised approximately 70% of the sample, consistent with broader trends in Gambian agriculture. \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp;\u003c/li\u003e\n \u003cli\u003e\u003cstrong\u003eEducation Level\u003c/strong\u003e: A significant number (over 60%) had only primary-level education or none at all, which could influence their comfort with digital tools.\u003c/li\u003e\n \u003cli\u003e\u003cstrong\u003eFarming Experience\u003c/strong\u003e: Most had more than a decade of hands-on experience, and nearly all respondents cultivated staple crops such as rice, groundnut, and millet.\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003eThese demographics suggest that while the farming population is experienced, technological literacy remains a key challenge when introducing computer vision systems.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e4.2 Data Presentation on Research Issues (Objective by Objective)\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eThe data collected was organized around the research objectives, primarily focused on awareness, accessibility, and the effectiveness of computer vision models in detecting crop diseases.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eObjective 1: Assessing Awareness of Computer Vision Technology\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eFindings showed that only about 25% of farmers were aware of computer vision or AI-assisted tools in agriculture. Most of that awareness came through NGOs, agricultural extension workers, or word-of-mouth from younger relatives.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eObjective 2: Evaluating Current Practices in Disease Detection\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eTraditional methods\u0026mdash;mainly visual inspection based on signs like wilting, discoloration, or leaf spots\u0026mdash;remain the dominant approach. About 80% of respondents said they only act once symptoms are visible and crop damage is already substantial.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eObjective 3: Determining Perceived Benefits and Challenges\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eWhen introduced to the concept of AI and image-based crop diagnosis, most farmers saw potential value in early detection, reduced pesticide use, and better yields. However, issues like cost, language barriers, and limited access to smartphones were frequently mentioned as hurdles.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eObjective 4: Understanding Infrastructure Readiness\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eData revealed significant digital infrastructure gaps. Less than 40% of farmers had reliable internet access, and only 20% had access to smartphones capable of running basic AI apps.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e4.3 Test of Hypotheses\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eThis section explores whether the evidence supports the main assumptions driving the study.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eHypothesis 1: \u0026quot;There is a significant relationship between farmers\u0026rsquo; awareness of computer vision and their willingness to adopt it.\u0026quot;\u003c/strong\u003e\u003c/p\u003e\n\u003cul type=\"disc\"\u003e\n \u003cli\u003e\u003cstrong\u003eResult\u003c/strong\u003e: Supported. A Pearson correlation test showed a positive correlation (r = 0.63, p \u0026lt; 0.01), indicating that awareness strongly influences openness to adoption.\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003e\u003cstrong\u003eHypothesis 2: \u0026quot;Infrastructure challenges significantly hinder the deployment of computer vision tools in rural Gambian farms.\u0026quot;\u003c/strong\u003e\u003c/p\u003e\n\u003cul type=\"disc\"\u003e\n \u003cli\u003e\u003cstrong\u003eResult\u003c/strong\u003e: Supported. Regression analysis confirmed that poor connectivity, limited device access, and energy supply were significant predictors of limited adoption (R\u0026sup2; = 0.71).\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003e\u003cstrong\u003e4.4 Discussion of Findings\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eThe findings highlight a strong interest in technology-based farming solutions, but also underline the existing barriers to implementation in The Gambia. Farmers see the \u003cem\u003evalue\u003c/em\u003e of using computer vision\u0026mdash;especially for identifying diseases early and minimizing losses\u0026mdash;but \u003cem\u003eaccessibility\u003c/em\u003e and \u003cem\u003etrust\u003c/em\u003e are key roadblocks.\u003c/p\u003e\n\u003cp\u003eThis aligns with broader literature noting that while the technical potential of computer vision in agriculture is clear, its impact is dependent on local adaptation and support systems. Many farmers noted they\u0026rsquo;d be more likely to adopt such tools if training and ongoing support were provided.\u003c/p\u003e\n\u003cp\u003eInterestingly, the data also suggests younger farmers are more open to digital innovation. This demographic could be a valuable entry point for future pilot programs.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e4.5 Problems Encountered in the Field\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eAs expected, conducting fieldwork in rural Gambia posed several challenges:\u003c/p\u003e\n\u003cul\u003e\n \u003cli\u003e\u003cstrong\u003eLimited Connectivity\u003c/strong\u003e: In some areas, even phone networks were unreliable, making digital data collection difficult.\u003c/li\u003e\n \u003cli\u003e\u003cstrong\u003eLanguage Barriers\u003c/strong\u003e: Communication had to be translated into local dialects (e.g., Mandinka, Wolof), which sometimes led to misinterpretations of technical concepts.\u003c/li\u003e\n \u003cli\u003e\u003cstrong\u003eTechnophobia and Skepticism\u003c/strong\u003e: Some respondents were suspicious of technology, worried that automation might threaten jobs or disrupt cultural farming norms.\u003c/li\u003e\n \u003cli\u003e\u003cstrong\u003eLogistical Constraints\u003c/strong\u003e: Accessing remote villages required significant travel, often on poor road networks, which limited the frequency of researcher visits.\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003eDespite these challenges, the data collected provides valuable insights and strongly supports the relevance of computer vision in addressing crop health problems in The Gambia.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e4.6 Model Performance Evaluation\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eTo effectively evaluate the performance of the computer vision models used in this study, both standard convolutional neural networks (CNNs) and transfer learning models were tested using the curated dataset of diseased and healthy crop images collected from Gambian farms. The evaluation considered accuracy, precision, recall, and F1-score, alongside qualitative visualization methods such as Grad-CAM.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e4.6.1 CNN Architecture and Training\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eA custom convolutional neural network was first implemented as a baseline model. The architecture consisted of three convolutional layers (with ReLU activation and max pooling), followed by a flattening layer, and two fully connected (dense) layers with dropout to reduce overfitting. The final output layer used softmax activation for multi-class classification of crop diseases.\u003c/p\u003e\n\u003cp\u003eThe model was trained using categorical cross-entropy as the loss function and Adam optimizer, with a learning rate of 0.001. Early stopping and model checkpointing were applied to ensure training stability and avoid overfitting. The model achieved reasonable performance on the validation set, with an average classification accuracy of \u003cstrong\u003e82.3%\u003c/strong\u003e, but struggled slightly on minority class images such as early-stage mildew.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e4.6.2 Transfer Learning with VGG16\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eTo improve performance, transfer learning was employed using the VGG16 architecture, pre-trained on ImageNet. The convolutional base of VGG16 was frozen, and a custom classifier head was added with global average pooling, followed by dense layers and softmax output. The modified VGG16 was then fine-tuned using the crop disease dataset.\u003c/p\u003e\n\u003cp\u003eThis approach significantly boosted performance. The fine-tuned VGG16 model achieved:\u003c/p\u003e\n\u003cul type=\"disc\"\u003e\n \u003cli\u003e\u003cstrong\u003eAccuracy\u003c/strong\u003e: 91.6%\u003c/li\u003e\n \u003cli\u003e\u003cstrong\u003ePrecision\u003c/strong\u003e: 90.8%\u003c/li\u003e\n \u003cli\u003e\u003cstrong\u003eRecall\u003c/strong\u003e: 91.2%\u003c/li\u003e\n \u003cli\u003e\u003cstrong\u003eF1-Score\u003c/strong\u003e: 91.0%\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003eThis confirmed that transfer learning, particularly with VGG16, was highly effective in extracting meaningful features from limited agricultural image data.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e4.6.3 Comparison with Other Models\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eIn addition to the custom CNN and VGG16, experiments were conducted using other transfer learning models such as ResNet50 and MobileNetV2. ResNet50 showed slightly higher precision in certain classes but was computationally heavier. MobileNetV2, while faster, lagged behind in overall accuracy compared to VGG16.\u003c/p\u003e\n\u003ctable border=\"0\" cellpadding=\"0\"\u003e\n \u003cthead\u003e\n \u003ctr\u003e\n \u003ctd\u003e\n \u003cp\u003e\u003cstrong\u003eModel\u003c/strong\u003e\u003c/p\u003e\n \u003c/td\u003e\n \u003ctd\u003e\n \u003cp\u003e\u003cstrong\u003eAccuracy\u003c/strong\u003e\u003c/p\u003e\n \u003c/td\u003e\n \u003ctd\u003e\n \u003cp\u003e\u003cstrong\u003ePrecision\u003c/strong\u003e\u003c/p\u003e\n \u003c/td\u003e\n \u003ctd\u003e\n \u003cp\u003e\u003cstrong\u003eRecall\u003c/strong\u003e\u003c/p\u003e\n \u003c/td\u003e\n \u003ctd\u003e\n \u003cp\u003e\u003cstrong\u003eF1-Score\u003c/strong\u003e\u003c/p\u003e\n \u003c/td\u003e\n \u003c/tr\u003e\n \u003c/thead\u003e\n \u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\n \u003cp\u003eCNN (Custom)\u003c/p\u003e\n \u003c/td\u003e\n \u003ctd\u003e\n \u003cp\u003e82.3%\u003c/p\u003e\n \u003c/td\u003e\n \u003ctd\u003e\n \u003cp\u003e80.5%\u003c/p\u003e\n \u003c/td\u003e\n \u003ctd\u003e\n \u003cp\u003e79.8%\u003c/p\u003e\n \u003c/td\u003e\n \u003ctd\u003e\n \u003cp\u003e80.1%\u003c/p\u003e\n \u003c/td\u003e\n \u003c/tr\u003e\n \u003ctr\u003e\n \u003ctd\u003e\n \u003cp\u003eVGG16\u003c/p\u003e\n \u003c/td\u003e\n \u003ctd\u003e\n \u003cp\u003e\u003cstrong\u003e91.6%\u003c/strong\u003e\u003c/p\u003e\n \u003c/td\u003e\n \u003ctd\u003e\n \u003cp\u003e\u003cstrong\u003e90.8%\u003c/strong\u003e\u003c/p\u003e\n \u003c/td\u003e\n \u003ctd\u003e\n \u003cp\u003e\u003cstrong\u003e91.2%\u003c/strong\u003e\u003c/p\u003e\n \u003c/td\u003e\n \u003ctd\u003e\n \u003cp\u003e\u003cstrong\u003e91.0%\u003c/strong\u003e\u003c/p\u003e\n \u003c/td\u003e\n \u003c/tr\u003e\n \u003ctr\u003e\n \u003ctd\u003e\n \u003cp\u003eResNet50\u003c/p\u003e\n \u003c/td\u003e\n \u003ctd\u003e\n \u003cp\u003e90.9%\u003c/p\u003e\n \u003c/td\u003e\n \u003ctd\u003e\n \u003cp\u003e91.3%\u003c/p\u003e\n \u003c/td\u003e\n \u003ctd\u003e\n \u003cp\u003e89.7%\u003c/p\u003e\n \u003c/td\u003e\n \u003ctd\u003e\n \u003cp\u003e90.5%\u003c/p\u003e\n \u003c/td\u003e\n \u003c/tr\u003e\n \u003ctr\u003e\n \u003ctd\u003e\n \u003cp\u003eMobileNetV2\u003c/p\u003e\n \u003c/td\u003e\n \u003ctd\u003e\n \u003cp\u003e87.2%\u003c/p\u003e\n \u003c/td\u003e\n \u003ctd\u003e\n \u003cp\u003e86.4%\u003c/p\u003e\n \u003c/td\u003e\n \u003ctd\u003e\n \u003cp\u003e85.1%\u003c/p\u003e\n \u003c/td\u003e\n \u003ctd\u003e\n \u003cp\u003e85.7%\u003c/p\u003e\n \u003c/td\u003e\n \u003c/tr\u003e\n \u003c/tbody\u003e\n\u003c/table\u003e\n\u003cp\u003eBased on these results, VGG16 was selected as the best-performing model for the final classification task, balancing high accuracy with computational efficiency. \u0026nbsp;\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e4.6.4 Model Explainability with Grad-CAM\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eTo better understand how the VGG16 model made predictions, Gradient-weighted Class Activation Mapping (Grad-CAM) was used to visualize which parts of the input images influenced the model\u0026apos;s decisions. The heatmaps produced by Grad-CAM highlighted diseased leaf spots, discoloration, or fungus patches\u0026mdash;areas a human agronomist would also consider when diagnosing. \u0026nbsp;\u003c/p\u003e\n\u003cp\u003eThese visualizations provided interpretability and increased trust in the model\u0026apos;s predictions, making it a valuable tool for potential integration into real-world farming systems.\u003c/p\u003e"},{"header":"Conclusion","content":"\u003cp\u003e\u003cstrong\u003e5.1 Summary\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eThis study set out to explore how computer vision models can assist in detecting and classifying crop diseases in Gambian farms\u0026mdash;a context where agriculture is central to livelihoods and food security. The research reviewed key aspects of computer vision technology, its agricultural applications, and how it can be tailored to meet the challenges faced by Gambian farmers. Through data analysis and model experimentation, the study demonstrated that deep learning, especially convolutional neural networks (CNNs), can reliably identify common diseases in crops such as rice and groundnuts. Despite the potential, it was also clear that digital infrastructure, affordability, and user-friendliness remain major barriers to adoption in rural Gambia.\u0026nbsp;\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e5.2 Conclusion\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eComputer vision offers an exciting, practical solution to a long-standing challenge in Gambian agriculture: timely and accurate disease detection. The study concluded that integrating these models into local farming practices could significantly reduce crop loss, improve yield quality, and promote sustainable agriculture. However, successful deployment will depend on more than just the technology itself. It requires enabling ecosystems\u0026mdash;financial support, accessible training, digital connectivity, and policy backing. When these conditions are met, computer vision can move from theory to transformative tool.\u0026nbsp;\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e5.3 Recommendations\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eBased on the findings, the following recommendations are proposed:\u003c/p\u003e\n\u003col start=\"1\" type=\"1\"\u003e\n \u003cli\u003e\u003cstrong\u003eGovernment and donor support\u003c/strong\u003e should focus on subsidizing the cost of computer vision tools and providing training to farmers through extension services.\u003c/li\u003e\n \u003cli\u003e\u003cstrong\u003eTech developers\u003c/strong\u003e should prioritize user-friendly designs and mobile-first platforms to make the technology more accessible in low-connectivity areas.\u003c/li\u003e\n \u003cli\u003e\u003cstrong\u003ePilot programs\u003c/strong\u003e in partnership with farming cooperatives can serve as testbeds for deploying and scaling computer vision applications in real-world scenarios.\u003c/li\u003e\n \u003cli\u003e\u003cstrong\u003eEducational institutions and research bodies\u003c/strong\u003e should continue developing locally-relevant models trained on Gambian crop data to ensure effectiveness and cultural fit.\u0026nbsp;\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp\u003e\u003cstrong\u003e5.4 Contribution to Knowledge\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eThis research contributes a novel perspective by contextualizing computer vision within the realities of Gambian agriculture\u0026mdash;a field where such studies remain limited. By mapping the technical potential against on-the-ground challenges, the study provides a blueprint for how emerging technology can bridge knowledge gaps, improve crop disease surveillance, and support sustainable farming at scale. It also adds to the growing body of research on AI in African agriculture, making a case for context-sensitive, inclusive tech solutions.\u0026nbsp;\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e5.5 Suggestions for Further Studies\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eFuture research could explore:\u003c/p\u003e\n\u003cul type=\"disc\"\u003e\n \u003cli\u003eThe performance of computer vision models on a broader variety of crops under different environmental conditions in The Gambia.\u003c/li\u003e\n \u003cli\u003eIntegration of drone imagery and IoT sensors with computer vision to create a more holistic precision agriculture system.\u003c/li\u003e\n \u003cli\u003eBehavioral studies to understand farmer attitudes toward digital tools and identify better adoption strategies.\u003c/li\u003e\n \u003cli\u003eCost-benefit analyses comparing traditional disease control methods with AI-assisted interventions in smallholder settings.\u003c/li\u003e\n\u003c/ul\u003e"},{"header":"Declarations","content":"\u003cp\u003e\u003cspan\u003e\u0026nbsp;IRB This research was conducted as part of an undergraduate academic project at the University of The Gambia. It was not submitted to a formal Institutional Review Board or Ethics Committee, but the study was reviewed and approved by our academic supervisors, and the university granted permission to proceed based on the low-risk nature of the work. All participants were informed of the study\u0026rsquo;s purpose and provided verbal consent prior to participation. No sensitive or identifiable information was collected. The study complied with ethical standards for non-clinical, interview-based academic research.\u003c/span\u003e\u003c/p\u003e"},{"header":"References","content":"\u003col\u003e\n \u003cli\u003eChakraborty, A., Chakraborty, A., Sobhan, A., \u0026amp; Pathak, A. (2024). Deep learning for precision agriculture: Detecting tomato leaf diseases with VGG-16 model. \u003cem\u003eInt J Comput Appl\u003c/em\u003e, \u003cem\u003e975\u003c/em\u003e, 8887.\u003c/li\u003e\n \u003cli\u003eDhanya, V. G., Subeesh, A., Kushwaha, N. L., Vishwakarma, D. K., Kumar, T. N., Ritika, G., \u0026amp; Singh, A. N. (2022). Deep learning based computer vision approaches for smart agricultural applications. \u003cem\u003eArtificial Intelligence in Agriculture\u003c/em\u003e, \u003cem\u003e6\u003c/em\u003e, 211\u0026ndash;229.\u003c/li\u003e\n \u003cli\u003eNutter, F. W., Esker, P. D., \u0026amp; Netto, R. A. C. (2006). Disease Assessment Concepts and the Advancements Made in Improving the Accuracy and Precision of Plant Disease Data. \u003cem\u003eEuropean Journal of Plant Pathology\u003c/em\u003e, \u003cem\u003e115\u003c/em\u003e(1), 95\u0026ndash;103. https://doi.org/10.1007/s10658-005-1230-z\u003c/li\u003e\n \u003cli\u003eOwino, A. (2023). Challenges of Computer Vision Adoption in the Kenyan Agricultural Sector and How to Solve Them: A General Perspective. \u003cem\u003eAdvances in Agriculture\u003c/em\u003e, \u003cem\u003e2023\u003c/em\u003e, 1\u0026ndash;9. https://doi.org/10.1155/2023/1530629\u003c/li\u003e\n \u003cli\u003eSarch, M.-T., Owens, S., \u0026amp; Copestake, J. (2023). The Gambia: Country overview. In \u003cem\u003eNon-Governmental Organizations and the State in Africa\u003c/em\u003e (pp. 213\u0026ndash;224). Routledge. https://www.taylorfrancis.com/chapters/edit/10.4324/9781003421740-24/gambia-marie-therese-sarch-solomon-owens-james-copestake\u003c/li\u003e\n \u003cli\u003eTian, H., Wang, T., Liu, Y., Qiao, X., \u0026amp; Li, Y. (2020). Computer vision technology in agricultural automation\u0026mdash;A review. \u003cem\u003eInformation Processing in Agriculture\u003c/em\u003e, \u003cem\u003e7\u003c/em\u003e(1), 1\u0026ndash;19.\u003c/li\u003e\n\u003c/ol\u003e"}],"fulltextSource":"","fullText":"","funders":[],"hasAdminPriorityOnWorkflow":false,"hasManuscriptDocX":true,"hasOptedInToPreprint":true,"hasPassedJournalQc":"","hasAnyPriority":true,"hideJournal":true,"highlight":"","institution":"","isAcceptedByJournal":false,"isAuthorSuppliedPdf":false,"isDeskRejected":"","isHiddenFromSearch":false,"isInQc":false,"isInWorkflow":false,"isPdf":false,"isPdfUpToDate":true,"isWithdrawnOrRetracted":false,"journal":{"display":true,"email":"[email protected]","identity":"researchsquare","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":true,"externalIdentity":"","sideBox":"","snPcode":"","submissionUrl":"/submission","title":"Research Square","twitterHandle":"researchsquare","acdcEnabled":true,"dfaEnabled":false,"editorialSystem":"","reportingPortfolio":"","inReviewEnabled":false,"inReviewRevisionsEnabled":true},"keywords":"Computer Vision, Crop Diseases, CNN, Gambia, Agriculture, VGG16","lastPublishedDoi":"10.21203/rs.3.rs-6463751/v1","lastPublishedDoiUrl":"https://doi.org/10.21203/rs.3.rs-6463751/v1","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"},"manuscriptAbstract":"\u003cp\u003eCrop diseases threaten food security in The Gambia, where agriculture employs 70% of the population. This paper explores the application of computer vision models to help farmers detect and classify crop diseases more effectively, leveraging deep learning techniques\u0026mdash;particularly convolutional neural networks (CNNs). Our fine-tuned VGG16 model achieved 91.6% accuracy in identifying diseases like rice blast and cassava mosaic, demonstrating the potential for scalable, low-cost diagnosis. The study evaluates custom CNNs, transfer learning (VGG16, ResNet50, MobileNetV2), and image preprocessing techniques (segmentation, augmentation) to optimize performance for Gambian farm conditions.\u003c/p\u003e \u003cp\u003eBeyond technical validation, the paper highlights real-world adoption barriers, including limited technology access, farmer skepticism, and infrastructural gaps. Through surveys and interviews with 120\u0026thinsp;+\u0026thinsp;farmers, we found that awareness of AI tools strongly correlates with willingness to adopt them (r\u0026thinsp;=\u0026thinsp;0.63, p\u0026thinsp;\u0026lt;\u0026thinsp;0.01), but fewer than 40% of respondents had reliable internet access. To bridge these gaps, we propose context-specific strategies: mobile-first design, localized training programs, and partnerships with agricultural extension services.\u003c/p\u003e \u003cp\u003eBy integrating technical and socio-economic insights, this study provides a roadmap for deploying computer vision in resource-constrained settings. Our rexsults underscore that while AI can transform disease management, success depends on tailoring solutions to the needs and constraints of Gambian smallholders.\u003c/p\u003e","manuscriptTitle":"Application of Computer Vision Models for Detecting and Classifying Crop Diseases in Gambian Farms","msid":"","msnumber":"","nonDraftVersions":[{"code":1,"date":"2025-05-05 11:16:52","doi":"10.21203/rs.3.rs-6463751/v1","editorialEvents":[{"type":"communityComments","content":0}],"status":"published","journal":{"display":true,"email":"[email protected]","identity":"researchsquare","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":true,"externalIdentity":"","sideBox":"","snPcode":"","submissionUrl":"/submission","title":"Research Square","twitterHandle":"researchsquare","acdcEnabled":true,"dfaEnabled":false,"editorialSystem":"","reportingPortfolio":"","inReviewEnabled":false,"inReviewRevisionsEnabled":true}}],"origin":"","ownerIdentity":"adbbe5fc-b0a6-4e2d-aede-5e26197190e0","owner":[],"postedDate":"May 5th, 2025","published":true,"recentEditorialEvents":[],"rejectedJournal":[],"revision":"","amendment":"","status":"posted","subjectAreas":[{"id":47256402,"name":"Artificial Intelligence and Machine Learning"},{"id":47256403,"name":"Agricultural Engineering"}],"tags":[],"updatedAt":"2025-05-05T11:16:52+00:00","versionOfRecord":[],"versionCreatedAt":"2025-05-05 11:16:52","video":"","vorDoi":"","vorDoiUrl":"","workflowStages":[]},"version":"v1","identity":"rs-6463751","journalConfig":"researchsquare"},"__N_SSP":true},"page":"/article/[identity]/[[...version]]","query":{"redirect":"/article/rs-6463751","identity":"rs-6463751","version":["v1"]},"buildId":"8U1c8b4HqxoKbykW_rLl7","isFallback":false,"isExperimentalCompile":false,"dynamicIds":[84888],"gssp":true,"scriptLoader":[]}

Text is read by the "Ask this paper" AI Q&A widget below. Extraction quality varies by source — PMC NXML preserves structure cleanly, OA-HTML may include some navigation residue, and OA-PDF can have broken hyphenation. The publisher copy (via DOI) is the canonical version.

My notes (saved in your browser only)

Ask this paper AI returns verbatim quotes from the full text · source: preprint-html

Answers must be backed by verbatim quotes from this paper's full text. Hallucinated quotes are dropped automatically; if no verbatim passage answers the question, we say so. How this works

Citation neighborhood (no data yet)

We don't have any in-corpus citations linked to this paper yet. This is a recent paper (2025) — citers typically take a year or two to land, and the OpenAlex reference graph may still be filling in.

Source provenance

europepmc
last seen: 2026-05-20T01:45:00.602351+00:00
unpaywall
last seen: 2026-05-22T02:00:06.705733+00:00
License: CC-BY-4.0