nutrient composition analysis and prediction based on
mechanism optimization and machine learning
methods (Pickford, and McCormack, et al. 2022). In
recommendation systems, common algorithms
include regression analysis, clustering algorithms,
and association rule mining, which are conducive to
discovering hidden patterns in food nutrition content
data and generating targeted recommendations. The
introduction of computer algorithms, especially those
based on data mining, has greatly improved the ability
of the system to process large-scale complex data on
food nutrition content (Silveira, and Valler, et al.
2024). These algorithms can accurately predict the
nutritional composition of food based on the user's
historical data, and have certain learning and
optimization capabilities. Based on continuous
updates and adjustments, the system can revise the
mechanism according to real-time data to ensure the
dynamic update and optimization of recommendation
results. This ability to self-regulate makes the
application of computer algorithms in nutritional
recommendation systems extremely critical (Svarc,
and Jensen, et al. 2022).
2.2 Apriori Algorithm Can be Used for
Estimation of the Frequency of
Occurrence of Nutrient
Combinations
Among many computer algorithms, Apriori
algorithm is an important association rule mining
algorithm, which can find frequent item sets from
large data sets and generate association rules based on
these item sets. It is based on a recursive approach to
find frequently occurring combinations in the data,
such as the nutritional composition of a food, and then
identify effective recommendation patterns (Víquez,
and Morales, et al. 2022). The algorithm first defines
the degree of support, which is mainly used to
measure the frequency of occurrence of one nutrient
combination , and the confidence level, which
measures the probability of another ingredient
appearing when there is a particular nutrient
combination. In the nutrition recommendation
system, the Apriori algorithm provides data support
for personalized dietary recommendations based on
the screening of high-support and high-confidence
combinations of nutrients. Compared to other
traditional algorithms, the Apriori algorithm can
efficiently process multi-dimensional data and
generate personalized nutrition recommendations for
users. The advantage is that it can mine high-value
correlation information from the big data set, and use
this information to optimize the recommendation
mechanism of the system.
3 METHODS
3.1 The Structure of Each Component
of the Nutrition Recommendation
System
The research in this paper needs to construct a
nutritional recommendation system, which includes
six components, each of which has its own content
that needs to be responsible. Specifically, the task of
the data collection component is to collect data
related to the user's food nutrients, such as the user's
dietary history, physical fitness information,
nutritional needs, etc. The widget is based on an
interface to obtain the nutritional content data of food
products, and then maintain the integrity and
accuracy of the data. In addition, the widget interfaces
with external databases, allowing the latest food data
to be updated in real time. The task of the data
preprocessing component is to clean, standardize and
structure food nutrition data to ensure that the data
format is uniform. Data preprocessing mainly focuses
on the processing of missing values, outliers and
standardized nutrient composition data. It is also
possible to select key food ingredients relevant to
nutritional analysis based on feature extraction,
preparing them for subsequent analysis. The task of
the Association Rule Mining component is to apply
the Apriori algorithm to perform frequent itemset
mining and association rule generation. It can be
based on a set minimum level of support and
confidence to provide insight into potential
associations between food nutrients. Another task is
to export the association rules of nutrients to provide
stable, reliable, and comprehensive data support for
personalized recommendations. The task of the
recommendation engine component is to apply the
mined association rules to generate nutritional
recommendations according to the user's individual
needs. The recommendation engine provides users
with suitable food recommendations based on the
user's health goals, such as the user's fat loss goals,
muscle gain goals, etc. It can adjust the recommended
regimen in real-time to meet the different dietary
needs of users. The task of the User Feedback widget
is to collect user feedback on the recommendation
results and apply their feedback to system
optimization. Users can provide feedback on
recommended foods based on ratings, evaluations,