Mixing Performance Prediction of Detergent Mixing Process Based on the Discrete Element Method and Machine Learning (2)

26-05-2023

3. Machine Learning Based Methodology

A machine learning (ML) algorithm based on multivariate polynomial regression (MPR) analysis was adopted to identify the relationship between variables and allowed the prediction of the mixing index.


The MPR used to estimate the coefficient values for different variables in the mixing process was derived from a Second Order Multiple Polynomial Regression expressed as:
detergent powder
where β1 and β2 are called as linear effect parameters, β11 and β22 are called as quadratic effect parameters, β0 is the bias, and ε is the error in the normal distribution.


According to [22], the Regression Function is given in Equation (2):
mixing performance
The representation of the polynomial regression in a matrix form is given in (3):
discrete element method
The estimated parameters can be computed as in Equation (4):
detergent powder
And the Computed Regression Equation is represented in (5):
mixing performance
In order to assess the accuracy of the predicted values obtained by the regression-based ML model, the most used traditional metrics can be adopted. MAPE (mean absolute percentage error), MAE (mean absolute error), RMSE (root mean square error), and R2 (coefficient of determination) metrics were calculated as in Equations (6)–(9):
discrete element method

where yi is the actual value, detergent powder is the predicted value, and n is the number of data points.


Figure 4 shows the flowchart of the methodology defined to predict the mixing index of the mixing process. The DEM model created is used to obtain the dataset. According the 25 design points listed in Table 4 and considering a time every 5 s from 5 to 60 s, a dataset of 300 data points was created. Each data point is composed by values of the inputs and the output. For the predictive model, the inputs are time and mass fraction of surfactant, carbonate, speckle and nonionic, and the output is the mixing index. The sulphate mass fraction is not considered an input because it depends on the total amount of the other components.


mixing performance

Figure 4. Flowchart of the methodology.


The dataset is divided into 2 parts. A total of 280 data points are used to train and test the predictive model. The other 20 data points are used to perform an independent validation of the model. In this process of training and validation, the accuracy of the predictive model results is assessed by calculating the error metrics indicated in Equations (6)–(9). Finally, the predictive model is obtained and allows us to predict the mixing index for any allowable combination of the components.

4. Results
The results show the validation of the DEM model compared with experimental results from a mixing test. In addition, the study of the effect of the initial component mass fraction and mixing time on the mixing performance is presented. The dataset acquired from this study was used to obtain a predictive model of the mixing index of the process that is also presented.


4.1. DEM Model Validation
To validate the DEM model, a mixing test with a 3D mixer was carried out and the mixture obtained from the test was used to determine the repose angle. The same procedure was simulated by the DEM model, and the numerical results were compared with the experimental ones. From a qualitative point of view, the mixing homogeneity was compared, and from a quantitative point of view, the repose angle.


The methodology consisted of filling the cup with the component mass fraction according to the formulation shown in Table 2, closing the cup with a lid, placing it in a 3D mixer and running for 60 s. In Figure 5 a screenshot taken during the mixing test is observed. Figure 6 shows the cup filled with the components totally segregated before the test, and the cup with the components mixed after the test.


discrete element method

Figure 5. Image of the mixing test performed in a 3D mixer.


detergent powder

Figure 6. Mixing test. (a) Initial filling of the components in the cup; (b) mixture of the components after the mixing process.


Once the mixing process was finished, a sample from the mixture was taken to determine the repose angle by the fixed funnel method according to [24]. Figure 7 presents a comparison between the powder piles obtained from test and DEM simulation. From a visual perspective, it is observed that a high grade of mixing has been obtained in both cases. The repose angle test was repeated twice and both times the result was 32°, while a repose angle of 31.98° was obtained from the DEM simulation, as indicated in Table 5. Therefore, a great agreement between results from the experimental test and DEM simulation is observed.


mixing performance

Figure 7. Powder pile from (a) experimental test and (b) DEM model.


Table 5. Comparison of repose angle between numerical simulation and experimental test.

Repose AngleValue
Numerical simulation31.98°
Experimental test32.00°
Relative error0.06%


4.2. Mixing Performance Analysis
After validating the DEM model with experimental results, it was used to analyse the mixing quality as a function of mass fraction components and mixing time. To assess the homogeneity of the powder multicomponent mixture, a mixing index based on the pooled variance of the whole system according to the study developed in [25] was used, whose criteria is expressed in the following equation:

discrete element method

where M is the mixing index, σ2 is the unbiased sample variance of the concentration in a multicomponent mixture, detergent powder is the variance for multicomponent mixtures in the completely mixed state, and mixing performance is the variance for multicomponent mixtures in the completely segregated state. All these variances are calculated by DEM simulation for a defined input dataset. The M index can take values between 0, completely segregated, and 1, completely mixed.


Every design point was simulated using the DEM model for a total mixing time of 60 s. The evolution of the mixture in the cup from the initial to the final instant of the process for the first design point is shown in Figure 8, where each represented instant matches with the end of a cycle of the mixer. A uniform mixing of particles is observed at 60 s from a visual point of view.


discrete element method
Figure 8. Simulation of design point 1 at different instants.


As time was defined as one of the input parameters, the M index output was obtained from DEM simulation every 5 s up to 60 s for all the design points, shown in Table 6.


Table 6. M index output for each design point at t = 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60 s

Design PointTime (s)
51015202530354045505560
10.7760.870.8850.9180.9680.9760.9790.9880.9890.9920.9910.992
20.780.8920.8850.9530.970.9850.9780.9890.9890.9870.9890.991
30.7880.8710.8790.9160.9680.9750.9760.9840.9880.9890.9910.989
40.7160.8680.8570.9430.9650.9760.9670.9870.9870.9850.9870.991
50.8530.9090.9290.9460.9730.9780.980.9810.9760.9860.9830.986
60.8330.9120.9120.9640.9750.9770.9810.9850.9830.9840.9840.992
70.8430.9050.9250.9520.9720.9750.9790.9860.9790.9880.9840.986
80.8290.9110.9090.960.9710.980.9770.9850.9790.9860.9850.992
90.7210.8540.8860.9140.9640.9740.970.9830.9820.9840.9850.988
100.6950.8620.8760.9340.9410.970.9730.9810.9820.9880.9830.99
110.7210.8520.8860.9260.9680.9760.9760.9850.9790.9870.9880.987
120.6840.8530.8620.9360.950.9720.970.9860.9840.9840.9830.989
130.7420.8550.8990.9350.9640.970.9640.9790.9740.9880.9860.99
140.6840.8530.8620.9360.950.9720.970.9860.9840.9840.9830.989
150.750.8470.8950.9260.9690.9710.9630.9810.9690.9860.9850.989
160.7050.8450.870.9280.9570.9640.9710.9770.9780.9870.9880.994
170.7850.8970.9060.940.9660.9750.9790.9830.9870.9840.9830.989
180.7940.9070.9080.9510.9720.9820.980.9850.9870.9860.9850.987
190.7620.8870.8980.9410.9710.970.9760.9790.9830.9850.9860.99
200.7270.8680.8950.9330.9550.9740.9810.9840.990.9870.9880.988
210.7980.8840.8940.9410.970.9740.980.9830.9810.9870.9910.991
220.7980.8840.8940.9410.970.9740.980.9830.9810.9870.9910.991
230.8360.8930.9120.9490.9710.9760.980.9820.9870.9840.9850.988
240.7990.8930.9140.9350.9680.9740.9760.9830.9820.9850.9850.988
250.7830.8920.9020.9540.9650.9770.9730.9860.9840.9860.9850.991


Figure 9 shows the variation of the M index with respect to time and the component mass fraction of surfactant, carbonate, speckle, and nonionic, where it was observed that the value of M index increases with time until it stabilizes at a value close to 1 in all cases analysed.


detergent powder

Figure 9. A 6D scatter plot of the M index depending on the inputs surfactant, carbonate, speckle, nonionic and time.


4.3. Predictive Model
The dataset of the powder mixing process obtained by the DEM model considering a defined range of every input variable, which are time and mass fraction of surfactant particles, sodium sulphate, sodium carbonate, coloured speckle, and liquid nonionic surfactant, was used to obtain a model that predicts the M index quickly and accurately from certain input values included in the ranges defined for them. For this purpose, a multivariate polynomial regression algorithm was used, which was trained and tested with 280 data points. After that, we validated the achieved model by means of an independent test dataset with 20 data points not used for training. The obtained model consists of the vector of coefficients used in the mathematical function, and is expressed in the following equation:

mixing performance

where M is the mixing index, xsurfactant is the mass fraction of surfactant particle, xcarbonate is the mass fraction of sodium carbonate, xsurfactant is the mass fraction of sodium sulphate, xspeckle is the mass fraction of coloured speckle, xnonionic is the mass fraction of liquid nonionic surfactant, and xtime is the time in seconds.


The error metrics obtained to evaluate the training and validation of the model are presented in Table 7.


Table 7. Error metrics

MetricMAPE (%)MAERMSER2
Training1.8730.0170.0240.848
Validation1.5030.0140.0170.9072


5. Conclusions
In this work, the mixing process carried out by a 3D mixer for manufacturing a powder detergent was simulated using a DEM model, which was validated with experimental test. This computational model was used to study the mixing performance of the process considering mixing time and allowable mass fraction of components, at a mixer speed of 45 rpm. It was observed that a mixing index close to 1 was obtained in less than 60 s for all the combinations simulated, meaning that they were all completely mixed.


In addition, the proposed methodology based on DEM and ML to obtain a model which predicts the mixing index of the mixing process was developed. The DEM model was used to generate the dataset needed and a polynomial regression algorithm was used to obtain the model. It was demonstrated that the model predicts the mixing index of any allowable formulation with accuracy and in advance without requiring experimental test or numerical simulation. This method can also be used to optimize the mixing time necessary to obtain a uniform mixing of a defined formulation.



Cañamero, F. J., & Doraisingam, A. R. Mixing Performance Prediction of Detergent Mixing Process Based on the Discrete Element Method and Machine Learning. Applied Sciences, 13(10), 6094. https://doi.org/10.3390/app13106094

© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).

Get the latest price? We'll respond as soon as possible(within 12 hours)

Privacy policy