Skip to content
/ SoilScan Public

🌱 A React Native app that classifies soil using ResNet50 and recommends crops via XGBoost. Backend hosted on Hugging Face.

Notifications You must be signed in to change notification settings

ljiro/SoilScan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SoilScan

A mobile-first smart agriculture app built with React Native and hosted using Expo and will be up for deployment. Soil Scan allows users to scan and analyze soil using their phone's camera. The app uses a ResNet50 convolutional neural network to classify soil color and a trained XGBoost model to recommend the most suitable crops based on the detected soil type.

The machine learning logic is powered by a Python backend hosted on Hugging Face Spaces, which exposes an API to handle image classification and crop prediction tasks. All model inference is handled server-side to keep the app lightweight and efficient.

Stack

  • React Native (Expo) – for building cross-platform mobile UI

  • ResNet50 – for soil color classification from images

  • XGBoost – for crop recommendation based on soil classification

  • Python – backend logic and ML model hosting

  • Hugging Face Spaces – lightweight cloud backend for API hosting

Screenshots

Soil Image Classification

The user can upload a photo or take a photo. This results in the following:

  • Munsell color code
  • Description of soil color
  • Soil properties

Screenshot_20250516_150332_Expo Go

Crop Recommendation

The user can input NPK values, pH, temperature, humidity, and rainfall. It results in the following:

  • Top 5 crop recommendations
  • Confidence level in the crop recommendation

Screenshot_20250516_150417_Expo Go

About

🌱 A React Native app that classifies soil using ResNet50 and recommends crops via XGBoost. Backend hosted on Hugging Face.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •