Predictive machine learning of soybean oil epoxidizing reactions using artificial neural networks Bogdan B. Sus1 , Oleksandr S. Bauzha1 , Sergiy P. Zagorodnyuk1 , Taras V. Chaikivskyi2 and Oleksandr V. Hryshchuk1 1 Taras Shevchenko National University of Kyiv, 64/13 Volodymyrska Str., Kyiv, 01601, Ukraine 2 Lviv Polytechnic National University, 12 Bandera Str., Lviv, 79013, Ukraine Abstract Experimental data on the epoxidation process of soybean oil with hydrogen peroxide/acetic anhydride were analyzed. This study utilizes experimental data to construct a training dataset for neural net- work training. Post-training, the neural network facilitates the optimization of epoxy curing reaction parameters, monitors its evolution, and refines the epoxy product synthesis process. Furthermore, a novel methodology has been devised to calculate the outcomes of epoxyation in unsaturated compound mixtures. This method empowers precise control over the epoxyation process at the synthesis phase, under specific reaction conditions, and elevates the technology involved in epoxy output production. Keywords Neural network, Optimization, Soybean oil, Epoxidizing 1. Introduction Modern information technologies enable the solution of a wide range of practical tasks that involve the procedure of deep machine learning and subsequent outcome testing [1]. At present, there are already many areas of human activity where diverse computational tasks have been successfully solved using artificial neural networks. For instance, by analyzing the electroencephalogram of a person expressing a particular phrase, using deep feedforward neural networks, it has been possible to build a human speech synthesizer [2]. Such a synthesizer is capable of guessing and articulating certain fixed expressions used by a person in the past but not recalled during the operation of the synthesizer. The use of neural networks in medicine is essentially a separate branch of science and technology: they can be used for interpreting X-ray images, making it easy to determine the degree of bone wear and tear in a person, as well as artificial implants, fasteners, and prosthetics injected into the patient’s body [3]. CS&SE@SW 2023: 6th Workshop for Young Scientists in Computer Science & Software Engineering, February 2, 2024, Kryvyi Rih, Ukraine " bnsuse@gmail.com (B. B. Sus); asb@univ.kiev.ua (O. S. Bauzha); szagorodniuk@gmail.com (S. P. Zagorodnyuk); taras.v.chaikivskyi@lpnu.ua (T. V. Chaikivskyi); oleksandr_hryshchuk@knu.ua (O. V. Hryshchuk) ~ https://iht.knu.ua/staff/sus-b-b (B. B. Sus); http://ced.knu.ua/list/bauzha (O. S. Bauzha); http://ced.knu.ua/list/zagorodnyuk (S. P. Zagorodnyuk); https://pro100.lpnu.ua/moodle/user/profile.php?id=2&lang=en (T. V. Chaikivskyi)  0000-0002-2566-5530 (B. B. Sus); 0000-0002-4920-0631 (O. S. Bauzha); 0000-0003-3415-7746 (S. P. Zagorodnyuk); 0000-0003-3415-7746 (T. V. Chaikivskyi); 0009-0007-9926-4231 (O. V. Hryshchuk) © 2024 Copyright for this paper by its authors. Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0). CEUR Workshop Proceedings ceur-ws.org ISSN 1613-0073 CEUR Workshop Proceedings (CEUR-WS.org) 223 CEUR ceur-ws.org Workshop ISSN 1613-0073 Proceedings Chemists and biologists use neural networks to predict the outcomes of chemical and biological processes, select optimal conditions for such processes, and assess the quantities and types of catalysts [4] or inhibitors [5]. In the field of robotics and automation, neural networks are employed for the approximate calculation and prediction of motion trajectories for automated machines, mechanisms, and manipulators [6], as well as for optimizing the consumption of energy resources and materials. Among the natural sciences, including mathematics, mechanics, materials science, vibrations and waves, spectral analysis, the application of neural networks enables the solution of classical fundamental equations, including those involving Bessel and Neumann special functions [7], which describe real multi-dimensional systems. Numerical solutions to such equations were previously inaccessible. Neural network structures are utilized in various branches and directions of physics. This includes mathematical modeling of the output of photovoltaic panels and approximating gener- ated power [8], processing and analysis of sensor data and measurement devices, and substance identification. Neural networks find extensive applications in physical problems related to the propagation, interference, diffraction, and absorption of electromagnetic waves [9, 10], as well as in ultrasound for biological research [11] and for the study of massive solid media [12]. The main goal and principle of green chemistry are the utilization of renewable, environmen- tally friendly raw materials, which will contribute to reducing biodegradation and the toxicity of industrial production [13]. The polymerization of soybean oil is essential for the creation of polymers used in the production of printing and textile inks. Epoxydized oils possess unique chemical properties and, therefore, have a wide range of applications. They are used to enhance the operational quality of rubber, as components for producing photographic films, packaging materials in medicine, and in the production of food products. There is an urgent need for a fast and accurate method for identifying the true content of oil mixtures. In this study, Raman spectroscopy, combined with three deep learning models (CNN-LSTM, enhanced AlexNet, and ResNet), was used for the simultaneous determination of the quantities of extra virgin olive oil (EVOO), soybean oil, and sunflower oil in a blend of olive oils. The research demonstrated that all three deep learning models outperformed traditional chemometric methods in predicting the composition [14]. Currently, active research is being conducted on the synthesis of solid polymer materials using soybean oil with mechanical properties that can be utilized as construction and building materials. Epoxides belong to the group of cyclic ethers - metabolites that are often formed by cytochromes, acting on aromatic or double bonds. The specific site on a molecule that undergoes epoxidation is called the site of epoxidation (SOE). Thus, artificial intelligence methods significantly enhance the accuracy of SOE molecule identification and the selection of optimal parameters for controlling the epoxidation process. Indeed, this type of learning is facilitated by artificial neural networks (ANN), which are essentially a technical software implementation of the biological neural structure in the human brain. Such neural networks are also commonly referred to as connection systems because, for such ANNs, a fundamental component is the system of connections and links that enable one neuron to establish pathways for the propagation of signals to other neurons and, conversely, receive similar signals from them. Epoxy oils are widely used in the production of polyvinyl chloride (PVC) and polymers based on it because epoxy oils are among the best stabilizers and plasticizers for such polymers. Epoxy oils offer specific advantages 224 over stabilizers of other types. For example, adding epoxy stabilizers to a polymer significantly increases its thermal stability and provides resistance to ionizing radiation. Epoxy oils can be used as curing agents and binders (in compositions with various oligomers) as well as stabilizers (in PVC compositions). The production and use of epoxy oils continue to grow steadily as they are integral components of paint and varnish products based on epoxy, cellulose ether oligomers, PVC, and plasticizers for organodispersed coatings. In this study, a deep learning algorithm is employed for the automatic detection of issues in pipelines containing epoxy oils [15]. In [16] the construction of an electromagnetic field shielding system using a multi-layer perceptron neural network-based system designed for predicting electromagnetic absorption by composite films based on polycarbonate and carbon nanotubes is examined. The proposed system includes 15 different multi-layer perceptron networks [17]. Organic peracids are utilized for the implementation of liquid-phase epoxidation of unsatu- rated organic substances [18]. 2. Experimental Nykulyshyn et al. [19] suggests the use of an epoxidation system consisting of H2 O2 /acetic acid/catalyst. In this system, the epoxidizing agent is also an organic peracid formed through the interaction of H2 O2 with organic acid in the presence of a catalyst (figure 1). In this case, the organic acid circulates within the system, with its molecule periodically gaining an additional oxygen atom, which is then transferred to another substance. Figure 1: Epoxidizing of the substance using the H2 O2 /organic acid/catalyst system. The authors propose using the anhydride of organic acid instead of organic acid, which will reduce the formation of water in the reaction mixture and accelerate the reaction of nadoctovoic acid formation. The objective of this study is to improve and modify the technology for obtaining epoxy oils, establish optimal conditions for the economically viable production of epoxy oils that meet quality standards (figure 1). 225 Table 1 Quality indicators of epoxidized oils. Norm for brands Physical-chemical indicator (technical conditions)* ST SU C Epoxy number, % (oxyran oxygen content), not less than 6.5 6.4 6.0 Iodine number, g I2/100 g, no more than 1.5 2.0 8.0 * As stabilizers and plasticizers for PVC-based polymers The practical value of using the process model obtained through neural networks lies in its ability to monitor the quality of epoxy oil during the synthesis stage. The dependencies of the time parameters of the chemical epoxidation reaction on: • Initial concentration of acetic anhydride • Initial concentration of hydrogen peroxide • Initial concentration of ion-exchange resin KU-2x8 • Process temperature. The obtained dependencies allow researchers the assessment of the optimal concentration of epoxying mixture reagents, process duration, and temperature. Experimental data indicates that the relationship between the epoxy number of epoxidized soybean oil and temperature at various concentrations of acetic anhydride, hydrogen peroxide, catalyst amount, and process duration exhibits a complex nature. In the initial stages, the reaction rate steadily increases with rising temperature and catalyst concentration. However, at excessively high temperatures (>348 K) and catalyst concentrations (>15 g per 100 cm3 ), there is a possibility of a decrease in the achieved epoxy number due to secondary reactions involving the opening of epoxy cycles. Therefore, to determine the optimal conditions for the chemical process, it is advisable to construct a mathematical model and apply it to calculate the parameters of such processes. The following assumptions were made during the model creation: • X1 – concentration of acetic anhydride, wt.%, 2