AI driven platform connecting farmers and consumers with smart crop prediction
An intelligent and user-friendly platform that connects farmers directly with consumers while leveraging AI-powered crop yield prediction for smarter, data-driven farming decisions. With up to 99% prediction accuracy, this solution helps optimize agricultural output, reduce waste, and ensure better market access and transparency.
π Features π Farmer-to-Consumer Connection A seamless platform enabling direct sales and communication between farmers and end consumers.
π± Smart Crop Yield Prediction AI-powered yield forecasts using real-time inputs like rainfall, soil area, fertilizer, and pesticide usage.
π Visual Analytics Graphs and plots to compare predicted vs actual yield.
π§ Machine Learning Integration Trained using Random Forest Regressor, scaled features, and PCA for better accuracy.
π οΈ Scalable Backend Easily extendable API structure for real-time data input and prediction.
π Dataset π Source: Crop yield dataset with features like State, Crop, Crop_Year, Season, Area, Rainfall, Fertilizer, Pesticide, and Yield.
β¨ Preprocessing:
Label encoding for categorical data
Feature scaling using StandardScaler
Dimensionality reduction using PCA
-> Model Training Overview π Algorithm: RandomForestRegressor
π Metrics:
MSE, RMSE R2 Score
π§ͺ Test size: 20%
π― Accuracy: ~99% yield prediction for test data
π§ Running the React Frontend Server 1.Navigate to the frontend directory: cd frontend
2.Install dependencies: npm install
3.Start the React server: npm start