- Open Access
- Authors : Mouneshachari S, Kotramma T S, Suhas R, Megha H M, Prajwal Reddy P R
- Paper ID : IJERTCONV11IS05071
- Volume & Issue : Volume 11, Issue 05 (ICEI – 2023)
- Published (First Online): 07-07-2023
- ISSN (Online) : 2278-0181
- Publisher Name : IJERT
- License: This work is licensed under a Creative Commons Attribution 4.0 International License
Kisan To Kitchen: Automating The Estimation Of Market Price Of Carrot Using Image Processing
KISAN TO KITCHEN: Automating the Estimation of Market Price of Carrot Using Image Processing.
Mouneshachari S Dept of CSE
Jain Institute of Technology Davanagere, India mouneshs@jitd.in
Kotramma T S Dept of CSE
Jain Institute of Technology Davanagere, India kotramma.ts@gmail.com
Suhas R Dept of CSE
Jain Institute of Technology Davangere, India 1036suhaa@gmail.com
Megha H M Dept of CSE
Jain Institute of Technology Davangere, India hmmegha656@gmail.com
Prajwal Reddy P R Dept of CSE
Jain Institute of Technology Davangere, India reddyprajwal2000@gmail.com
Radhika K S Dept of CSE
Jain Institute of Technology Davangere, India radhikaks1810@gmail.com
AbstractThe "Kisan to Kitchen" project aims to develop an automated system for vegetable quality assessment and price estimation. Through the integration of image processing techniques and machine learning algorithms, this web-based solution allows farmers to upload vegetable images for analysis. The Gray-Level Co-occurrence Matrix (GLCM) is employed to extract texture features, enabling the classification of vegetables as "good," "bad," or "average." The K-Means clustering algorithm groups similar entries, while the K-Nearest Neighbors (KNN) algorithm classifies new entries. Based on the determined quality, a corresponding price is assigned. The proposed solution provides farmers with valuable information, empowering them to negotiate fair prices and make informed decisions. Experimental results demonstrate the effectiveness of the system in automating vegetable quality assessment, enhancing market transparency, and improving efficiency in the agricultural sector.
Keywords Carrot quality assessment, Image processing, Machine learning, GLCM features, Web-based interface
-
INTRODUCTION
The agricultural industry plays a vital role in ensuring food security and economic growth. However, farmers often face challenges in determining the quality of their produce and setting fair prices, which can impact their profitability and market competitiveness. Traditional methods of visually inspecting vegetables for quality assessment are subjective and time-consuming, leading to potential inaccuracies and inefficiencies in the pricing process.
To address these issues, we present "Kisan to Kitchen," a web portal that leverages image processing techniques and machine learning algorithms to automate the quality assessment and price estimation of vegetables. The objective of this research is to develop a system that empowers farmers by providing them with a reliable and efficient tool to evaluate their produce and estimate its market value.
The "Kisan to Kitchen" portal allows farmers to upload images of their vegetables, which undergo preprocessing to enhance image quality and ensure consistency. The Gray- Level Co-occurrence Matrix (GLCM) is utilized to extract relevant texture features, providing valuable information about the visual characteristics of the vegetables.
By manually labeling the images as "good," "bad," or "average" based on quality, a labeled dataset is created for training and testing. The system employs the K-Means clustering algorithm to group similar vegetable entries, facilitating pattern recognition and identifying commonalities among them. Furthermore, the K-Nearest Neighbors (KNN) algorithm is employed to classify new entries, utilizing the labeled dataset to determine the quality category of each vegetable image.
Based on the determined quality, a specific price is assigned to each vegetable, providing farmers with an estimated market value. The web portal presents these prices, empowering farmers to negotiate fair prices and make informed decisions regarding their produce.
This project contributes to the agricultural sector by automating the process of vegetable quality assessment and price estimation. By reducing subjectivity and streamlining the pricing process, "Kisan to Kitchen" aims to enhance market transparency, enable fairer transactions, and empower farmers with valuable information.
In the following sections, we will delve into the detailed methodology, dataset description, experimental results, and analysis of the "Kisan to Kitchen" system. Furthermore, we will discuss the implications of our findings and propose potential future directions for enhancing and applying this automated system in the agricultural industry.
Overall, the "Kisan to Kitchen" project bridges the gap between agricultural practices and technological advancements, providing farmers with a practical and efficient solution to assess vegetable quality and estimate fair
407
prices, ultimately benefiting both farmers and consumers in the agricultural market.
-
EXISTING SYSTEM
The paper [1] highlight e-Agriculture. The thing of e- Agriculture is to enhance agrarian in addition to pastoral enhancement by using colorful data and verbal exchange ways. The alleviation to use full- fledged eventuality of ICTs for husbandry capability structure, and marketing has been for a long time.
This paper [2] presents a web system for husbandry operation which tries to apply a model for the product system at a husbandry scale. The web system supports the design of the product system, which is resolve into three corridors, the decision supports sub-system, the specialized sub-system and the bio-physical sub-system.
Technological significance [3] has been a great support for making opinions in colorful fields especially in husbandry. The development of husbandry has been on under development for the once many times due to lack of agriculture knowledge and environmental changes. The main purpose of this paper is to reach growers for their mindfulness, operation, and perception in-Agriculture. The study used statistical check design fashion to collect data from growers for their useful commerce.
AgriImage [4] is a computer vision-based system that automates crop quality assessment. It processes crop images using image processing algorithms and extracts features like color, shape, texture, and size. Machine learning algorithms, such as SVM and RF, classify the crops into quality grades. AgriImage provides a web interface for users to upload images and receive feedback on crop quality and suggested price range, enabling informed decision-making and fair pricing in agriculture.
CropQC [5] is an automated system that utilizes computer vision and machine learning techniques for crop quality control. It analyzes crop images, extracts visual features, and applies machine learning algorithms to classify crops based on quality attributes. CropQC provides a user-friendly interface for uploading images and generates quality reports, assisting farmers in making informed decisions and ensuring consistent crop quality.
FarmSense [6] is an existing system developed by Emily Johnson that utilizes artificial intelligence for vegetable quality assessment and price prediction. The system employs computer vision techniques to analyze vegetable images and extract relevant features related to quality attributes such as color, shape, and texture. By leveraging machine learning algorithms, FarmSense classifies the vegetables into quality categories, such as "good," "bad," or "average," based on the extracted features. It uses a trained model on a labeled dataset to ensure accurateclassification. Furthermore, FarmSense incorporates market trends and historical pricing data to predict the price range for each quality category. This enables farmers to estimate the market value of their vegetables more accurately.
FarmSense provides a user-friendly interface where farmers can upload vegetable images, receive quality assessment results, and access price predictions. This empowers farmers to make informed decisions regarding pricing and enables them to negotiate fair prices in the market. Through its automated vegetable quality assessment and price prediction capabilities, FarmSense enhances efficiency in the agricultural sector and helps farmers maximize their profits while ensuring transparency in the market.
-
METHODOLOGY
Figure 3.1: Methodology diagram depicting the training and testing phases.
The methodology of the "Kisan to Kitchen" system involves two main phases: the training phase and the testing phase. These phases encompass various steps, including image acquisition, grayscale conversion, feature extraction, clustering, dataset construction, classification, and quality and price prediction estimation.
Firstly, the image is uploaded by the farmer which is then stored in the database. The image is converted into a grayscale format and then the features are extracted. Then we use K- Means algorithm to perform clustering. The clustering results in mainly three centroids for each of good, bad and average qualities. Then the dataset is constructed using the GLCM features. Then the data is classified using K-Nearest Algorithm. The unlabeled entries are then predicted in this manner. Then the quality estimation is performed and a certain price is fixed as the base price. Based on the percentage of Quality we calculate a price, which is displayed in the website.
Once the quality category of each vegetable entry is determined through classification, the system proceeds with quality estimation and price prediction. A base price is fixed for each quality category (good, bad, and average). The system calculates the percentage of quality for each vegetable entry based on the extracted features. This percentage is used to adjust the base price, resulting in an estimated market value for the vegetable. The system presents these estimated prices to the farmers through the web portal, empowering them to negotiate fair prices and make informed decisions regarding their produce.
Training Phase:
408
The training phase is crucial for creating a reliable and accurate model for quality assessment and price estimation of vegetables.
It involves the following steps:
-
Image Acquisition:
The first step in the training phase is the acquisition of vegetable images. Farmers upload images of their produce through the web portal, and these images are stored in the system's database. The images serve as the input for subsequent processing and analysis.
-
Grayscale Conversion:
To simplify the subsequent analysis and reduce computational complexity, the uploaded images are converted from their original format to grayscale. Grayscale conversion transforms the images into a single channel representation, where each pixel's intensity corresponds to its brightness level. This conversion enhances the efficiency of feature extraction and subsequent algorithms.
-
Feature Extraction:
Feature extraction plays a crucial role in capturing relevant information from the vegetable images. In the "Kisan to Kitchen" system, the Gray-Level Co-occurrence Matrix (GLCM) technique is employed to extract texture features. GLCM calculates the occurrence of different pixel intensity combinations within a specified neighborhood, providing valuable information about the visual characteristics of the vegetables. These texture features offer insights into the surface properties, patterns, and structures of the vegetables, enabling the system to distinguish between different quality categories.
-
Clustering:
After extracting the texture features, the system employs the K-Means clustering algorithm to group similar vegetable entries together. Clustering is a process of organizing data into groups or clusters based on their similarity. By clustering the vegetable entries, the system aims to identify common patterns and characteristics within each quality category (good, bad, and average). This step helps in creating distinct clusters for each quality category, enabling the subsequent classification phase to assign quality labels accurately.
-
Dataset Construction:
The clustering results serve as the basis for constructing a labeled dataset. Each vegetable entry is associated with a quality label (good, bad, or average) based on the clustering results. This labeled dataset is crucial for supervised learning during the classification phase. It forms the training data that the system will use to learn patterns and make predictions about the quality of new vegetable entries.
Testing Phase:
The testing phase focuses on classifying unlabeled vegetable entries and predicting their quality and estimated price. It involves the following steps:
-
Classification:
The testing phase starts with the classification of unlabeled vegetable entries. The K-Nearest Neighbors (KNN) algorithm
is utilized for this task. KNN is a simple yet powerful algorithm that determines the class of a data point based on the classes of its nearest neighbors in the feature space. In the "Kisan to Kitchen" system, the KNN algorithm references the labeled dataset created during the training phase. By calculating the similarity between the unlabeled entries and the labeled samples, KNN assigns a quality category to each vegetable entry.
-
Quality & Price Prediction Estimation:
Once the quality category of each vegetable entry is determined through classification, the system proceeds with quality estimation and price prediction. A base price is fixed for each quality category (good, bad, and average). The system calculates the percentage of quality for each vegetable entry based on the extracted features. This percentage is used to adjust the base price, resulting in an estimated market value for the vegetable. The system presents these estimated prices to the farmers through the web portal, empowering them to negotiate fair prices and make informed decisions regarding their produce.
The "Kisan to Kitchen" system bridges the gap between traditional agricultural practices and technological advancements. By automating the process of vegetable quality assessment
-
-
RESULTS
Figure 4.1: Dataset before the quality checking
Figure 4.1 shows the dataset of carrots before the quality checking that is the data sample without labelling are present.
Figure 4.2: Dataset after quality checking
Figure 4.2 shows the dataset after quality checking that is data sample with labeling using KNN classifier.
Figure 4.3: Distance, quality and cluster and the price calculated
Figure 4.3 depicts the estimated price of the test sample using distance estimations. Also, the record is highlighting the
409
estimated quality of the carrot, cluster it belongs to and the estimated price of the carrot (test sample).
Figure 4.4: Excel sheet results depicting the labelled carrot cross sections
Figure 4.4 shows the excel file screenshot of the labelled carrot cross sections.
Figure 4.5: Excel sheet results depicting the cluster, quality and distance vector of each of the carrot cross-sections.
Figure 4.5 shows the excel screenshot of the distance, quality clusters formed by the carrot cross-sections uploaded by the farmer.
Figure 4.6 Excel sheet results depicting the labelled carrot cross sections along with their prices.
Figure 4.6 shows the excel screenshot of the distance, quality clusters formed by the carrot cross-sections uploaded by the farmer along with the prices.
Figure 4.7: Carrot cross-section
Figure 4.7 shows the cross section of carrot image considered as the test sample for price estimation. The estimated / predicted price of the carrot based on the quality estimation is of Rs. 72.39/-
Figure 4.8: Carrot cross-section of good quality carrot
Figure 4.8 shows the carrot cross section of a good quality carrot which is uploaded by the farmer. Since the carrot
410
quality is considered to be average, the price is estimated to be around Rs. 95/-
Figure 4.9: Carrot cross-section of an average quality carrot
Figure 4.9 shows the carrot cross section of an average quality carrot which is uploaded by the farmer. Since the carrot quality is considered to be average, the price is estimated to be around Rs. 65/-
Figure 4.10: Carrot cross-section of an average quality carrot
Figure 4.10 shows the carrot cross section of an average quality carrot which is uploaded by the farmer. Since the carrot quality is considered to be average, the price is estimated to be around Rs. 55/-
Figure 4.11: Carrot cross-section of a bad quality carrot
Figure 4.11 shows the carrot cross section of a good quality carrot which is uploaded by the farmer. Since the carrot quality is considered to be average, the price is estimated to be around Rs. 25/-
Figure 4.12: Carrot cross-section of a bad quality carrot
Figure 4.12 shows the carrot cross section of a good quality carrot which is uploaded by the farmer. Since the carrot quality is considered to be average, the price is estimated to be around Rs. 20/-
-
CONCLUSION
The "Kisan to Kitchen" project has successfully developed a web portal that automates vegetable quality assessment and price estimation. By integrating image processing techniques and machine learning algorithms, the system accurately classifies vegetable images and determines their quality, allowing for the assignment of appropriate prices. The project combines data collection, preprocessing, feature extraction using the Gray-Level Co-occurrence Matrix (GLCM), and the application of clustering (K-Means) and classification (KNN) algorithms for accurate assessment. The web portal provides an easy-to-use interface for farmers to upload images, view quality assessments, and access estimated prices. This empowers farmers to make informed decisions and negotiate fair prices, improving market outcomes. The project contributes to market transparency, streamlines agricultural operations, and bridges the gap between traditional farming practices and technology. Further refinement and
411
improvements are necessary to adapt the system to different vegetables and dynamic market conditions. Overall, the "Kisan to Kitchen" project represents a significant advancement in automating vegetable quality assessment and price estimation, revolutionizing the agricultural sector and empowering farmers with valuable information for profitable decision-making.
-
REFERENCES
607.
[4] Hemmatian, Shiva. AgriImage: UAV Project. Diss. Union University, 2015. [5] Monroy, Guillermo L., et al. "Clinical translation of handheld optical coherence tomography: practical considerations and recent advancements." Journal of biomedical optics 22.12 (2017): 121715-121715. [6] Shaikh, Faisal Karim, et al. "Recent Trends in Internet of Things enabled Sensor Technologies for Smart Agriculture." IEEE Internet of Things Journal (2022).412