Please wait a minute...
Frontiers of Chemical Science and Engineering

ISSN 2095-0179

ISSN 2095-0187(Online)

CN 11-5981/TQ

Postal Subscription Code 80-969

2018 Impact Factor: 2.809

Front. Chem. Sci. Eng.    2022, Vol. 16 Issue (2) : 274-287    https://doi.org/10.1007/s11705-021-2043-0
RESEARCH ARTICLE
Hybrid method integrating machine learning and particle swarm optimization for smart chemical process operations
Haoqin Fang1, Jianzhao Zhou1, Zhenyu Wang1, Ziqi Qiu1, Yihua Sun2, Yue Lin1, Ke Chen1, Xiantai Zhou1(), Ming Pan1()
1. School of Chemical Engineering and Technology, Sun Yat-Sen University, Zhuhai 519082, China
2. School of Mathematics, Sun Yat-Sen University, Zhuhai 519082, China
 Download: PDF(2345 KB)   HTML
 Export: BibTeX | EndNote | Reference Manager | ProCite | RefWorks
Abstract

Modeling and optimization is crucial to smart chemical process operations. However, a large number of nonlinearities must be considered in a typical chemical process according to complex unit operations, chemical reactions and separations. This leads to a great challenge of implementing mechanistic models into industrial-scale problems due to the resulting computational complexity. Thus, this paper presents an efficient hybrid framework of integrating machine learning and particle swarm optimization to overcome the aforementioned difficulties. An industrial propane dehydrogenation process was carried out to demonstrate the validity and efficiency of our method. Firstly, a data set was generated based on process mechanistic simulation validated by industrial data, which provides sufficient and reasonable samples for model training and testing. Secondly, four well-known machine learning methods, namely, K-nearest neighbors, decision tree, support vector machine, and artificial neural network, were compared and used to obtain the prediction models of the processes operation. All of these methods achieved highly accurate model by adjusting model parameters on the basis of high-coverage data and properly features. Finally, optimal process operations were obtained by using the particle swarm optimization approach.

Keywords smart chemical process operations      data generation      hybrid method      machine learning      particle swarm optimization     
Corresponding Author(s): Xiantai Zhou,Ming Pan   
Just Accepted Date: 16 March 2021   Online First Date: 28 April 2021    Issue Date: 10 January 2022
 Cite this article:   
Haoqin Fang,Jianzhao Zhou,Zhenyu Wang, et al. Hybrid method integrating machine learning and particle swarm optimization for smart chemical process operations[J]. Front. Chem. Sci. Eng., 2022, 16(2): 274-287.
 URL:  
https://academic.hep.com.cn/fcse/EN/10.1007/s11705-021-2043-0
https://academic.hep.com.cn/fcse/EN/Y2022/V16/I2/274
Fig.1  Flowsheet of the PDH process built in Aspen Plus.
Feed stream Reactor 1 Reactor 2 Reactor 3 Reactor 4
Inlet Outlet Inlet Outlet Inlet Outlet Inlet Outlet
C3H8/(kg·h−1) 84461.9 74492.6 74492.6 67199.7 67199.7 61336.7 61336.7 56342.1
C3H6/(kg·h−1) 891.1 10166.3 10166.3 16746.8 16746.8 21905.0 21905.0 26296.5
Tab.1  The flowrate of propane and propylene in moving bed reactors
Index Previous model Aspen Plus simulation Relative error/%
C/% 33.2 33.29 0.271
S/% 94.8 94.68 −0.127
Y/% 31.5 31.52 0.0635
Tab.2  The results of previous model [31] and Aspen Plus simulation in reaction process
Input Operating range Sampling points for training Sampling points for testing
x1/(kmol·h−1) 560−840 560, 580, 600, 620, 630, 640, 660, 680, 700, 720, 740, 760, 770, 780, 800, 820, 840 595, 665, 735, 805
x2 1.6−40 1.6, 1.8, 2, 2.2, 2.4 1.7, 1.9, 2.1, 2.3
x3/bar 6.5−10 6.5, 7, 8, 9, 10 6.5, 7.5, 8.5, 9.5
x4C 570−610 570, 580, 590, 600, 610 575, 585, 595, 605
x5/bar 1.8−2 1.8, 1.85, 1.9, 1.95, 2 1.83, 1.88, 1.93, 1.98
Tab.3  Operating ranges and sampling points of inputs for data-driven modeling
Fig.2  Sampling for model training and testing of the two outputs in the PDH process: total annual profit (y1) and propylene yield (y2).
Fig.3  Illustration of a CRT structure with two parent nodes and three child nodes.
Fig.4  R2 of test data with different combinations of k, distance calculations, and predictive equations based on (a) average KNN and (b) distanced-weighted KNN.
Output Average KNN Distance-weighted KNN
Chebyshev distance Euclidean distance Manhattan distance Chebyshev distance Euclidean distance Manhattan distance
k R2 k R2 k R2 k R2 k R2 k R2
y1
/(M$·year−1)
76 0.99899 217 0.99841 232 0.99870 76 0.99900 217 0.99844 234 0.99872
y2/% 77 0.99890 217 0.99827 232 0.99858 77 0.99891 217 0.99830 234 0.99860
Tab.4  The best KNN models under different combinations of k, distance calculations, and predictive equations
Fig.5  R2 of test data under different combinations of kernel functions and parameters c in SVR models.
Output Linear function (linear) Polynomial function (poly) Radial basis function (rbf)
c R2 c R2 c R2
y1/(M$·year−1) 0.0002 0.84363 3 0.81170 5 0.99050
y2/% 0.07 0.24939 0.04 0.97768 90 0.99910
Tab.5  The best SVR models under different combinations of Kernel functions and parameter c
Fig.6  R2 of test data under different parameter N in DT models.
Fig.7  R2 of test data with different optimization algorithms based on different activation functions: (a) ReLU, (b) softplus, (c) sigmoid, and (d) Tanh.
Output ReLU Tanh Softplus Sigmoid
N R2 N R2 N R2 N R2
Root mean square prop (RMSProp)
y1/(M$·year−1) 12 0.9934 8 0.9938 10 0.9940 8 0.9841
y2/% 12 0.9894 12 0.9897 12 0.9902 8 0.9901
Adaptive moment estimation (Adam)
y1/(M$·year−1) 12 0.9934 6 0.9936 6 0.9937 10 0.9847
y2/% 12 0.9891 12 0.9901 12 0.9901 10 0.9897
Adaptive gradient (AdaGrad)
y1/(M$·year−1) 10 0.9850 12 0.9817 8 0.9855 6 0.9805
y2/% 12 0.9897 6 0.9910 10 0.9723 8 0.9701
Momentum
y1/(M$·year−1) 6 0.9922 8 0.9833 12 0.9850 12 0.9817
y2/% 12 0.9903 10 0.9757 8 0.9702 10 0.9696
Gradient descent
y1/(M$·year−1) 8 0.9900 12 0.9827 12 0.9848 12 0.9820
y2/% 6 0.9899 12 0.9806 8 0.9713 12 0.9697
Tab.6  The best ANN models under different combinations of nodes in L2 (N), activation functions, and optimization algorithms
Fig.8  The impact of key operating parameters (c1, c2) on controlling PSO procedure: (a) ω = 0.05, (b) ω = 0.45, (c) ω = 3.0, and (d) ω = 10.
Max x1/(kmol·h−1) x2 x3/bar x4/°C x5/bar Obj Aspen Plus
validation
Error/%
y1/(M$·year−1) 840 1.6 9.646 610 1.8 79438 79957 0.65
y2/(%) 840 1.6 6.500 610 1.8 83.53 83.54 0.01
Tab.7  The optimal solutions obtained by PSO a)
1 J F Jenck, F Agterberg, M J Droescher. Products and processes for a sustainable chemical industry: a review of achievements and prospects. Green Chemistry, 2004, 6(11): 544
https://doi.org/10.1039/b406854h
2 R Vooradi, S B Anne, A K Tula, M R Eden, R Gani. Energy and CO2 management for chemical and related industries: issues, opportunities and challenges. BMC Chemical Engineering, 2019, 1(1): 7
https://doi.org/10.1186/s42480-019-0008-6
3 E Worrell, R F A Cuelenaere, K Blok, W C Turkenburg. Energy consumption by industrial processes in the European Union. Energy, 1994, 19(11): 1113–1129
https://doi.org/10.1016/0360-5442(94)90068-X
4 J Ding, H Modares, T Chai, F L Lewis. Data-based multiobjective plant-wide performance optimization of industrial processes under dynamic environments. IEEE Transactions on Industrial Informatics, 2016, 12(2): 454–465
https://doi.org/10.1109/TII.2016.2516973
5 M Hammer. Management Approach for Resource-Productive Operations. Wiesbaden: Springer Gabler, 2018, 11–26
6 D Ibrahim, M Jobson, G Guillén-Gosálbez. Optimization-based design of crude oil distillation units using rigorous simulation models. Industrial & Engineering Chemistry Research, 2017, 56(23): 6728–6740
https://doi.org/10.1021/acs.iecr.7b01014
7 R C Pattison, A M Gupta, M Baldea. Equation-oriented optimization of process flowsheets with dividing-wall columns. AIChE Journal. American Institute of Chemical Engineers, 2016, 62(3): 704–716
https://doi.org/10.1002/aic.15060
8 B C Menezes, J D Kelly, I E Grossmann. Improved swing-cut modeling for planning and scheduling of oil-refinery distillation units. Industrial & Engineering Chemistry Research, 2013, 52(51): 18324–18333
https://doi.org/10.1021/ie4025775
9 D Bo, K Yang, Q Xie, C He, B Zhang, Q Chen, Z Qi, J Ren, M Pan. A novel approach for detailed modeling and optimization to improve energy saving in multiple effect evaporator systems. Industrial & Engineering Chemistry Research, 2019, 58(16): 6613–6625
https://doi.org/10.1021/acs.iecr.9b00449
10 K T Butler, D W Davies, H Cartwright, O Isayev, A Walsh. Machine learning for molecular and materials science. Nature, 2018, 559(7715): 547–555
https://doi.org/10.1038/s41586-018-0337-2
11 S Hotta, S Kiyasu, S Miyahara. Pattern recognition using average patterns of categorical k-nearest neighbors. In: Proceedings of the 17th International Conference on Pattern Recognition. Washington, DC: IEEE, 2004
12 D A Adeniyi, Z Wei, Y Yongquan. Automated web usage data mining and recommendation system using K-Nearest Neighbor (KNN) classification method. Applied Computing and Informatics, 2016, 12(1): 90–108
https://doi.org/10.1016/j.aci.2014.10.001
13 T T Dang, H Y T Ngan, W Liu. Distance-based k-nearest neighbors outlier detection method in large-scale traffic data. In: IEEE International Conference on Digital Signal Processing (DSP). Washington, DC: IEEE, 2015
14 W Zhu, W Sun, J Romagnoli. Adaptive k-nearest-neighbor method for process monitoring. Industrial & Engineering Chemistry Research, 2018, 57(7): 2574–2586
https://doi.org/10.1021/acs.iecr.7b03771
15 H A Al-Jamimi, A Bagudu, T A Saleh. An intelligent approach for the modeling and experimental optimization of molecular hydrodesulfurization over AlMoCoBi catalyst. Journal of Molecular Liquids, 2019, 278: 376–384
https://doi.org/10.1016/j.molliq.2018.12.144
16 D Yang, W Zhong, X Chen, J Zhan, G Wang. Structure optimization of vessel seawater desulphurization scrubber based on CFD and SVM-GA methods. Canadian Journal of Chemical Engineering, 2019, 97(11): 2899–2909
https://doi.org/10.1002/cjce.23498
17 G Golkarnarenji, M Naebe, K Badii, A S Milani, R N Jazar, H Khayyam. Support vector regression modeling and optimization of energy consumption in carbon fiber production line. Computers & Chemical Engineering, 2018, 109: 276–288
https://doi.org/10.1016/j.compchemeng.2017.11.020
18 Z Yu, K Yousaf, M Ahmad, M Yousaf, Q Gao, K Chen. Efficient pyrolysis of ginkgo biloba leaf residue and pharmaceutical sludge (mixture) with high production of clean energy: process optimization by particle swarm optimization and gradient boosting decision tree algorithm. Bioresource Technology, 2020, 304: 123020
https://doi.org/10.1016/j.biortech.2020.123020
19 B R Hough. Computational approaches and tools for modeling biomass pyrolysis. Dissertation for the Doctoral Degree. Washington: University of Washington, 2016, 78–94
20 M Saleem, I Ali. Machine learning based prediction of pyrolytic conversion for red sea seaweed. In: 7th International Conference on Biological, Chemical & Environmental Sciences. Budapest (Hungary), 2017, 27–31
21 B R Hough, D A Beck, D T Schwartz, J Pfaendtner. Application of machine learning to pyrolysis reaction networks: reducing model solution time to enable process optimization. Computers & Chemical Engineering, 2017, 104: 56–63
https://doi.org/10.1016/j.compchemeng.2017.04.012
22 H Mirshahvalad, R Ghasemiasl, N Raoufi, M Malekzadeh dirin. A neural network QSPR model for accurate prediction of flash point of pure hydrocarbons. Molecular Informatics, 2019, 38(4): 1800094
https://doi.org/10.1002/minf.201800094
23 Z Wang, Y Su, S Jin, W Shen, J Ren, X Zhang, J H Clark. A novel unambiguous strategy of molecular feature extraction in machine learning assisted predictive models for environmental properties. Green Chemistry, 2020, 22(12): 3867–3876
https://doi.org/10.1039/D0GC01122C
24 A Sosa, J Ortega, L Fernández, J Palomar. Development of a method to model the mixing energy of solutions using COSMO molecular descriptors linked with a semi-empirical model using a combined ANN-QSPR methodology. Chemical Engineering Science, 2020, 224: 115764
https://doi.org/10.1016/j.ces.2020.115764
25 Y Su, Z Wang, S Jin, W Shen, J Ren, M R Eden. An architecture of deep learning in QSPR modeling for the prediction of critical properties using molecular signatures. AIChE Journal. American Institute of Chemical Engineers, 2019, 65(9): e16678
https://doi.org/10.1002/aic.16678
26 A M Schweidtmann, W R Huster, J T Lüthje, A Mitsos. Deterministic global process optimization: accurate (single-species) properties via artificial neural networks. Computers & Chemical Engineering, 2019, 121: 67–74
https://doi.org/10.1016/j.compchemeng.2018.10.007
27 M Chandrasekaran, S. Tamang ANN-PSO integrated optimization methodology for intelligent control of MMC machining. Journal of the Institution of Engineers (India): Series C, 2017, 98(4): 395–401
28 X Zhang, T Zhou, L Zhang, K Y Fung, K M Ng. Food product design: a hybrid machine learning and mechanistic modeling approach. Industrial & Engineering Chemistry Research, 2019, 58(36): 16743–16752
https://doi.org/10.1021/acs.iecr.9b02462
29 Y Zhu, Z Hou, F Qian, W Du. Dual RBFNNs-based model-free adaptive control with aspen HYSYS simulation. IEEE Transactions on Industrial Informatics, 2016, 28(3): 759–765
30 D N Myers, D N Myers, J E Zimmermann. US Patent, 20100916969, 2010-11-1
31 S Chin, S Radzi, I Maharon, M Shafawi. Kinetic model and simulation analysis for propane dehydrogenation in an industrial moving bed reactor. World Academy of Science, Engineering and Technology, 2011, 52: 183–189
32 L C Loc, N Gaidai, S Kiperman, H S Thoang. Kinetics of propane and n-butane dehydrogenation over platinum-alumina catalysts in the presence of hydrogen and water vapor. Kinetics and Catalysis, 1996, 37(6): 790–796
33 A Røsjorde, S Kjelstrup, E Johannessen, R Hansen. Minimizing the entropy production in a chemical process for dehydrogenation of propane. Energy, 2007, 32(4): 335–343
https://doi.org/10.1016/j.energy.2006.07.013
34 N García-Pedrajas, J A R del Castillo. A proposal for local k values for k-nearest neighbor rule. IEEE Transactions on Industrial Informatics, 2017, 28(2): 470–475
35 F Zhu, J Gao, C Xu, J Yang, D Tao. On selecting effective patterns for fast support vector regression training. IEEE Transactions on Industrial Informatics, 2018, 29(8): 3610–3622
36 W Y Loh. Classification and regression trees. Wiley Interdisciplinary Reviews. Data Mining and Knowledge Discovery, 2011, 1(1): 14–23
https://doi.org/10.1002/widm.8
37 K Hsu, H V Gupta, S Sorooshian. Artificial neural network modeling of the rainfall-runoff process. Water Resources Research, 1995, 31(10): 2517–2530
https://doi.org/10.1029/95WR01955
38 Q Yang, Z Yang, T Zhang, G Hu. A random chemical reaction optimization algorithm based on dual containers strategy for multi-rotor UAV path planning in transmission line inspection. Concurrency and Computation, 2019, 31(12): e4658
https://doi.org/10.1002/cpe.4658
39 J Kennedy, R Eberhart. Particle swarm optimization. In: Proceedings of ICNN’95-International Conference on Neural Networks. Washington, DC: IEEE, 1995
[1] Quirin Göttl, Dominik G. Grimm, Jakob Burger. Automated synthesis of steady-state continuous processes using reinforcement learning[J]. Front. Chem. Sci. Eng., 2022, 16(2): 288-302.
[2] Ewan Chee, Wee Chin Wong, Xiaonan Wang. An integrated approach for machine-learning-based system identification of dynamical systems under control: application towards the model predictive control of a highly nonlinear reactor system[J]. Front. Chem. Sci. Eng., 2022, 16(2): 237-250.
[3] Patrick Otto Ludl, Raoul Heese, Johannes Höller, Norbert Asprion, Michael Bortz. Using machine learning models to explore the solution space of large nonlinear systems underlying flowsheet simulations with constraints[J]. Front. Chem. Sci. Eng., 2022, 16(2): 183-197.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed