Chapter 3
Chapter 3
METHODOLOGY
This chapter discusses and tackles the design and strategy employed by the researchers to
conduct and complete this study. The researchers have carefully planned the activities in order to
finish the study satisfactorily at a definite time. This chapter includes the research locale, research
Research Design
This proposed project study of a tomatoes freshness level indicator is employing hybrid
neural networks to assess the freshness level of tomatoes through image classification. The
inspiration for using this hybrid approach systems from prior research findings highlighted in our
Furthermore, they use a hybrid neural network because it combines the strengths of
different neural network architectures (Zhao R et al., 2022). For instance, they would be using
convolutional neural networks (CNNs) for feature extraction. Additionally, the researchers would
be using SVM, decision trees, and Random Forests for classification. The use of a hybrid neural
network approach allows us to create a more robust and accurate model for freshness level
classification (Zhao R et al., 2022). We introduce the following Hybrid Neural network algorithms
used in the classification of images; SVM+CNN, Decision Trees + CNN, and Random Forest +
CNN. They also list some of the advantages and disadvantages of using these algorithms.
networks which are commonly used in computer vision problems such as image classification”,
(Abien et al., 2017). A Support Vector Machine (SVM) + Convolutional Neural Network (CNN)
hybrid neural network is a combination of two powerful machine learning techniques used for
classification. tasks (Duggani Keerthana et al., 2022). CNN performs the task of extracting.
features from unprocessed data, such as images, whereas the SVM is utilized to classify the
extracted features. CNN first learns the features. From the input images, then the extracted features
are passed on to the SVM for classification. Szarvas et al., (2005) studied the automatically
optimized CNN. features and demonstrated that combining CNN with SVM could produce the
On the other hand, for cooling storage of the tomatoes, they will use tec1-12706. TEC1-
module that functions as a small heat pump. It transfers heat from the cooler side to the hotter side
by operating on the principle of the Peltier effect. They can be used in applications like cooling
(quartz.component).
Data Collection: Gather a diverse dataset of tomato images at different freshness levels.
Preprocessing: Clean and standardize the dataset, ensuring uniformity in image resolution
and quality
Feature Selection: Identify relevant features within the images that contribute to freshness
assessment.
Model Selection: Choose a suitable machine learning model (e.g., convolutional neural
network - CNN) for image classification. Evaluate potential hybrid models that combine different
Evaluation: To fine-tune parameters, assess the model's performance on the validation set.
Documentation: Document the entire process, including dataset details, model architecture,
and results. Provide insights into the strengths and weaknesses of the freshness level indicator.
report.
Through this descriptive research design, you can develop a clear understanding of the
effectiveness and applicability of the freshness level indicator using machine learning for
tomatoes.
Ripe tomatoes will spoil quickly, which is about 3-4 days of storage at room temperature, so
the shelf life of fresh tomatoes is relatively short without proper handling. The researchers found
out that the different types of tomatoes will spoil quickly. That is why we want to apply a cooling
system to the tomatoes, so that we can extend their shelf life. And by the used of machine learning
algorithms, we can easily designate the fresh tomatoes to not and identify their level of freshness.
The researcher will develop an analytical tool to indicate the freshness level of tomato with an
The farmers and distributors will have the better prices for their produce if they can assure
customers of its freshness with a clear freshness indicator, and also can better manage the logistics
of transporting and distributing tomatoes, minimizing losses due to spoilage. The researcher
purpose is to create a more accurate, automated, and efficient system for assessing the freshness
of tomatoes. Traditional methods may have limitations in terms of precision and speed, but with
B.2. Design
The primary goal of the Tomato Freshness Level Indicator is to provide users with a reliable
and user-friendly tool to assess the freshness of tomatoes. The design should be intuitive,
accommodating various types of tomatoes, and able to adapt to different environmental conditions.
Parameters of Design
Sensors
Temperature sensor will measure the temperature inside the cooling system. Humidity
Machine Learning
Support Victor Machine (SVM) is for classifications of tomato based on the image extracted.
Microcontroller/Microprocessor
handle data from multiple sensors and perform calculations for freshness assessment. Ensure
User Interface
Adding a display which implement a clear and easily readable display to present the
Calibration Mechanism
Adjustment controls will provide a simple and effective calibration mechanism to account
for variations in tomato types and user preferences. Calibration algorithm will develop an
Enclosure
The materials use should be durable and food-safe material for the device enclosure. Ensure
Safety Considerations
The researcher will ensure that materials used in the design comply with safety standards
Cost-Effective Manufacturing
Scalability
The researcher will design the device with scalability in mind to accommodate mass production
if needed.
B.3. Fabrication
Tomato Freshness Level Indicator involves integrating various technologies and processes
to accurately assess the freshness of tomatoes. General overview of the fabrication processes:
1. Choosing appropriate sensors that can measure indicators of tomato freshness, such as
tomatoes.
5. Implementing a display system to present the freshness level to the user. This could be a
simple LED indicator, an LCD display, or even a smartphone app if the system is more
complex.
6. Choosing an appropriate power supply system. This will be a direct power source if the
indicator is stationary.
8. Rigorously test the system with various tomatoes at different freshness levels to ensure
9. Designing a user interface that allows users to interact with the device, such as setting
B.4. Testing
Testing is a crucial phase in the development of a Tomato Freshness Level Indicator to ensure
Operation Procedure
The researcher will energize the machine and check all the components if it is all working.
Input the image of fresh and non-fresh tomato in the Convolutional Neural Network (CNN). Place
the tomatoes inside the cooling system and calibrate the temperature on its designated coolness.
Testing Procedure
The researcher will verify that the Support Victor Machine (SVM) are detecting color and
physical appearance accurately. Confirm that the microcontroller processes data correctly. Ensure
the display or output accurately represents the freshness level. Check the accuracy of freshness
Standards
The researcher will ensure compliance with relevant food safety standards, especially if the
device comes into direct contact with food. Comply with electrical safety standards to avoid
Trials Test
The researcher will test the device with various types of tomatoes to ensure it is effective across
different varieties. Conduct tests in conditions that mimic real-world scenarios, such as varying
temperatures and humidity. Run the device continuously for an extended period to check for
B.5. Evaluation
Evaluating a Tomato Freshness Level Indicator involves assessing its performance against
Evaluation Procedure:
The researcher will measure the accuracy of the sensors in detecting color and physical
appearance. Evaluate the effectiveness of the calibration process. Confirm that adjustments align
with expected changes in freshness. Assess the microcontroller's ability to process sensor data
accurately and in a timely manner. Verify that the freshness level displayed is clear and easily
understandable for users. Test the device with various types of tomatoes to ensure it performs
consistently across different varieties. Assess performance under real-world conditions, including
varying temperatures and humidity levels. Run the device continuously for an extended period to
levels.
Technique: Use a digital camera or imaging device to ensure consistent and accurate
Technique: Utilize tools for resizing, cropping, normalizing, and augmenting images to
PyTorch), and frameworks to develop and train the freshness level indicator.
Description: Platforms for coding, testing, and documenting machine learning projects.
Technique: Use Python programs, jupyter notebooks or IDEs for coding the machine
learning model, running experiments, and documenting the code and results.
Technique: Employ techniques like k-fold cross-validation to ensure the model's reliability
Technique: Use metrics such as accuracy, precision, recall, F1 score, and confusion matrix
results.
Technique: Utilize libraries like Matplotlib or Seaborn to create visualizations that help
Technique: Leverage cloud computing services like AWS, Google Cloud, or Azure to
Data Processing:
1. Data Collection: Gather a diverse dataset of tomato images with corresponding freshness
split might be 70% for training, 15% for validation, and 15% for testing.
1. Descriptive Statistics: Calculate basic statistics (mean, median, standard deviation) for
MONTHS→ 1ST 2nd 3rd 4th 5th 6th 7th 8th 9th 10th
SCHEDULE
PLANNING
RESEARCH
DESIGN AND
PROTOTYPING
TESTING
EVALUATION