Next Article in Journal
The Influence of Bearing Ring Inclination on Precision Ball Bearing Contact and Heat Generation Performance
Next Article in Special Issue
Influence of Test Parameters on the Evaluation of Chocolate Silkiness Using the Tribological Method
Previous Article in Journal
Near-Net Forging of Titanium and Titanium Alloys with Low Friction and Low Work Hardening by Using Carbon-Supersaturated SKD11 Dies
Previous Article in Special Issue
Modified Graphene/Muscovite Nanocomposite as a Lubricant Additive: Tribological Performance and Mechanism
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Acid Number Prediction Model of Lubricating Oil Based on Mid-Infrared Spectroscopy

1
Reliability Engineering Institute, School of Transportation and Logistics Engineering, Wuhan University of Technology, Wuhan 430063, China
2
National Engineering Research Center for Water Transport Safety, Wuhan University of Technology, Wuhan 430063, China
3
School of Ship, Ocean, Energy and Power Engineering, Wuhan University of Technology, Wuhan 430063, China
4
Guangzhou Institute of Mechanical Science Co., Ltd., Guangzhou 510700, China
*
Author to whom correspondence should be addressed.
Lubricants 2022, 10(9), 205; https://doi.org/10.3390/lubricants10090205
Submission received: 29 July 2022 / Revised: 17 August 2022 / Accepted: 26 August 2022 / Published: 29 August 2022
(This article belongs to the Special Issue State-of-the-Art of Tribology in China)

Abstract

:
The monitoring and replacement of lubricating oil has an important impact on mechanical equipment. In this study, based on the infrared spectroscopy monitoring method, an acid value index prediction model is established. The support vector machine regression method is used to quantitatively analyze the acid number of the oil sample, which verifies the stability and predictive ability of the quantitative prediction model, and we provide a theoretical basis and practical examples for the online monitoring of oil indicators. In addition, a support vector machine regression model is established by observing the changing law of the spectral absorption peak and selecting the dominant wavelength, and it is compared against the prediction algorithm of the long- and short-term memory network. By comparing the deviation relationship between the predicted value and the real chemical value, the feasibility of the infrared spectroscopy prediction model is verified. The experimental results show that the correlation coefficient between the predicted value of the model and the actual measured value reaches 0.98. This proves that the prediction effect of the prediction model based on the infrared spectrum data and the support vector machine regression method is better than that of the long- and short-term memory network trend prediction model, and the predicted results are reliable.

1. Introduction

Lubricating oil, which provides the functions of lubrication, cleaning, cooling, sealing, anti-wear, anti-rust, anti-corrosion, etc., has a profound effect on the operating conditions of various devices. Lubricating oil comes into direct contact with metal during use and is affected by various environmental factors. Due to the oxidation reaction during use, the physical and chemical properties are changed and corresponding metamorphic substances are derived. The substances will be eroded by sand and dust, which results in large amounts of harmful substances in the oil [1]. However, once the impurities and oxides in the oil exceed the standard, the production of an oil film during use becomes difficult. As a result, the anti-corrosion and lubricating properties of the oil are significantly weakened. This leads to serious friction and wear of the equipment, and even serious failures [2]. Thus, oil quality has a profound impact on the service life of the equipment. Furthermore, the use of low-quality oil will make it difficult for the equipment to maintain normal operating conditions. This will result in some or all of the functions being unrealized, leading to reduced operation efficiency, increased instability of the system operation, and increased noise pollution. Simultaneously, it will cause a risk of high wear of the moving parts in the device, high temperature of the supercharger, and even engine damage [3]. According to statistical data, 80% of mechanical device operation failures are due to increased wear caused by substandard oil quality, which in turn causes failure and damage to the mechanical equipment [4]. Conclusively, the quality of the oil has a decisive influence on the service cycle and operating efficiency of the equipment [5], and, hence, it is necessary to monitor the quality of lubricating oil.
Infrared spectroscopy can measure important indicators such as the oxidation value, acid-base value, and moisture in oil. The monitoring of oil quality can be achieved by monitoring these indicators in the oil. The benefits of this method are its ease of operation, faster detection speed as compared to other methods, and lack of direct contact with the oil. The main detection methods based on infrared spectroscopy include the neutralization reaction [6,7], nitrate sulfide value and oxidation value combined with total acid number [8,9], partial least square regression method [10,11], neural network method [12], and other methods [13,14]. In recent years, Lingfei Shi [15] used the method of combining least squares and support vector machine to establish a lubricating oil acid number model, and compared it with the accuracy of prediction based on the radial basis function model. Yanjun Zhang [16] and others established a rapid quantitative detection model of acid content based on artificial bee colony support vector regression and Raman spectroscopy. This method demonstrated higher prediction accuracy. Juxiang Wang et al. [17] used the spectral variables after feature selection to establish an acid number analysis model based on the correlation vector machine algorithm, and verified the accuracy. FRVD Voortd et al. [18] used infrared spectroscopy to determine the acid number and number of bases in lubricating oil, and eliminated the matrix effect through a signal transduction method combining chemometrics and differential spectroscopy. R Chakravarthy [19] and others used mid-infrared spectroscopy to determine the naphthenic acid number in petroleum crude oil and its fractions. Ran Zhiyong et al. established the relationship between near-infrared spectroscopy and oil use times, and used forward interval partial least squares (FiPLS) and backward interval partial least squares (BiPLS) to screen feature intervals [20].
The above research illustrates the feasibility and wide application of infrared spectroscopy in the detection of the lubricating oil acid number, and all experiments verified the accuracy of infrared spectroscopy monitoring. It is not difficult to find that algorithms are increasingly used in infrared spectroscopy From data acquisition methods to chemometric methods used in regression modeling, continuous improvements are being made, and the scope of application is gradually expanding. The stability of the model is gradually improving, and the deviation of prediction is gradually shrinking. However, most of the known research methods involve the prediction of the existence of oil samples with different oxidation times. Therefore, a prediction method for the production of oxidized lubricating oil at a future time is needed. In this study, a prediction method based on support vector machine is proposed. Given its high accuracy, the use of infrared spectroscopy for oil quality prediction research is able to achieve results closer to the actual state.

2. Materials and Methods

Using the infrared spectroscopy detection method, the correlation between the predicted spectral data and the data results measured in the laboratory environment can be analyzed, which is conducive to the rapid determination of oil products. The regression method of support vector machine was used to construct a corresponding quantitative model to analyze the acid number of oil, which was then used to verify the accuracy of the acid number compared to that measured by infrared spectroscopy.

2.1. Collection of Experimental Data

2.1.1. Infrared Spectrum Collection

The lubricating oil sample used in the experiment was L-TSA46 steam turbine base oil. First, 100 mL of L-TSA46 steam turbine oil in a round-bottom flask was weighed, and then a digital heater was used to heat the base oil at the same temperature to simulate oxidation. In total, 37 samples for different dates were collected. A Nicolet Avatar 360 FT-IR Fourier Transform Infrared Spectrometer (Thermo Nicolet Corporation, Madison, WI, USA) was used to analyze the oil sample, and measure and record its spectral data. The infrared spectrum of the sample was collected at a room temperature of 25 °C, with the atmospheric environment as the background. The spectrum collection range was 4000~400 cm−1, the resolution was 4 cm−1, and the number of scans was 32.

2.1.2. Acid Number Data Determination

The acid number, which refers to the amount of alkali consumed in the process of neutralizing the acidic components in 1 g of oil, and whose unit is mgKOH·g−1, is one of the most important research parameters of oil [21]. In this research work, the acid number detection method for petroleum products was used to test the acid number of the sample. Potassium hydroxide solution was then used for titration detection. Combined with the amount of the final titration solution, the acid number of the sample was calculated. The testing equipment used was the Mettler G20S automatic titrator (METTLER TOLEDO, Zurich, Switzerland).
According to the standard measurement method, the acid number measurement results for the 37 samples are listed in Table 1.

2.2. Data Processing

2.2.1. Choice of Dominant Bands

Under the influence of oxidation, chain alkyl radicals reacted with oxygen early to generate oxygen radicals. It was then formed from another hydrocarbon that extracts hydrogen from hydrogen peroxide and another free radical. With the production and accumulation of hydrogen peroxide, the final oxidation process of the oil was terminated. The production of carboxylic acids increased the acidity of the oil. The absorption peaks of the functional groups of the above substances were generally distributed across the entire spectrum. Under the influence of hydroxyl absorption, the absorption bands of carboxylic acid substances appeared to be diffuse, and the absorption peak width ranges were from 3770 to 3100 cm−1. However, this segment overlapped with the absorption peak of moisture and hence could not be used as a basis for the quantitative analysis of the acid number. Moreover, 1300~1000 cm−1 was the C-O single bond stretching vibration peak of the oxygen-containing compound. However, in addition to carboxylic acids, the acidic substances in the oil also included a variety of organic acids and acidic additives, or other unknown substances that could react with the -OH bonds. Therefore, this section could not be selected for quantitative analysis. Referencing the ASTM E 1421-99 (2015) e1 standard, 1800~1600 cm−1 is an important indication range for determining the oxidation value of oil by infrared spectroscopy. The absorption peak in this waveband displayed obvious changes. Therefore, the band of 1800~1600 cm−1 could be used to characterize the acid number. Figure 1 presents the infrared spectra of some oil samples.

2.2.2. Selection of Spectral Preprocessing Method

In the measurement link, the infrared spectrum data will inevitably produce errors, so the infrared spectrum information needs to be preprocessed [22]. The value of preprocessing work is to eliminate irrelevant data information in the detection information and reduce information noise, which effectively reduces the influence of irrelevant elements on the spectrum. As a result, the reliability of the model and the accuracy of the results are improved. The maximum and minimum acid numbers of the lubricating oil obtained by the test were 0.053 mgKOH·g−1 and 0.032 mgKOH·g−1, respectively, which did not exceed the standard range, and the average value was 0.042 mgKOH g−1.

2.2.3. Sample Division

In this experiment, the Kennard–Stone method was used to divide the 37 samples of lubricants into a training set and a validation set at a ratio of 4:1, i.e., 30 samples were used as the training set and 7 samples were used as the validation set for training. The details are shown in Table 2.

2.3. Modeling and Preprocessing

2.3.1. Modeling

The LIBSVM toolbox was selected in MATLAB 2020b (MathWorks, Natick, MA, USA) for modeling. It is a toolbox with SVM pattern recognition and regression functions, developed by Zhiren Lin scholars, which can effectively solve the open-source support vector machine classification and regression problems [23].

2.3.2. Normalization

In order to improve the modeling efficiency and computing speed, this research used normalization to preprocess the lubricant sample data. Because of the differences in the light absorption capacity of different substances, the corresponding data on the acid number of lubricating oils were also different. Therefore, when training samples with different data ranges were used, data convergence would slow down during the modeling process, affecting the modeling work. In the experiment, the mapminmax function of MATLAB was used to realize the normalization of the interval [–1,1].

2.3.3. Optimization of Parameters

The penalty function c and the kernel function g are key functions in the model building process. The generalization ability of the model is deeply affected by the penalty factor. At present, the commonly used penalty functions include root mean square error and mean square error.
The root mean square error (RMSE) calculation formula is as follows:
R M S E = 1 T t = 1 T ( y t y t ^ ) 2
The mean square error (MSE) calculation formula is as follows:
M S E = 1 T t = 1 T ( y t y t ^ ) 2
In the above formula, y t   —predicted value; y t ^ —measured value; T —the number of predicted values.
In the process of this research, the penalty parameter c was searched within a certain range, and at the same time, a limited condition was added. Therefore, the parameter combination with the smaller penalty parameter c was preferentially selected. In addition, for the regression prediction model, the degree of fit (R2) was used to evaluate the accuracy of the model.
R 2 = 1 t = 1 T ( y t y t ^ ) 2 t = 1 T ( y t y t ¯ ) 2
The research results show that the kernel function g of the LIBSVM toolbox satisfies the conditions of the kernel function theorem. However, in the actual application process, the alternative kernel functions are RBF, polynomial, linear, and sigmoid, with four types of kernel functions in order, which can effectively verify the effect of the kernel function on the performance of the regression model in this experiment. The research results showed that when RBF was selected as the kernel function, the generalization ability of the model achieved the best outcome. Therefore, in this research work, the RBF kernel function was selected in terms of the kernel function. When using this function, due to its own parameter gamma, i.e., the parameter g, there is a negative correlation between the size of g and the number of support vectors. However, the number of the latter has a profound impact on the speed of training and prediction of the entire SVR model. The gamma calculation formula in the RBF kernel function is shown below.
k ( x , z ) = exp ( d ( x , z ) 2 2 σ 2 ) = exp ( g a m m a · d ( x , z ) 2 )
Based on the physical meaning of g, it can be inferred that when the gamma is set to be too large, the predictive ability will be weakened. It can only predict the vicinity of the sample and is unable to predict the unknown sample, which causes training problems. However, if the value is set too low, it will cause the smoothing effect to be too significant, and the accuracy of the validation set and training set will be weakened.

3. Results and Discussion

On the basis of the above research, the method of support vector machine regression was used in MATLAB and the method of long short-term memory (LSTM) [24] trend prediction was used in Python to establish a quantitative prediction model for the lubricating oil acid number. In the modeling process, the hyperparameters of the model were determined by the grid search method. The hyperparameters of the LSTM trend prediction model are shown in Table 3. Substituting the infrared spectrum data and acid number data into the model, the prediction results of the training set and prediction set were obtained, as shown in Figure 2 and Figure 3.
Using the results in Figure 2 and Figure 3, the errors and relative errors between the measured and predicted values in the SVM model and LSTM model verification set could be calculated, respectively, as shown in Table 4 and Table 5.
The results obtained from Formula (1) are shown in Table 6.
It is observed that the relative error of the SVM model varies within the range of 0.004% to 0.016%, which indicates that the model based on the SVM algorithm has a small relative error and a better prediction effect. At the same time, the RMSE of the SVM model is smaller than that of the LSTM model, which indicates that the regression prediction effect of the SVM model is better than that of the LSTM trend prediction model. The coefficients of determination R2 of the acid number of the training set and the verification set and the related infrared spectrum data are 0.959 and 0.960, respectively. This shows that the accuracy rate of the lubricating oil acid value calculated by infrared spectrum data is 96%. Therefore, the correlation coefficient R can also be calculated to be 0.979 and 0.980, respectively. According to the corrected standard deviation (SEC) and predicted standard deviation (SEP) formulas, SEC and SEP can be calculated as 0.0012 and 0.0027, respectively. The small value indicates that the support vector regression model has strong predictive ability and a good fitting effect. It shows that the infrared spectrum data of the lubricating oil sample have a significant correlation with its acid number.
Through the above analysis, it can be deduced that support vector regression modeling can predict the acid number of lubricating oil well within the standard, with a small prediction error, and the prediction effect is better than that of the LSTM trend prediction model. The study confirmed that it is very feasible to determine the acid number of lubricating oil samples through Fourier transform mid-infrared spectroscopy data.

4. Conclusions

In this paper, the relationship between the acid number of lubricating oil and infrared spectroscopy detection technology was studied, the influence of changes in the physical and chemical indicators of lubricating oil was analyzed, and the principles, advantages, and disadvantages of infrared spectroscopy detection technology were analyzed. The data analysis methods of infrared spectroscopy were studied, including the preprocessing method, the selection of the characteristic wavelength, the analysis of commonly used quantitative modeling algorithms, and the support vector machine regression model. Finally, the infrared spectrum of the acid number of lubricating oil was quantitatively analyzed. By comparison with the trend prediction model of the lubricating oil acid number based on the LSTM algorithm, it is found that the stability and accuracy of the model built by the support vector machine regression method is better, and the correlation coefficient of the verification set is 0.98. Therefore, acid value prediction based on mid-infrared spectroscopy is a feasible method to evaluate the period for oil replacement. This has guiding significance for the protection of mechanical components.
In this experiment, infrared spectroscopy was selected as the monitoring method of oil quality because of its strong accuracy. The acid number, as an indicator for judging the degree of oil deterioration, can be obtained by monitoring acid-containing groups in oil by infrared spectroscopy. Since the oxidation products of lubricating oil have clear infrared spectral characteristics, the correlation between functional groups and oil quality is more reliable. In addition, its analysis speed is fast. However, for oil detection, infrared spectroscopy detection technology still has a certain scope of application. It can only characterize the molecular structure and functional groups, and is unable to reflect the indicator status of metal particles, atoms, and dissolved ions. Therefore, there may be slight errors in the monitoring of highly contaminated oils.

Author Contributions

Conceptualization, F.Z., K.Y. and D.L.; methodology, F.Z.; software, D.L.; validation, F.Z., K.Y. and D.L.; formal analysis, F.Z.; investigation, F.Z.; resources, F.Z.; data curation, F.Z.; writing—original draft preparation, F.Z.; writing—review and editing, F.Z., K.Y. and D.L.; visualization, F.Z., K.Y. and D.L.; supervision, K.Y.; project administration, K.Y.; funding acquisition, X.S. All authors have read and agreed to the published version of the manuscript.

Funding

National Natural Science Foundation of China (NSFC) (52071241), the Opening Project of National and Local Joint Engineering Research Center for Industrial Friction and Lubrication Technology (2021-GD-0004).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Conflicts of Interest

There are no relevant financial or non-financial competing interest to report. The authors declare no conflict of interest.

References

  1. Kareem, D.; Ali, K.R. Analysis of 0W-20 Totachi Brand Oil to Determine the Rate of Oil Deterioration. UKH J. Sci. Eng. 2020, 4, 139–146. [Google Scholar]
  2. Shuai, Y.; Wu, Y.; Zhang, E.; Yu, G.; Yu, D.; Shen, Y. Research on online safety early warning technology for oil system of phase modifier. J. Phys. Conf. Ser. 2020, 1601, 36–42. [Google Scholar] [CrossRef]
  3. Zaharia, C.; Niculescu, R.; Clenci, A. Engine oil analysis to evaluate the degree of its wear during the period of operation of the vehicle. IOP Conf. Ser. Mater. Sci. Eng. 2022, 1220, 28–30. [Google Scholar] [CrossRef]
  4. Mortier, R.M.; Fox, M.F.; Orszulik, S.T. Lubricants and their environmental impact. Chem. Technol. Lubr. 2010, 10, 435–457. [Google Scholar]
  5. Nguyen, D.H.; Novikov, V.F. The problem of determining the antioxidant additive in transformer oil by chromatographic methods. Power Eng. Res. Equip. Technol. 2020, 22, 107–115. [Google Scholar] [CrossRef]
  6. Agocs, A.; Budnyk, S.; Frauscher, M.; Ronai, B.; Besser, C.; Dörr, N. Comparing oil condition in diesel and gasoline engines. Ind. Lubr. Tribol. 2020, 72, 1033–1039. [Google Scholar] [CrossRef]
  7. Dong, J.; Kangming, M.; Van De Voort, F.R.; Ismail, A.A. Stoichiometric Determination of Hydroperoxides in Oils by Fourier Transform Near-Infrared Spectroscopy. J. AOAC Int. 2020, 80, 345–352. [Google Scholar] [CrossRef]
  8. Shen, S.; Wang, Z.; Jiang, J.; Cao, X.; Sun, P.; Lu, Y.; Yang, R. Synergistic Effect of the Total Acid Number, S, Cl, and H2O on the Corrosion of AISI 1020 in Acidic Environments. ACS Omega 2020, 5, 20311–20320. [Google Scholar] [CrossRef]
  9. Xu, J. Study on the Correlation between oxygen nitrate sulfide value and acid Value of In-service Oil by INFRARED Spectroscopy. Lubr. Oil 2008, 23, 57–59. [Google Scholar]
  10. Cunha, C.L.; Torres, A.R.; Luna, A.S. Multivariate regression models obtained from near-infrared spectroscopy data for prediction of the physical properties of biodiesel and its blends. Fuel 2020, 261, 116344. [Google Scholar] [CrossRef]
  11. Tessarini, E.S.; Rebello, L.F. Real-Time Monitoring of Beer Parameters Using Infrared Spectroscopy—A Process Analytical Technology Approach. J. AOAC Int. 2020, 103, 1654–1659. [Google Scholar]
  12. Liu, S.; Wang, S.; Hu, C.; Bi, W. Determination of alcohols-diesel oil by near infrared spectroscopy based on gramian angular field image coding and deep learning. Fuel 2022, 309, 121–122. [Google Scholar] [CrossRef]
  13. Jiang, X.; Yue, C.; Zong, Y. Determination of oleic acid value of an Aviation Lubricant Based on mid infrared spectroscopy. Lubr. Enginering 2015, 18, 91–96. [Google Scholar]
  14. Yang, K.; Wu, T.; Zou, M. Rapid Determination of Total Acid value and Total Alkali Value of Lubricating Oil by Handheld Direct Reading Infrared Spectrometer. Spectrosc. Spectr. Anal. 2017, 37, 452–455. [Google Scholar]
  15. Shi, L.; Qu, J.; Xing, Z. Determination of oleic acid value by least square support vector machine combined with infrared spectroscopy. Phys. Chem. Test. 2018, 54, 200–203. [Google Scholar]
  16. Zhang, Y.; Zhang, F.; Fu, X.; Jin, P.; Hou, J. Determination of fatty acid content in mixed oil by Raman spectroscopy based on ABC-SV R algorithm. Spectrosc. Spectr. Anal. 2019, 39, 2147–2152. [Google Scholar]
  17. Wang, J.; Wang, K.; Han, X. Rapid Determination of Oleic Acid in Diesel Engine using Random forest-correlation Vector Machine algorithm combined with Mid-infrared Spectroscopy. Phys. Chem. Tests 2019, 55, 26–30. [Google Scholar]
  18. Van de Voort, F.R.; Sedman, J.; Yaylayan, V.; Saint Laurent, C. Determination of acid number and base number in lubricants by Fourier transform infrared spectroscopy. Appl. Spectrosc. 2003, 57, 1425–1431. [Google Scholar] [CrossRef] [PubMed]
  19. Chakravarthy, R.; Naik, G.N.; Savalia, A.; Sridharan, U.; Saravanan, C.; Das, A.K.; Gudasi, K.B. Determination of Naphthenic Acid Number in Petroleum Crude Oils and Their Fractions by Mid-FTIR Spectroscopy. Energy Fuels 2016, 30, 8579–8586. [Google Scholar] [CrossRef]
  20. Ran, Z.; Sun, L.; Liu, Y.; Pan, X.; Li, J.; Liu, Y. Forward and backward interval partial least squares method for quantitative analysis of frying oil quality. Infrared Phys. Technol. 2020, 105, 103–207. [Google Scholar] [CrossRef]
  21. Macián, V.; Tormos, B.; García-Barberá, A.; Tsolakis, A. Applying chemometric procedures for correlation the FTIR spectroscopy with the new thermometric evaluation of Total Acid Number and Total Basic Number in engine oils. Chemom. Intell. Lab. Syst. 2020, 208, 104215. [Google Scholar] [CrossRef]
  22. Wang, Y.; Bai, C.; Qian, X.; Liu, W.; Zhu, C.; Ge, L. A DC Series Arc Fault Detection Method Based on a Lightweight Convolutional Neural Network Used in Photovoltaic System. Energies 2022, 15, 2877. [Google Scholar] [CrossRef]
  23. Bhatt, A.; Bhatt, A. EEG based Emotion Recognition using SVM and LibSVM. Int. J. Comput. Appl. 2019, 975, 8887. [Google Scholar] [CrossRef]
  24. Xu, Z.; Wu, F.; Zhu, L.; Li, Y. LSTM Model Based on Multi-Feature Extractor to Detect Flow Pattern Change Characteristics and Parameter Measurement. IEEE Sens. J. 2020, 21, 3713–3721. [Google Scholar] [CrossRef]
Figure 1. Infrared spectra of lubricating oil samples.
Figure 1. Infrared spectra of lubricating oil samples.
Lubricants 10 00205 g001
Figure 2. SVM training set prediction results.
Figure 2. SVM training set prediction results.
Lubricants 10 00205 g002
Figure 3. LSTM training set prediction results.
Figure 3. LSTM training set prediction results.
Lubricants 10 00205 g003
Table 1. Acid numbers of lubricating oil samples.
Table 1. Acid numbers of lubricating oil samples.
NumberAcid Number
mgKOH/g
NumberAcid Number
mgKOH/g
NumberAcid Number
mgKOH/g
10.032140.043270.043
20.035150.046280.046
30.036160.036290.048
40.034170.038300.047
50.036180.04310.049
60.038190.038320.046
70.033200.038330.048
80.037210.041340.049
90.042220.045350.05
100.039230.042360.051
110.035240.047370.053
120.045250.04--
130.042260.042--
Table 2. Sample division.
Table 2. Sample division.
Sample SetNumberAcid Number Range
mgKOH/g
Average Value
mgKOH/g
Standard Deviation
mgKOH/g
Training set300.032~0.0480.0400.0045
Validation set70.046~0.0530.0490.0022
Table 3. LSTM model hyperparameters.
Table 3. LSTM model hyperparameters.
Hyperparameter NameValue
Dropout0.02
Epochs100
Batch_size2
Activation functionTanh
OptimizerAdagrad
Number of neural network layers3
Number of hidden layer neurons64
Loss functionMSE
Table 4. Error of SVM measured value and predicted value.
Table 4. Error of SVM measured value and predicted value.
IndexMeasured Value
mgKOH/g
Predictive Value
mgKOH/g
Deviation
mgKOH/g
Relative Error
%
10.0490.049910.000911.86
20.0460.048610.002615.67
30.0480.049880.001883.92
40.0490.050360.001362.78
50.0500.050750.000751.50
60.0510.051050.000050.10
70.0530.05168−0.001322.49
Table 5. Error of LSTM measured value and predicted value.
Table 5. Error of LSTM measured value and predicted value.
IndexMeasured Value
mgKOH/g
Predictive Value
mgKOH/g
Deviation
mgKOH/g
Relative Error
%
10.0490.046690.002314.72
20.0460.04788−0.001884.10
30.0480.046930.001072.23
40.0490.047690.001312.66
50.0500.047360.002645.28
60.0510.048680.002324.56
70.0530.049640.003366.33
Table 6. RMSE value of the model.
Table 6. RMSE value of the model.
ModelSVMLSTM
RMSE0.001479940.00224797
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Zhou, F.; Yang, K.; Li, D.; Shi, X. Acid Number Prediction Model of Lubricating Oil Based on Mid-Infrared Spectroscopy. Lubricants 2022, 10, 205. https://doi.org/10.3390/lubricants10090205

AMA Style

Zhou F, Yang K, Li D, Shi X. Acid Number Prediction Model of Lubricating Oil Based on Mid-Infrared Spectroscopy. Lubricants. 2022; 10(9):205. https://doi.org/10.3390/lubricants10090205

Chicago/Turabian Style

Zhou, Fanhao, Kun Yang, Dayang Li, and Xinfa Shi. 2022. "Acid Number Prediction Model of Lubricating Oil Based on Mid-Infrared Spectroscopy" Lubricants 10, no. 9: 205. https://doi.org/10.3390/lubricants10090205

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop