Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Next Article in Journal
Bio-Power Generation in Microbial Fuel Cell with Vermicompost Using Eisenia foetida
Previous Article in Journal
Grammar-Based Computational Framework for Predicting Pseudoknots of K-Type and M-Type in RNA Secondary Structures
Previous Article in Special Issue
Comparative Analysis of Deep Learning Models for Optimal EEG-Based Real-Time Servo Motor Control
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Improved Quantum Particle Swarm Optimization of Optimal Diet for Diabetic Patients

by
Abdellah Ahourag
1,
Zakaria Bouhanch
1,
Karim El Moutaouakil
1,* and
Abdellah Touhafi
2
1
Engineering Science Laboratory, FPT, Sidi Mohamed Ben Abdellah University, Fez 30000, Morocco
2
Department of Engineering Technology (INDI), Vrije Universiteit Brussel (VUB), 1050 Brussels, Belgium
*
Author to whom correspondence should be addressed.
Eng 2024, 5(4), 2544-2559; https://doi.org/10.3390/eng5040133
Submission received: 1 September 2024 / Revised: 4 October 2024 / Accepted: 8 October 2024 / Published: 10 October 2024
(This article belongs to the Special Issue Artificial Intelligence for Engineering Applications)

Abstract

:
The dietary recommendations for individuals with diabetes focus on maintaining a balanced nutritional intake to manage blood sugar levels. This study suggests a nutritional strategy to improve glycemic control based on an analysis of a dietary optimization problem. The goal is to minimize the overall glycemic loads (GLs) of specific foods. Two variations of the particle swarm optimization (PSO) method, as well as random quantum process optimization (GQPSO), are introduced. The findings demonstrate that the quantum and random methods are more effective than the traditional techniques in reducing the glycemic loads of diets and addressing nutritional deficiencies while also aligning nutrient intake with the recommended levels. The resolution of this diet optimization model, executed multiple times with adjustments to the parameters of both methods, enables dynamic exploration and provides a wide range of diverse and effective food choices.

1. Introduction

Diabetes is a chronic disease that affects millions of people worldwide. It is well understood that proper dietary management is crucial for diabetic patients to maintain their health and control their blood glucose levels [1]. To further improve in this area, we intend to address the complex dietary challenges faced by people with diabetes. This improvement involves testing the effectiveness of two optimization methods in a nutritional optimization model for diabetics: particle swarm optimization (PSO) and its enhanced variant, Gaussian quantum particle swarm optimization (GQPSO). Particle swarm optimization (PSO) is a heuristic optimization technique inspired by the collective movement of a swarm of birds. Developed by Kennedy and Eberhart in the 1990s [2], this method is particularly well able to solve complex non-linear optimization problems. Particle swarm optimization (PSO) is a non-linear optimization method based on social behavior, using swarm intelligence algorithms for global optimization on continuous search spaces, where particles collaborate and share knowledge within a swarm. Particle swarm optimization (PSO) is based on a set of randomly and homogeneously arranged particles that move in the research hyper-space, each considered a potential solution. Particles remember their best solution and can communicate with their environment. By iteratively updating their positions, particles gradually converge toward an optimal solution. A novel variant, quantum-behaved particle swarm optimization (QPSO), has recently emerged [3,4]. This method is based on the principles of quantum mechanics and particle swarm optimization techniques. The key difference between these two approaches is that the quantum particle swarm optimization (QPSO) method is inspired by the principles of quantum mechanics and particle swarm optimization techniques. The QPSO method is based on the concepts of quantum superposition and interference, allowing particles to jump between different potential solutions in a non-deterministic way [4]. On the other hand, by enhancing these methods with probability distributions [5,6], the behavior of quantum particles in the search for solutions can be stochastically and randomly modeled. This enables a more comprehensive and diversified exploration of the solution space.
Particle swarm optimization (PSO) and its variants, such as QPSO and GQPSO, have shown their versatility and effectiveness in solving a variety of real-world problems. These optimization techniques have been successfully applied in various fields, including engineering, healthcare, finance, and more. For example, the TrigAC-PSO variant of PSO has been utilized to optimize the solution for the fuzzy transportation problem [7]. The efficiency of this method is shown by incorporating trigonometric functions to adjust the particle velocities, potentially leading to faster convergence and improved exploration of the search space. Its adaptability to fuzzy data makes it suitable for solving the fuzzy transportation problem, and its global optimization capabilities are beneficial for finding near-optimal or optimal solutions. Similarly, in [8], the transportation problem was solved using the PSO method and its variants. Moreover, in [9], PSO was used to optimize the solutions for the urban transit routing problem, and the proposed PSO variant outperforms the existing techniques, providing superior solutions for the UTRP. Another application explored for PSO is in the field of school timetabling [10]; the results of this study suggest that PSO can be a valuable tool for optimizing school timetables and providing efficient and equitable scheduling. Furthermore, an application of PSO lies in the domain of cloud computing task scheduling [11]. The EECS strategy, utilizing APSO, offers an effective solution for managing IoT and non-IoT tasks. The strategy’s focus on energy efficiency and resource optimization is a key advantage. In [12], a proposed hybrid PSO-OSELM model demonstrated to be an effective indoor temperature forecasting approach. Combining PSO for optimization and online sequential extreme learning machine (OSELM) for adaptive learning improve forecast accuracy and generalization performance over other methods. The successful application of PSO and its variants in diverse fields, ranging from engineering and finance to healthcare, has demonstrated their effectiveness in solving complex optimization problems. Given the complexity of finding an optimal diet for diabetic patients, which involves balancing multiple factors, such as nutritional needs, caloric intake, and glycemic control, PSO’s ability to handle complex constraints and search for near-optimal solutions, coupled with the enhanced capabilities of its variants like QPSO and GQPSO, make it a promising candidate for addressing this challenge.
The article aims to assess the performance of two variants of particle swarm optimization—one with quantum and random behavior (GQPSO) and the other a traditional PSO—in solving an optimization problem aimed at minimizing the total glycemic loads of diets. The problem of minimizing the glycemic load represents an advanced nutritional optimization model, crucial for managing diabetes or for those looking to cut down on their carbohydrate intake [13]. Most of these models are constrained by various factors, like nutrient variability and interactions between macronutrients, making it tricky to solve these issues [14,15]. This study focuses on tackling these challenges within a quantum and random framework using a quantum-behaved swarm particle approach that incorporates Gaussian mutation (GQPSO). Quantum behavior encourages a more efficient exploration of the search space. Integrating a Gaussian mutation into the method (GQPSO) increases the likelihood of refining the solutions through iterations, enabling optimal exploitation and exploration. This helps in selecting safe and diverse diets, which are essential for both diabetics and others. Solving this model with different parameter values from both methods enables dynamic exploration, providing a variety of solutions. This makes it easier to compare the performance of the two methods across several aspects, including minimizing the glycemic load and nutritional intake.
In the upcoming section, we will provide detailed descriptions of the processes involved in two approaches: traditional particle swarm optimization (PSO) and quantum random behavior optimization. Following that, in the third section, we will outline the modeling of our nutritional optimization problem, including the consideration of data sets and parameters. Finally, in the last two sections, we will compare the performance of the PSO and GQPSO methods by analyzing the nutritional results. This will be followed by a conclusion and a discussion of the future perspectives in this field.

2. Classical and Quantum Random Particle Swarm Approaches

2.1. Standard PSO

The particle swarm optimization method was originally developed by researchers Kennedy and Eberhart [2]. Particle swarm optimization (PSO) is a method that involves a group of individuals called particles, which are positioned randomly in a search space. Each particle represents a potential solution and moves throughout the space seeking the best solution. Additionally, each particle remembers the best solution it has encountered and can communicate with other particles in its vicinity. In the traditional PSO with M particles, each particle is considered as a potential solution within a D-dimensional space. The position of an individual particle at the k-th iteration is represented as x i ( k ) = [ x i 1 ( k ) , x i 2 ( k ) , , x i D ( k ) ] . Each particle retains information about its previous best position. The velocity of the moving particles is represented by a D-dimensional vector denoted v i ( k ) = [ v i 1 ( k ) , v i 2 ( k ) , , v i D ( k ) ] . At the ( k + 1 ) -th iteration, the velocity and position of particle i are updated by the following equations:
v i j ( k + 1 ) = w v i j ( k ) + c 1 r i j ( k ) P i j ( k ) x i j ( k ) + c 2 R i j ( k ) g j k x i j ( k )
x i j ( k + 1 ) = x i j ( k ) + v i j ( k + 1 )
where c 1 and c 2 are two positive constants, called the cognitive and social coefficients, respectively. These constants control the relative influence of cognition and social interaction in the updating process. r i j and R i j are two random numbers uniformly distributed in the range ( 0 , 1 ) for the j-th dimension of particle i. P i ( k ) = [ P i 1 ( k ) , P i 2 ( k ) , , P i D ( k ) ] is the vector of the position with the best fitness found so far for the i-th particle, which is called (pbest). And, vector g k = [ g 1 k , g 2 k , , g D k ] records the best position discovered by the swarm so far, known as the global best (gbest) position. x i j ( k ) , v i j ( k ) and P i j ( k ) are the j-th dimensions of the vectors of x i ( k ) , v i ( k ) and P i ( k ) , respectively. Parameter w represents the inertia weight utilized for striking a balance between global and local search abilities [16]. The most common strategy for controlling it is to first set it at 0.9 and then reduce it linearly to 0.4  [17]. Let f be the objective function we want to minimize. PSO can be described using the following Algorithm 1.
Algorithm 1 PSO Pseudo-code
1:
Input: M : Swarm size
2:
         D : Problem dimension.
3:
         T: Maximum iterative number
4:
Output:  g k : The best solution (position)
5:
Start
6:
Initialization : Generate an initial population with positions and velocities.
7:
for  i = 1 to M do
8:
    if  f ( x i ) < f ( P i )  then
9:
          P i = x i
10:
         g i k = a r g m i n ( f ( P i ) )
11:
    end if
12:
end for
13:
while  k T do
14:
      for  i = 1 to D do
15:
          r i k , R i k two independent vectors randomly generated from [ 0 , 1 ] D
16:
         Apply Equation (1)
17:
         Apply Equation (2)
18:
         if  f ( x i ( k ) ) < f ( P i ( k 1 ) )  then
19:
              f ( P i ) ( k ) f ( x i ( k ) )
20:
         end if
21:
    end for
22:
     g i k = a r g m i n ( f ( P i ) )
23:
     k k + 1
24:
end while

2.2. An Overview of Quantum-Behaved Particle Swarm Optimization

In classical mechanics, any particle is characterized by its position vector x and velocity vector v, which determine its trajectory. In Newtonian mechanics, a particle follows a defined trajectory, but, in quantum mechanics, the concept of trajectory is meaningless. In this case, the notion of trajectory loses its meaning due to the uncertainty principle, making it impossible to simultaneously determine a particle’s position x and velocity v. Consequently, if the particles within a PSO system exhibit quantum behavior, this implies that the PSO algorithm will operate differently.
A new variant of PSO, called quantum particle swarm optimization (QPSO) [4], is a method inspired by quantum mechanics and particle swarm optimization. For the QPSO method, the velocity vector does not appear; it only has the position vector and is, therefore, simpler than the standard particle swarm optimisation algorithm. Sun and et al. [3] introduced quantum theory into PSO and proposed the quantum particle swarm optimization algorithm (QPSO). This algorithm not only has fewer control parameters than PSO but is also more efficient, theoretically guaranteeing finding the optimal solution in the search space.
In the QPSO model, the state of a particle is provided by the wave function Ψ ( x , t ) (Schrödinger equation) [18] instead of position and velocity. The probability density function | Ψ ( x , t ) | 2 provides a means to calculate the likelihood of a particle being found at a particular location, as determined by the statistical properties of its wave function [19]. The position of the particle can therefore be calculated using the probability density function. Using the Monte Carlo method, we can obtain the j-th component of position x i of the particle at iteration k + 1 as [3,19]
x i j ( k + 1 ) = p i j ( k ) ± β | M b e s t j ( k ) x i j ( k ) | . l n ( 1 / u i j ( k ) )
where u i j ( k ) is a random number generated using the uniform probability distribution functions in the range [ 0 , 1 ] , p i is the local attractor and defined as [20 p i ( k ) = [ p i 1 ( k ) , p i 2 ( k ) , , p i D ( k ) ] , and 
p i j ( k ) = c 1 r i j ( k ) P i j ( k ) + c 1 R i j ( k ) g j k c 1 r i j ( k ) + c 1 R i j ( k )
Or,
p i j ( k ) = ϕ p i j ( k ) + ( 1 ϕ ) g j k
where
ϕ = c 1 r i j ( k ) c 1 r i j ( k ) + c 1 R i j ( k ) .
β is called the contraction–expansion (CE) coefficient, which can be tuned to control the convergence speed of the algorithm. This coefficient should be controlled when using QPSO in practical applications. In [21], it has been shown that taking an interval ( 0.5 , 0.8 ) provides more interesting results for the majority of benchmark functions. The value of β can be calculated by
β = β 0 + ( T t ) . ( β 1 β 0 ) / T
where β 0 and β 1 are the final and initial values of β , respectively, T is the maximum number of iterations, and t is the current iteration number. M b e s t is known as the mean best (mbest) position defined as the mean of the p b e s t positions of all particles and is provided by
M b e s t ( k ) = [ M b e s t 1 ( k ) , M b e s t 2 ( k ) , , M b e s t D ( k ) ]
= 1 M i = 1 M P i 1 ( k ) , 1 M i = 1 M P i 2 ( k ) , , 1 M i = 1 M P i D ( k )
In general, the PSO algorithm with Equation (3) is called quantum-behaved particle swarm optimization (QPSO), and it can be described by the following Algorithm 2.
Algorithm 2 QPSO Pseudo Code [3]
Eng 05 00133 i001
The illustration in Figure 1 shows how particles move in the PSO and QPSO methods towards the best global positions (central particles) in the search space. Thanks to Adaptive Particle Convergence in QPSO, particles that are far from the global position are able to move towards it. On the other hand, in PSO, a particle that does not find a better position than the global one no longer influences the others. As a result, QPSO enhances the contribution of these particles compared to traditional PSO. The arrows in particle swarm optimization (PSO) and quantum particle swarm optimization (QPSO) algorithms illustrate the behavior of particles. In the classic PSO algorithm, the red arrows show the direction of the particles towards the global position, which is determined by their best-known position (pbest) and the best position of the swarm (gbest) [5]. In contrast, in QPSO, the quantum behavior enables a position update that takes multiple factors into account, including the average best position (mbest), enabling the particles to move simultaneously in several directions. The blue arrows represent these directions, while the large red arrows show the most likely direction of movement in the QPSO algorithm.

2.3. Quantum Particle Swarm Optimization Using Gaussian Mutation (GQPSO)

In addition to the mechanisms for updating particle positions within QPSO methods that use a probability distribution (3), Maolong Xi et al. introduce a weighting parameter in calculating the optimal average position in WQPSO [22], which is determined by the fitness value of the particles. This approach involves a probabilistic evaluation aimed at measuring the influence of each particle on the average position. Several mutation mechanisms using probability distributions are integrated into quantum behavior particle swarm optimization to enhance the exploration of the search space and maintain diversity in solutions. In QPSO methods with mutations, the mutation is typically incorporated when updating the positions of the particles. For a mutation with a general distribution, the formula takes the following form:
x i j mut ( k + 1 ) = x i j ( k + 1 ) + μ · D i s t r i b u t i o n
where x i j mut ( k + 1 ) is the position of the particle after mutation, μ is a controlling factor determining the intensity of the mutation, and Distribution represents the applied probability distribution. The use of Cauchy-distributed mutations in QPSO algorithms often enables particles to make “long jumps”, thereby encouraging a more global and diverse exploration of solutions. In [5], a natural selection mechanism is also applied to enhance the efficiency of the QPSO-CD algorithm. There is also the integration of Gaussian mutation operators to enhance Gaussian quantum particle swarm algorithms (GQPSOs) in various engineering applications [6,23]. In GQPSO, the Gaussian distribution is used to update the positions of the particles.
Approach 1—GQPSO(1) [6]:
x i j ( k + 1 ) = P i + b · | M b e s t ( k ) x i j ( k ) | · ln ( 1 / G u i j ( k ) ) if k 0.5 P i b · | M b e s t ( k ) x i j ( k ) | · ln ( 1 / G u i j ( k ) ) if k < 0.5
The expression G u = | N ( 0 , 1 ) | represents the absolute value of a standard normal random variable. The term P i denotes a point in the search space used to calculate the new position of particle x i j ( k + 1 ) based on the best position found by the population ( M b e s t ) and the value of G u . Parameter k affects the way the positions of the particles are updated.
Approach 2—GQPSO(2) [6]:
P i = G u · p i , d + g · p g , d G u + g
where g = | N ( 0 , 1 ) | . Notations p i , d and p g , d represent the best personal and global positions of the particles, respectively. This enables probabilistic exploration of the space, taking quantum effects into account, making the method more efficient and robust. In traditional optimization approaches, the mutation operators are applied in a fixed manner, and the types of distributions remain constant throughout the optimization process. However, this limits the exploration of the search space. To address these limitations, Ref. [24] introduces an adaptive mutation in the quantum behavior particle swarm optimization algorithm (AMQPSO). This algorithm, which is based on the q-Gaussian distribution, dynamically adjusts the mutation parameters based on the state of the population. The non-extensive entropy index q is calculated using the formula
q = q max t · q max q min MaxIter ,
where q max and q min represent the maximum and minimum values of q, respectively, t is the current iteration (ranging from 0 to MaxIter), and MaxIter is the maximum number of iterations.
The study aims to use two techniques, including a traditional PSO and another that combines quantum and random principles, GQPSO, to enhance the nutritional optimization problem for individuals with diabetes, specifically in terms of nutrition.

3. Nutritional Optimization Problem Modeling for Diabetics

3.1. Information and Variables Related to Diet Problems

The most crucial element in the prevention and treatment of diabetes is diet, which requires the creation of an eating plan adapted to various social and economic factors and its integration into daily life. Foods contain essential nutrients for the body’s proper functioning, Nutrients can be divided into two categories: positive nutrients, such as calories, protein, carbohydrates, and various vitamins and minerals, and negative nutrients, which include saturated fats, sodium, cholesterol, and total fat. In terms of daily nutritional requirements, we have chosen to follow the nutritional recommendations issued by the United States Department of Agriculture (USDA). These recommendations are designed to help individuals maintain a balanced diet to prevent diabetes and promote overall health. They are designed in Figure 2 and Figure 3.
The variables and data for our diet problems are based on a selection of 177 foods from various groups (fruits, vegetables, meats, starches, etc.) that are most widely consumed by the Moroccan community. Nutritional values are calculated for a 100 g portion of each food. Each meal, which is a combination of n foods, is represented by a vector x = ( x 1 , , x 177 ) , where each element ( x n ) n = 1 , . . , 177 corresponds to the quantity of nutrient n in the meal per 100 g unit. The aim is to determine a food choice that provides a variety of nutritious foods while reducing the overall glycemic load of a meal (optimal diet). This food choice must also meet specific recommended requirements [14,25].
Here are the various variables and parameters used to model our problem:
G T x : The glycemic load induced by foods included in the diet.
A = a i j : The matrix in which a i j represents the quantity of beneficial nutrients i per 100 g portion of food j.
E = e i j : This is the matrix where e i j indicates the amount of potentially harmful nutrients i per 100 g portion of food j.
b: The minimum of positive nutrients required for the body to function properly.
f: Maximum acceptable levels of harmful nutrients can cause health problems if consumed in excess.
A c : The vector represents the portion of calories from the positive nutrient.
c i : Vector representing the calories from the nutrients in set { c a r , p , t f , s f } .
τ i : The percentage of total calories of i nutrients from τ p = 18 % , τ c a r = 55 % ,   τ s f = 7.8 % , and τ t f = 29 % .

3.2. Mathematical Representation of Constraints

3.2.1. Requirements for Beneficial Nutrients

The total beneficial nutrients of diet x are expressed by vector A . x , and the requirements are represented by b, so it is necessary to impose constraint A . x b .
The calorie ratio produced by carbohydrates must be determined by inequality c c a r T x 0.55 A c T x .
Calories from protein must be consistent with inequality c p T x 0.18 A c T x .

3.2.2. Requirements Concerning Harmful Nutrients

Total harmful nutrients in the diet x is E x , and the needs are recorded in f; we thus have E x f .
Total calories from saturated fats are regulated by the following condition: c t f T x 0.29 A c T x .
Total calories from total fat are regulated by the following inequality: c s f T x 0.078 A c T x .
The research focuses on improving nutrition for people with diabetes, modeled as a linear optimization problem aimed at minimizing the total glycemic loads of diets found. Glycemic load is considered a more recent tool for better dietary management in the context of diabetes as it enables a diversified classification of foods according to their impact on blood glucose, thus facilitating diabetes control. Thus, our nutritional optimization problem is as follows:
( P ) : M i n G T x S u b j e c t t o : A . x b E . x f c i T x τ i A c T x i c a r , p c i T x τ i A c T x i t f , s f x 0
Similar research addressing this issue has compared the performance of the PSO method with other intelligent optimization approaches, such as the stochastic fractal (SFS), the firefly optimization algorithm (FA), and the genetic algorithm (GA), which are covered in [15,26,27]. This problem was also modeled using fuzzy optimization techniques to deal with the imprecision of the associated parameters, which led to more efficient results and could be useful in the field of blood glucose management [28,29,30,31,32]. This issue is addressed through a multi-criteria optimization process that takes into account various factors, such as the cost of nutrition, and utilizes different methods to improve performance [33,34,35,36,37], making it possible to confront diabetes control with other criteria. With a view to vague nutritional recommendations, we have suggested a method based on the optimization and learning of artificial neural networks to better estimate people’s nutritional dietary needs [38,39].

3.3. Evaluation of Diet Problem Parameter

We analyzed 177 commonly used foods in Moroccan cuisine to assess their macronutrient composition, including vitamins, minerals, lipids, and carbohydrates, as well as elements such as sugars and fiber. The nutritional values for certain foods are displayed in nutritional tables per 100 g portion (see Table 1 and Table 2).
The daily nutrient requirements for positive and potentially harmful nutrients are those recommended by the US Department of Agriculture [14,40], and these recommendations do not take into account the average amounts of positive and potentially harmful nutrients; they are Illustrated in Figure 2 and Figure 3.
Table 1. Contents of vitamins and minerals.
Table 1. Contents of vitamins and minerals.
Name of FoodsVitamin AVitamin CVitamin EVitamin B6Vitamin B12Calcium (Ca)PhosphorusMagnesiumPotassiumIron (Fe)ZincCaloriesProteinCarbohydrate
Apricot05.50.60.1015.616.68.72370.30.1490.99
Dried Apricot0140.2061.268.336.510904.30.32713.153
Garlic01701.2017.716120.75551.30.81317.921.5
Almond00.414.60.1024841623266833.363425.41.5
Pineapple0120.10.1020.31119.81700.20.7530.411
Canned Pineapple010.40.10.1014.3513.31050.20.1820.419.1
Artichoke010.30.20.103949.229.53800.70.5442.84.9
Asparagus01600019.951.56.31980.70.4302.73.2
Eggplant01.300.1020.115151230.30.1350.86.3
Avocado07.52.40.2010.841.927.14120.50.5691.83.13
Baguette000.10.10.000152.411019.71581.50.72869.356.6
Banana06.50.30.304.517.532.84110.30.2941.220.5
Beetroot0500018.431.116.32660.70.3432.37.2
Cooked Egg White00000.000016.714.79.71470.104610.30.7
Cooked Broccoli0.40.30.80.30.002000000.79721.51.1
Broccoli037.310.2055.85611.514810.3292.12.8
Peanut00.712.20.504.937070.654.202.863625.914.8
Raw Carrot01600019.951.56.31980.70.4302.73.2
Peeled, Cooked Carrot (boiled)040.60.1026.220.411.92430.30.2360.86.6
Celery080.20.1053.327.29.22690.30.1161.21.2
Cooked Celery Stalk040.20.1053.32592840.40.1130.81.6
Table 2. Sodium, fat, cholesterol, and fatty acid content of foods.
Table 2. Sodium, fat, cholesterol, and fatty acid content of foods.
Name of FoodsSodiumTotal FatCholesterolSaturated Fat
Apricot1.000.390.1000.027
Dried Apricot10.000.510.1950.017
Garlic17.000.500.0000.089
Almond1.6153.401.1804.040
Pineapple1.000.120.0000.009
Canned Pineapple0.100.100.0000.100
Artichoke94.000.150.0000.036
Asparagus14.000.220.0000.048
Eggplant1.000.230.0000.044
Avocado7.0014.660.0002.126
Baguette711.001.300.1000.280
Banana1.000.330.1000.112
Beetroot0.100.200.2000.100
Cooked Egg White0.200.200.0000.000
Cooked Broccoli41.000.4155.5000.079
Broccoli0.300.400.5000.100
Peanut2.1049.600.0001.000
Raw Carrot69.000.240.0000.037
Peeled, Cooked Carrot (boiled)0.100.100.1000.100
ine Celery80.000.170.4300.042
Cooked Celery Stalk91.000.160.0000.040
The objective function to be minimized G T x is the glycemic load of food combinations x (optimal diet) for diabetic patients. It is a linear function whose G vector components represent the glycemic load content of food per 100 g unit, determined using a nutrition study. This requires a great deal of time and effort on the part of our research team due to the large number of foods and the difficulties encountered in estimating the nutritional values of different foods. They strive to complete this complex task and provide accurate and relevant information in the field of nutrition. Some of the estimates of glycemic load values are shown in Table 3. The glycemic load (GL) is a measure of the number of carbohydrates that can be absorbed by the digestive tract and have an impact on blood sugar levels, based on the glycemic index (GI) of food, which measures the speed at which the carbohydrates in a food are digested, transformed, and end up as glucose in the blood [41]; the glycemic load of food is obtained by multiplying the glycemic index of the food by the number of carbohydrates contained in a specific portion of this food, then dividing the result by 100 [25].
Table 3. Glycemic load content.
Table 3. Glycemic load content.
Name of FoodsGlycemic Load (Min)Glycemic Load (Mean)Glycemic Load (Max)
Apricot5.135.135.13
Dried Apricot15.918.5521.2
Garlic3.2253.2253.225
Almond0.150.150.15
Pineapple3.573.7533.936
Canned Pineapple00.3130.626
Artichoke0.7350.7350.735
Asparagus0.480.480.48
Eggplant0.9450.9450.945
Avocado0.6260.6260.626
Baguette39.6239.6239.62
Banana9.2210.7612.3
Beetroot1.082.0883.096
Cooked Egg White000
Cooked Broccoli0.1650.1650.165
Broccoli0.420.420.42
Peanut2.072.072.07
Raw Carrot0.480.480.48
Peeled. Cooked Carrot (boiled)3.1024.3565.61
Celery0.180.180.18
Cooked Celery Stalk0.240.240.24

3.4. Discussion

In this section, we will be presenting the results obtained from using the GQPSO and PSO approaches to address a dietary problem for diabetics. Our objective is to assess the effectiveness of these methods by comparing their performances and analyzing the nutritional gaps, as well as the positive and negative aspects of each approach. Figure 4 and Figure 5 depict the optimal food choices selected by the GQPSO and PSO methods with varying values for parameters w 1 , w 2 , c 1 , and c 2 . Parameters w 1 and w 2 in the particle swarm algorithms used represent the inertia weights that influence the particles’ behavior during iterations. In the pseudo-code for the method GQPSO, these parameters are denoted as ( w 1 = β 0 and w 2 = β 1 ) . Conversely, for the method PSO, they are represented as ( w 1 = r and w 2 = R ) (Section 2). Adjusting these parameters during optimization by gradually changing the inertia can affect the algorithm’s effectiveness. Some problems may require more exploration, which can be achieved by using higher values of w 1 at the start, while others may require quick convergence, which can be obtained by using lower values of w 2 toward the end. This approach enables dynamic exploration and exploitation, thereby improving overall performance. c 1 and c 2 are acceleration coefficients that adjust the impact of the best personal solutions (pbest) and the best global solution (gbest) on the movement of particles [6]. In GQPSO, these parameters are distributed according to a Gaussian distribution. While optimizing our model, we adjusted the parameters for each method, particle swarm optimization (PSO) and quantum particle swarm optimization (QPSO). This helped us to assess their impact on improving the glycemic load by exploring a wide range of possibilities and selecting the best food combinations. We kept parameters c 1 and c 2 equal during each adjustment to maintain a balance between the cognitive and social tendencies of the particles. For each method, we calculated the optimal glycemic load and the positive and negative nutritional deviations associated with each diet. The yellow highlights indicate the food quantities chosen for the various optimal diet solutions. It is important to note that the values represent the quantity of each food per 100 g unit.
The analysis of the diets created using the PSO method (see Figure 4) shows that they contain a variety of essential nutrients. These dietary plans commonly include foundational foods such as coconut, known for its beneficial fatty acids and dietary fiber; sesame seeds, which are a good source of protein, fiber, and various minerals; and fennel, a low-calorie vegetable rich in fiber, vitamins, and minerals. In addition to fruits and vegetables, these diets also contain protein-rich foods like raw lamb’s liver, which is high in quality protein, B vitamins, and essential minerals. Raw whiting is another inclusion that adds protein, omega-3 fatty acids, as well as a range of vitamins and minerals to the nutritional profile. Raw lamb liver, selected by PSO, is recommended in small amounts (100 g per diet). While it is low in carbohydrates (0.16 g/100 g) and high in protein (21 g/100 g), it contains saturated fats and should be eaten in moderation. It is chosen to diversify meals. To address the issue of repeatedly recommending certain foods in dietary plans, we have developed classification algorithms that combine Fuzzy C-means (FCM) and deep neural networks with auto-encoders. This method enables each food to belong to multiple groups, each with varying degrees of membership. As a result, we can substitute each food with coherent alternatives within the same group. This is crucial for ensuring dietary diversity and optimizing diet management [4243,44].
Thus, for the diets provided by the GQPSO method (Figure 5), we can see that they are characterized by remarkable diversity. These diets significantly include items such as sesame seeds, spinach, and salad. Sesame seeds provide protein, fiber, and minerals, while spinach offers essential vitamins, antioxidants, and minerals. The presence of salad suggests a contribution to vitamins, fiber, and hydration. The combination of these elements in these diets suggests a balanced and varied approach, promoting a complete and health-promoting diet.
The results obtained by the two methods are then compared in Figure 6, Figure 7 and Figure 8. This comparison involves evaluating the glycemic load reduced by each method and analyzing the differences between the minimum amounts of beneficial nutrients calculated by the two methods. Additionally, it includes comparing the negative nutrients calculated and the acceptable minimum for a diet.
Figure 6 shows the GLs of the diets produced by PSO and GQPSO considering the different cases of study associated with different values of parameters ( w 1 , w 2 , c 1 , c 2 ) . Except for the two diets, the diets produced by GQPSO have lower GLs than those provided by PSO. The fact that the GQPSO method produces diets with a minimal GL quantity compared to the PSO method indicates that GQPSO is more efficient in minimizing GL, and the improvement from GQSPO to PSO demonstrates an evolution in solving the problem of GL minimization.
Figure 7 highlights the gap between the quantities of positive nutrients generated by the PSO and GQPSO techniques considering the different cases of study associated with different values of parameters ( w 1 , w 2 , c 1 , c 2 ) . This figure shows that the PSO method generates quantities of positive nutrients that are considered sufficient, exceeding those provided by the GQPSO method. In some cases, GQPSO outperforms PSO regarding positive nutrients. However, in other cases, adjusting the parameters can lead to minimizing the difference between the quantities generated by the two methods. Although the GQPSO method remains better at minimizing the glycemic load than the PSO method, it is notable that the latter can provide diets containing positive nutrients in higher quantities.
Figure 8 highlights the gap between the quantities of negative nutrients generated by the PSO and GQPSO techniques considering the different cases of study associated with different values of parameters ( w 1 , w 2 , c 1 , c 2 ) . We can see that, by modifying the parameters specific to each of the two methods, the GQPSO method stands out by generating diets with smaller deviations from tolerable values for negative nutrients than those produced by the PSO method. This feature shows the efficiency of the GQPSO method in designing diets that are more in accordance with the acceptable limits for negative nutrients. This makes it possible to assess the ability of the algorithms to control negative nutrients within acceptable limits, thereby contributing to the overall quality of the diet.

4. Conclusions

In addition to medical treatments, diet plays a fundamental role in glycemic control for diabetic patients, so many studies focus on nutritional optimization problems in this context, and the use of glycemic load concepts as optimization targets certainly makes an outstanding contribution in this field. In this work, we carried out a comparative study of a diet optimization problem in which we compared the performance of two optimization approaches: a classical swarm particle approach and one with quantum behavior and Gaussian mutation. Our study demonstrates that combining quantum physics principles with random processes in GQPSO yields significant improvements in managing the glycemic load and nutritional deficiencies within dietary patterns. Due to the variability regarding foods’ nutritional values, it is often difficult to estimate them accurately; this complicates data collection and decision-making regarding the results. In our subsequent work, we will seek to integrate particle swarm optimization principles with artificial intelligence techniques in these methods to improve their performance.

Author Contributions

Conceptualization, A.A. and Z.B.; Methodology, K.E.M.; Software, A.A.; Validation, A.T.; Formal analysis, Z.B.; Investigation, K.E.M.; Writing—original draft, A.A. and A.T.; Writing—review & editing, Z.B. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by Ministry of National Education, Professional Training, Higher 707 Education and Scientific Research (MENFPESRS) and the Digital Development Agency (DDA) and 708 CNRST of Morocco (Nos. Alkhawarizmi/2020/23).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The original contributions presented in the study are included in the article, further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. International Diabetes Federation. IDF Diabetes Atlas, 10th ed.; Citeseer: Princeton, NJ, USA, 2023; Available online: https://diabetesatlas.org/ (accessed on 11 January 2024).
  2. Kennedy, J.; Eberhart, R.C. Particle swarm optimization. In Proceedings of the IEEE International Conference on Neural Networks, Perth, WA, Australia, 27 November–1 December 1995; pp. 1942–1948. [Google Scholar]
  3. Sun, J.; Feng, B.; Xu, W.-B. Particle Swarm Optimization with Particles Having Quantum Behavior. In Proceedings of the Congress on Evolutionary Computation, Portland, OR, USA, 19–23 June 2004; pp. 325–331. [Google Scholar]
  4. Sun, J.; Xu, W.B.; Feng, B. A global search strategy of quantum behaved particle swarm optimization. In Proceedings of the IEEE Conference on Cybernetics and Intelligent Systems, Singapore, 1–3 December 2004; pp. 111–116. [Google Scholar]
  5. Bhatia, A.S.; Saggi, M.K.; Zheng, S.; Nayak, S.R. QPSO-CD: Quantum-behaved Particle Swarm Optimization Algorithm with Cauchy Distribution. Quantum Inf. Process. 2020, 19, 345. [Google Scholar] [CrossRef]
  6. Dos Santos Coelho, L. Gaussian quantum-behaved particle swarm optimization approaches for constrained enginee ring design problems. Expert Syst. Appl. 2010, 37, 1676–1683. [Google Scholar] [CrossRef]
  7. Aroniadi, C.; Beligiannis, G.N. Solving the Fuzzy Transportation Problem by a Novel Particle Swarm Optimization Approach. Appl. Sci. 2024, 14, 5885. [Google Scholar] [CrossRef]
  8. Aroniadi, C.; Beligiannis, G.N. Applying Particle Swarm Optimization Variations to Solve the Transportation Problem Effectively. Algorithms 2023, 16, 372. [Google Scholar] [CrossRef]
  9. Kourepinis, V.; Iliopoulou, C.; Tassopoulos, I.X.; Aroniadi, C.; Beligiannis, G.N. An Improved Particle Swarm Optimization Algorithm for the Urban Transit Routing Problem. Electronics 2023, 12, 3358. [Google Scholar] [CrossRef]
  10. Tassopoulos, I.X.; Iliopoulou, C.A.; Katsaragakis, I.V.; Beligiannis, G.N. An Effective Local Particle Swarm Optimization-Based Algorithm for Solving the School Timetabling Problem. Algorithms 2023, 16, 291. [Google Scholar] [CrossRef]
  11. Adhikari, M.; Srirama, S.N. Multi-objective accelerated particle swarm optimization with a container-based scheduling for internet-of-things in cloud environment. J. Netw. Comput. Appl. 2019, 137, 35–61. [Google Scholar] [CrossRef]
  12. Kumar, S.; Pal, S.K.; Singhm, R. A novel hybrid model based on particle swarm optimisation and extreme learning machine for short-term temperature prediction using ambient sensors. Sustain. Cities Soc. 2019, 49, 101601. [Google Scholar] [CrossRef]
  13. He, F.; Chen, C.; Li, F.; Qi, Y.; Lin, X.; Liang, P.; Ren, M.; Yan, L. An optimal glycemic load range is better for reducing obesity and diabetes risk among middle-aged and elderly adults. Nutr. Metab. 2021, 18, 31. [Google Scholar] [CrossRef]
  14. Bas, E. A robust optimization approach to diet problem with overall glycemic load as objective function. Appl. Math. Model. 2014, 38, 4926–4940. [Google Scholar] [CrossRef]
  15. El Moutaouakil, K.; Cheggour, M.; Chellak, S.; Baizri, H. Metaheuristics optimization algorithm to an optimal Moroccan diet. In Proceedings of the 2021 7th Annual International Conference on Network and Information Systems for Computers (ICNISC), Guiyang, China, 23–25 July 2021; pp. 364–368. [Google Scholar]
  16. Shi, Y.; Eberhart, R.C. A modified particle swarm optimizer. In Proceedings of the IEEE International Conference on Evolutionary Computation, Anchorage, AK, USA, 4–9 May 1998; pp. 69–73. [Google Scholar]
  17. Eberhart, R.C.; Shi, Y. Comparing inertia weights and constriction factors in particle swarm optimization. In Proceedings of the 2000 Congress on Evolutionary Computation, La Jolla, CA, USA, 16–19 July 2000; Volume 81, pp. 84–88. [Google Scholar]
  18. Schweizer, W. Numerical Quantum Dynamics; Springer Science & Business Media: Hingham, MA, USA, 2001. [Google Scholar]
  19. Liu, J.; Xu, W.; Sun, J. Quantum-behaved particle swarm optimization with mutation operator. In Proceedings of the 17th International Conference on Tools with Artificial Intelligence, Hong Kong, China, 14–16 November 2005. [Google Scholar]
  20. Clerc, M.; Kennedy, J.F. The particle swarm: Explosion, stability and convergence in a multi-dimensional complex space. IEEE Trans. Evol. Comput. 2002, 6, 58–73. [Google Scholar] [CrossRef]
  21. Sun, J.; Fang, , W.; Wu, X.J.; Palade, V.; Xu, W.B. Quantum-behaved particle swarm optimization: Analysis of individual particle behavior and parameter selection. Evol. Comput. 2012, 59, 3686–3694. [Google Scholar] [CrossRef] [PubMed]
  22. Xi, M.; Sun, J.; Xu, W. An improved quantum-behaved particle swarm optimization algorithm with weighted mean best position. Appl. Math. Comput. 2008, 205, 751–759. [Google Scholar] [CrossRef]
  23. Moon, J.H.; Lee, K.H.; Kim, H.; Han, D.I. Thermal-Economic Optimization of Plate–Fin Heat Exchanger Using Improved Gaussian Quantum-Behaved Particle Swarm Algorithm. Mathematics 2022, 10, 2527. [Google Scholar] [CrossRef]
  24. Wei, Z.; Ye, S. Quantum-Behaved Particle Swarm Optimization Algorithm with Adaptive Mutation Based on q-Gaussian Distribution. Chin. J. Electron. 2012, 21, 449–452. [Google Scholar]
  25. Available online: https://mail.glycemicindex.com/faqsList.php (accessed on 3 October 2024).
  26. El Moutaouakil, K.; Saliha, C.; Hicham, B.; Mouna, C. Intelligent Local Search Optimization Methods to Optimal Morocco Regime. In Swarm Intelligence-Recent Advances and Current Applications; IntechOpen: London, UK, 2023. [Google Scholar]
  27. Abdellatif, E.O.; Karim, E.M.; Hicham, B.; Saliha, C. Intelligent local search for an optimal control of diabetic population dynamics. Math. Models Comput. Simul. 2022, 14, 1051–1071. [Google Scholar] [CrossRef]
  28. Ahourag, A.; Chellak, S.; Cheggour, M.; Baizri, H.; Bahri, A. Quadratic Programming and Triangular Numbers Ranking to an Optimal Moroccan Diet with Minimal Glycemic Load. Stat. Optim. Inf. Comput. 2023, 11, 85–94. [Google Scholar]
  29. El Moutaouakil, K.; Ahourag, A.; Chakir, S.; Kabbaj, Z.; Chellack, S.; Cheggour, M.; Baizri, H. Hybrid firefly genetic algorithm and integral fuzzy quadratic programming to an optimal Moroccan diet. Math. Model. Comput. 2023, 10, 338–350. [Google Scholar] [CrossRef]
  30. El Moutaouakil, K.; Yahyaouy, A.; Chellak, S.; Baizri, H. An optimized gradient dynamic-neuro-weighted-fuzzy clustering method: Application in the nutrition field. Int. J. Fuzzy Syst. 2022, 24, 3731–3744. [Google Scholar] [CrossRef]
  31. El Moutaouakil, K.; Touhafi, A. A new recurrent neural network fuzzy mean square clustering method. In Proceedings of the 2020 5th International Conference on Cloud Computing and Artificial Intelligence: Technologies and Applications (CloudTech), Marrakesh, Morocco, 24–26 November 2020; pp. 1–5. [Google Scholar]
  32. El Moutaouakil, K.; Palade, V.; Safouan, S.; Charroud, A. FP-Conv-CM: Fuzzy Probabilistic Convolution C-Means. Mathematics 2023, 11, 1931. [Google Scholar] [CrossRef]
  33. Ahourag, A.; El Moutaouakil, K.; Chellak, S.; Baizri, H.; Cheggour, M. Multi-criteria optimization for optimal nutrition of Moroccan diabetics:* Note: Sub-titles are not captured in Xplore and should not be used. In Proceedings of the 2022 International Conference on Intelligent Systems and Computer Vision (ISCV), Fez, Morocco, 18–20 May 2022; pp. 1–6. [Google Scholar]
  34. Ahourag, A.; El Moutaouakil, K.; Cheggour, M.; Chellak, S.; Baizri, H. Multiobjective Optimization to Optimal Moroccan Diet Using Genetic Algorithm. Int. J. Eng. Model. 2023, 36, 67–69. [Google Scholar]
  35. El Moutaouakil, K.; El Ouissari, A.; Palade, V.; Charroud, A.; Olaru, A.; Baïzri, H.; Cheggour, M. Multi-objective optimization for controlling the dynamics of the diabetic population. Mathematics 2023, 11, 2957. [Google Scholar] [CrossRef]
  36. El Moutaouakil, K.; El Ouissari, A.; Hicham, B.; Saliha, C.; Cheggour, M. Multi-objectives optimization and convolution fuzzy C-means: Control of diabetic population dynamic. RAIRO-Oper. Res. 2022, 56, 3245–3256. [Google Scholar] [CrossRef]
  37. Ahourag, A.; El Moutaouakil, K.; Elkari, B.; Hammouni, A.; Ourabah, L.; Chellak, S. A Multiobjective Diet Planning Model for Diabetic Patients in the Moroccan Health Context Using Particle Swarm Intelligence. Stat. Optim. Inf. Comput. 2024, 12, 605–616. [Google Scholar] [CrossRef]
  38. El Moutaouakil, K.; Ahourag, A.; Chellak, S.; Baïzri, H.; Cheggour, M. Fuzzy Deep Daily Nutrients Requirements Representation. Rev. D’intell. Artif. 2022, 36, 263. [Google Scholar] [CrossRef]
  39. El Moutaouakil, K.; Baizri, H.; Chellak, S. Optimal fuzzy deep daily nutrients requirements representation: Application to optimal Morocco diet problem. Math. Model. Comput. 2022, 9, 607–615. [Google Scholar] [CrossRef]
  40. U.S. Department of Health and Human Services; U.S. Department of Agriculture. Dietary Guidelines for Americans; U.S. Department of Health and Human Services and U.S. Department of Agriculture: Washington, DC, USA, 2010.
  41. Atkinson, F.S.; Foster-Powell, K.; BranMiller, J.C. International tables of glycemic index and glycemic load values: 2008. Diabetes Care 2008, 31, 2281–2283. [Google Scholar] [CrossRef]
  42. Bounabi, M.; Moutaouakil, K.E.; Satori, K. The Optimal Inference Rules Selection for Unstructured Data Multi-Classification. Stat. Optim. Inf. Comput. 2022, 10, 225–235. [Google Scholar] [CrossRef]
  43. El Moutaouakil, K.; Ahourag, A.; Belhabib, F.; Hammoumi, A.; Patriciu, A.-M.; Chellak, S.; Baizri, H. Fuzzy Modeling to Personalized Nutritional Menu. Curr. Nutr. Food Sci. 2025, 21, e210324228226. [Google Scholar] [CrossRef]
  44. El Moutaouakil, K.; Roudani, M.; Ahourag, A.; Aayah, H.; Mouna, C.; Chellak, S.; Baizri, H. A Deep Fuzzy Neural Network System to Group Moroccan Foods: Towards a Personalized Menu for Type 2 Diabetes Patient. Nutr. Food Sci. Int. J. 2024, 13, 555860. [Google Scholar] [CrossRef]
Figure 1. Illustration of PSO and QPSO methods.
Figure 1. Illustration of PSO and QPSO methods.
Eng 05 00133 g001
Figure 2. The negative nutrient requirements.
Figure 2. The negative nutrient requirements.
Eng 05 00133 g002
Figure 3. The positive nutrient requirements.
Figure 3. The positive nutrient requirements.
Eng 05 00133 g003
Figure 4. Optimal diet choices proven using standard PSO method.
Figure 4. Optimal diet choices proven using standard PSO method.
Eng 05 00133 g004
Figure 5. Optimal diet choices proven using the standard GQPSO method.
Figure 5. Optimal diet choices proven using the standard GQPSO method.
Eng 05 00133 g005
Figure 6. Comparison of improvements in glycemic load demonstrated by PSO and GQPSO methods.
Figure 6. Comparison of improvements in glycemic load demonstrated by PSO and GQPSO methods.
Eng 05 00133 g006
Figure 7. Comparison of positive nutrients gaps of diets generated by PSO and GQPSO techniques.
Figure 7. Comparison of positive nutrients gaps of diets generated by PSO and GQPSO techniques.
Eng 05 00133 g007
Figure 8. Comparison of negative nutrients gaps of diets generated by PSO and GQPSO techniques.
Figure 8. Comparison of negative nutrients gaps of diets generated by PSO and GQPSO techniques.
Eng 05 00133 g008
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Ahourag, A.; Bouhanch, Z.; El Moutaouakil, K.; Touhafi, A. Improved Quantum Particle Swarm Optimization of Optimal Diet for Diabetic Patients. Eng 2024, 5, 2544-2559. https://doi.org/10.3390/eng5040133

AMA Style

Ahourag A, Bouhanch Z, El Moutaouakil K, Touhafi A. Improved Quantum Particle Swarm Optimization of Optimal Diet for Diabetic Patients. Eng. 2024; 5(4):2544-2559. https://doi.org/10.3390/eng5040133

Chicago/Turabian Style

Ahourag, Abdellah, Zakaria Bouhanch, Karim El Moutaouakil, and Abdellah Touhafi. 2024. "Improved Quantum Particle Swarm Optimization of Optimal Diet for Diabetic Patients" Eng 5, no. 4: 2544-2559. https://doi.org/10.3390/eng5040133

Article Metrics

Back to TopTop