Introduction
Machining operations are performed on materials to attain better dimensional accuracy and surface roughness. Surface roughness is a crucial factor in manufacturing operations that influences the product’s quality. Several factors influence material surface roughness, like cutting parameters, vibrations, cutting forces, coolant used, tool wear, chip formation, cutting tools, etc. (Anagün et al., Reference Anagün, Işik and Çakir F2023; RS et al., Reference RS, Ramesh and Rohit Varma2020; Chebrolu et al., Reference Chebrolu, Koona and Raju2022). A stylus probe device is used to manually test the surface roughness of the machined components. The probe instrument causes visible scratches on the machined parts by physically moving them (Raju et al., Reference Raju, Raju and Ramesh2017; Guleria et al., Reference Guleria, Kumar and Singh2022). Several researchers proposed artificial intelligence models for the prediction of surface roughness using the parameters that influence surface roughness to do away with the manual method of measurement (Huang et al., Reference Huang, Inderawati and Rohmat2023; Yücel et al., Reference Yücel, Otuzbir and Yücel2023). Machine learning algorithms have been utilized more frequently lately to forecast surface roughness in manufacturing processes (Buj-Corral et al., Reference Buj-Corral, Sender and Luis-Pérez2023; Bhowmick et al., Reference Bhowmick, Mondal, Sarkar, Biswas, De and Majumdar2023). In this work, a novel hybrid model is created by combining the Teaching Learning Based Algorithm–Artificial Neural Networks) to enhance their capabilities. The complex relationships between the input variables (CP, Vib, and SC) and the output variable (surface roughness) are developed using the ANN. To improve accuracy, the ANN model’s parameters are optimized using the TLBO technique. The study involves collecting experimental data on cutting parameters, vibration, and sound characteristics for a range of machining operations, and measuring the corresponding surface roughness. The ANN–TLBO hybrid model is trained on the gathered experimental data, and the model’s effectiveness is assessed. The work aims to provide insights into the development of accurate and efficient models for predicting surface roughness in manufacturing processes. To obtain the necessary surface finish, the manufacturing process parameters can be optimized using the suggested ANN–TLBO hybrid model. A mobile app is developed to interface with the sound characteristics, predict the surface finish, and display the same similar to Mikolajczyk et al. (Reference Mikolajczyk, Fuwen, Moldovan, Bustillo, Matuszewski and Nowicki2018). The remaining sections of the paper are organized as follows: 1. Introduction, 2 Literature review, 3. Experimentation, 4. Optimization of neural network models, 5. Models interpretation 6. Results, 7. IoT interface, and 8. conclusions
Literature review
To carefully highlight the nuances of surface roughness prediction in CNC machining, the literature study is divided into three sections. Investigating the complex link between surface quality and machining circumstances through the analysis of cutting parameter-based systems. Deep insights into the critical function of vibration signals in surface roughness prediction were obtained by investigating vibrations-based systems. Meanwhile, the analysis of systems based on sound characteristics provided insightful viewpoints on how to use sound measurements for accurate surface quality evaluation. This methodical tripartite approach guarantees an exhaustive investigation of current approaches, providing a strong basis upon which our study may innovate and contribute to the area.
Review on cutting parameter-based systems
Mikołajczyk et al. (Reference Mikołajczyk, Latos, Pimenov, Paczkowski, Gupta and Krolczyk2020) This research investigates the effect of oblique cutting with sintered carbide edges at different cutting-edge angles (λs) on the minimal uncut chip thickness during free-radial rotation. The findings show that h min decreases as λs angle increases, which is consistent with theoretical formulas pertaining to the direction of chip flow. Emphasizing the importance of non-orthogonal cutting processes in research and practice, the paper tackles micro-cutting and abrasive wear difficulties and proposes new avenues for finishing machining. Abbas et al. (Reference Abbas, Pimenov, Erdakov, Mikolajczyk, Soliman and El Rayes2019) proposed an algorithm using an ANN with the Edgeworth–Pareto method that will optimize the cutting parameter in CNC face-milling operations. Surface roughness, R a, has been forecasted utilizing a 3-10-1 multi-layer perceptron artificial neural network (ANN MLP) subsequent to completing the face milling process. The process involved parameters within the following ranges: cutting speed ranging from 78 to 158 m/min, cutting depth ranging from 0.5 to 1.5 mm, and feed per tooth ranging from 0.013 to 0.075 mm/tooth, with a precision of ±5.78%. In the investigation of milling grade-H steel, neural network models have revealed a beneficial impact of spindle speed (n) and feed rate (v f), and a detrimental impact of the depth of cut (a p) on surface roughness. Notably, the significance attributed to spindle speed and feed rate was 25 times greater than that assigned to the depth of cut. A three-axis, vertical CNC milling machine is used to perform end-mill operations on Aluminum 6061 T6a workpiece. Tseng et al. (Reference Tseng, Konada and Kwon2016) used a spindle touch probe and a Renishaw TS27R tool setting probe to measure the surface roughness. The cutting parameters from the experiment are taken as input variables for the fuzzy logic (FL) model to predict the surface roughness. Given a set of inputs, such as cutting speed, feed rate, and other variables, an FL model with 63 built to predict the surface roughness. The predicted values of the surface roughness (SR) from the FL model are compared with the values measured experimentally, and the Model predicted them with an accuracy of 95%. Ho et al. (Reference Ho, Tsai, Lin and Chou2009) conducted the end milling operation with various input parameters, such as speed feed rate and depth of cut, and measured the corresponding surface roughness value. With the aid of experimental values, they developed a novel hybrid Taguchi-genetic learning-based adaptive neuro-fuzzy inference system (HTGLA-based ANFIS) algorithm to predict the surface roughness value. In all, there are 72 experiments, of which 48 are used to train the model and 24 to test it. The developed model demonstrates superior performance and achieved an average error percentage of 4.06%. Eser et al. (Reference Eser, Aşkar Ayyıldız, Ayyıldız and Kara2021) developed an experimental model using ANN and RSM to predict surface roughness in milling AA6061 alloy with TiCN-coated carbide tools. They found that the depth of cut had the most significant impact on surface roughness (35.48%), followed by cutting speed (23.38%), and feed rate (16.74%). This study underscores the importance of optimizing cutting parameters for improved surface quality in milling operations. Kara et al. (Reference Kara, Bulan, Akgün and Köklü2023) investigated the impact of cutting parameters and nose radius variation on milling 17-4 PH stainless steel. They found that using a 0.4 mm cutting nose radius resulted in lower cutting force, temperature, and tool wear (approximately 2.35%, 28.89%, and 1.18% lower, respectively) compared to a 0.8 mm nose radius. Moreover, increasing the nose radius improved surface quality by an average of 47.48%. These findings highlight the importance of optimizing cutting parameters for enhanced machining performance and surface finish in stainless steel milling. Mikolajczyk et al. (Reference Mikolajczyk2014) explored the critical influence of the thickness of an irreversible cut layer on the cutting process in low thickness layers, with reference to the radius of the cutting-edge rounding. It highlights how important this impact is for turning, especially when feed values are less than 0.05mm/rev for lower cutting-edge radii, allowing for higher feed rates for bigger radii. The created program facilitates the analysis and visualization of this impact, which is useful for maximizing machining parameters and comprehending the subtleties of surface roughness in turning processes.
Review on vibrations-based systems
In the earlier section, the researchers built the predictive models for determining the surface roughness values by making use of the cutting parameters. Some studies on vibration-based surface roughness estimation are as follows: Wu and Lei (Reference Wu and Lei2019) performed the milling operation on S45C steel material using a tungsten carbide cutter, and corresponding vibrations were measured in all directions (i.e., X, Y, and Z directions). The vibrational signals have been extracted using a sensor and analyzed using time and frequency domain analysis in all specified directions. A BP-ANN model is developed to predict the surface roughness from cutting parameters and acquired vibration signals. The Z-direction vibration signal had more impact on the surface roughness than the other two directions. They also developed the three models (i.e., model 1: considering the cutting parameters as input parameters, model 2: considering the vibration data as input parameters, and model 3: combining both cutting and vibrational data) for predicting the surface roughness values. From the results, they found that the first model’s mean absolute percentage error (MAPE) of the BP-ANN model is 29%. In the second model, MAPE is 25% when vibration signals are given as input for the prediction of surface roughness value. In the third model, MAPE is 19% when vibrations and cutting parameters are given as input. It is noticed that the surface roughness predictions are enhanced by combining the vibration signals and cutting parameters. Feng et al. (Reference Feng, Hsu, Lu, Lin, Lin, Lin, Lu, Lu and Liang2020) conducted the ultrasonic vibration-assisted slot milling operation on Aluminum alloy 2A12 samples using a five-axis machining center approach. The surfaces of workpieces are measured six times by an optical interferometer. The surface roughness of the slot after feed rate directional ultrasonic vibration-assisted milling is analyzed through the analytical predictive model. The analytical prediction model is compared with experimental measurements. The average percentage error is 13.4% for the first group of experiments under a spindle speed of 5,000 rpm. The average percentage error is 25.7% under the feed rate per tooth of 4 μm. The average percentage error is 17.3% for the second group of experiments when the vibration amplitude is 4 μm. The average percentage error is 10.9% when the vibration amplitude is 7 μm. The proposed model achieved high accuracy in all cases. Župerl and Čuš (Reference Župerl and Čuš2019) performed the dry turning operation on AISI 8620 steel samples. In this experiment, the vibration signals are measured with accelerometers placed close to the tool. The signals from the accelerometers are processed and logged via a data acquisition card (DSPT Siglab Model 20-42) and d the vibrational information is extracted during the experimentation. Surface roughness prediction is based on singular spectrum analysis (SSA), a unique signal processing technology that analyses the vibrations of cutting tools. In all, there are 60 experiments, of which 40 are used to train the model and 20 to validate it. The SSA model predicted SR values are predicted with an average percentage error of 4.72%.
Review of sound characteristics-based systems
In the earlier section, the researchers built the predictive models for determining the surface roughness values by making use of the vibrational information during the machining operation. However, there is not an extensive amount of research that is available now that attempts to predict the surface roughness values by making use of the sound characteristics that have been gathered during the experiment. Salgado et al. (Reference Salgado, Cambero, Marcelo and Alonso2009). performed the machining operation on mild steel specimens and gathered the friction noise characteristics as well as the contact force. With the aid of this information, a correlation has been developed between the surface roughness and input parameters (i.e., friction noise characteristics and contact force). The amplitude of friction noise and the magnitude of contact force are utilized to train a back propagation neural network (BPNN) for future prediction of Surface roughness. The network consisted of one output node and four input nodes. About 300 data sets are generated after the contactor is rubbed on surfaces made of mild steel that is machined. Among all, 30% of the data set is used to test the network’s performance, and 70% of the randomly selected data is used to train the network. The data obtained from the experiments demonstrate that the neural network could learn the pattern for future prediction of surface roughness. Singh et al. (Reference Singh, Srinivasan and Chakraborty2004). performed the end milling machining operation on 16MnCr5 steel specimens. A cutting experiment with variable milling depth is carried out for the feasibility test of the cloud-based machining platform for monitoring end-milling operations. The cutting experiment is carried out using the CNC machine. The developed cloud machining platform’s computing resources are linked to the machine tool’s intelligent sensor system to create the two-level cyber-physical machining system. The designed smart optical sensor system can collect and transmit in real time the values of the cutting chip sizes to the cloud level. Based on the established cutting chip size, a cloud application with an adaptive neural inference system is used to model and predict surface roughness online. By adjusting the machining parameters and maintaining surface roughness constant, a novel application of cognitive corrective control action is used to regulate the cutting chip size based on the in-process predictions. Controlled R a deviated only less than 10% from the desired surface roughness value.
Zhao et al. (Reference Zhao, Wang, Wang, Wang, Ma and Yang2022). conducted the slot milling machining operation on AL7075 workpiece samples with the aid of a 5-axis CNC machine. A total of 50 experiments are designed and conducted, out of which 40 are selected as the training set and the remaining 10 as the test set. A novel self-learning surface roughness prediction model has been developed based on the Pigeon-Inspired Optimized Support Vector Machine (PIO–SVM). The influence of cutter posture and cutting force on surface roughness is analyzed. The average prediction error of the proposed model was only 8.69% at the initial moment. A surface roughness stabilization method combining the proposed prediction model and digital twin technology is proposed to make the whole machined surface meet the surface roughness technology requirements. The proposed method had a good influence on making the surface roughness of the workpieces stable and helped to improve the machined surface properties, machining efficiency, and manufacturing cost.
Methodology of experimentation
Experimental setup
Face milling operations are performed on 110 $ \times $ 50 $ \times $ 9 mm3 sized aluminum alloy A96061-T6 flats at diverse cutting parameters. A spectrometer chemical analysis is done on the workpieces to test the composition, and the hardness of the material is measured to justify the above-mentioned material. A conventional milling machine named BFW VF1 (spindle motor of 3 kW and feed rate motors of 0.75 kW) is used to perform the face milling operation. A face milling cutter of 50 mm diameter with four numbers of teeth is used for machining. The placement of vibration sensor and the sound sensor are shown in Figure 1. Sensors are placed close to the spindle to acquire the spindle vibration data and sound characteristics. The sensors are connected to the national instruments data acquisition system (DAC) as shown in Figure 1.
The vibration measurement device (i.e., PCB single axis accelerometer, model number: 352C03, sensitivity (±20%): 9.95 mV/g, frequency range (±5%): 0.5–10,000 Hz, measurement range: ±500 g Pk, resonant frequency: ≥50 kHz, weight (without cable): 5.8g)) is used for the measurement of vibrations and the overall vibration values. The obtained vibrational values are given in Table 1. The sound sensor or microphone with a sensitivity of 45 mV/Pa is used to measure the overall sound characteristics during the experimentation. The obtained sound characteristics are listed in Table 1. Specifications of the sound sensor are model number: 377B02, open circuit sensitivity: 45 mV/Pa, frequency range (±2 dB): 3.15 Hz–20 kHz, dynamic range upper limit: 3%: 146 dB A. National instruments (NI) data acquisition (DAQ) systems, cDAQ-SV1101 Bundle specifically designed for vibration and sound measurements, are used in this experiment. This system is used to capture and analyze data from accelerometer and microphones to characterize vibrations and acoustic signals in the test section. The cDAQ-SV1101Bundle is a one-slot chassis that can accommodate up to four signal conditioning modules (SCMs). Each SCM can support up to four channels of measurement, and the system can sample at up to 51.2 kS/s per channel with 24-bit resolution. In the design of experiments (DOE), a methodical approach is used to set the experimental cutting parameters required for machining in a sequential order. The cutting parameters given for DOE (Design Expert V13 software) are cutting speed (i.e., 710, 1000, and 1400 rpm), feed rate (i.e., 100, 160, 200 mm/min), and depth of cut (D.O.C.) (i.e., 0.2, 0.4, and 0.6 mm) and a total of 27 different experiments are proposed by DOE for experimentation, as listed in Table 1. The Talysurf is used to measure the surface roughness of each machined flat, and the measured surface roughness values to its corresponding cutting parameters are shown in Table 1.
Experimental results
Three alternative ANN–TLBO hybrid models are created using the experimental data from Table 1. Model 1 is created to map the cutting parameters and surface roughness, while model-2 and model-3 are created to map overall vibrations and sound characteristics to predict surface roughness, respectively. The model-2 and model-3 contained single data, as shown in Table 1, which resulted in model prediction errors as high as 25%. To solve the aforementioned issue, the maximum amplitudes at associated frequencies are documented and displayed in Table 2 for each experimental vibration data set. The graphs between the amplitude and frequency of many tests are superimposed. To plot the graphs, the pattern has been followed, as it can involve maintaining the first two cutting parameters constant and changing the third parameter. After evaluating the results, it is noticed that the greater amplitude peaks are observed at frequencies of 411.648, 828.416, and 1644.584 Hz with increasing speed. Similar amplitude peaks are observed at different frequencies 411.648, 601.089, and 1202.176 Hz at varied feed rate, and amplitude peaks are observed at different frequencies at varied depth of cut is 411.648, 828.416, and 1149.95 Hz, respectively. The largest amplitudes and their related frequencies are tabulated, and the data is utilized to develop the hybrid model-2.
Average error = 14.520.
RMSE = 0.154.
$ {R}^2 $ = 0.885.
The hybrid model-3 is developed using the mean, standard deviation, skewness, and kurtosis values that are calculated for each experiments sound characteristics and are shown in Table 3. The following Eqs. (1)–(4) are used to calculate average values of sound characteristics used for prediction of surface roughness.
where $ \overline{X} $ is the sum of all the values, and N is the number of values in the sample.
where $ {x}_i $ is each value in the sample, $ \overline{x} $ is the sample mean, and N is the number of values in the sample.
where n is the sample size, $ {x}_i $ is the ith observation in the dataset, $ \overline{x} $ is the sample mean and $ \sigma $ is the sample standard deviation.
where n is the sample size, $ {x}_i $ is the ith observation in the dataset, $ \overline{x} $ is the sample mean, and $ \sigma $ is the sample standard deviation.
Average error = 3.781 %.
RMSE = 0.048.
$ {R}^2 $ = 0.988.
Optimization of neural network models
Artificial neural network (ANN)
An artificial neural network is a simplified nonlinear computational and mathematical model that is able to solve many engineering problems, including modeling, and prediction of experimental values Kottala et al. (Reference Kottala, Ramaraj, BS, Vempally and Lakshmanan2022). Nowadays, neural networks have become the most popular technique to predict experimental outcomes and show comparatively better performance than the existing traditional methods. The ANN structure consists of an input layer, an output layer, and hidden layers. The number of neurons present in the input layer and output layer is equal to the number of considered input and output parameters, respectively. Typically, a neural network contains processing elements connected via weighted interconnections. Each processing element receives input signals via weighted incoming connections Kumar et al. (Reference Kumar, Balasubramanian, Kumar, Bharat Kumar and Cheepu2022). Mikolajczyk and Olaru (Reference Mikolajczyk and Olaru2015) performed regression analysis for practical modeling is presented in the paper, along with its uses and drawbacks. Regression analysis offers a good mathematical model, but choosing the right model requires a thorough understanding of the phenomena. The relative error can be used to measure the correctness of a model, as neural networks provide a large adjustment range but lack information on model coefficients or factor importance. Neural network extrapolation proved to be a powerful tool for assessing quality beyond experimental data, and this capacity was investigated further. Kara et al. (Reference Kara, Karabatak, Ayyıldız and Nas2020) studied cutting parameter effects on surface roughness and tool wear in AISI D2 cold work tool steel with different heat treatments using ceramic cutting tools. They employed an ANN model for surface roughness prediction, achieving high accuracy (R 2 > 0.97, RMSE < 0.07). The study highlights the influence of deep cryogenic processing on material hardness and demonstrates the ANN’s strong learning capacity for surface roughness estimation.
A suitable learning method was adopted to train the network structure by changing the weights and bias of every neuron. The training process continues until it reaches the lowest root mean square error (MSE). By varying the weights and biases of the network will reduce the error between the predicted and desired values. The following Eq. (5) is effectively utilized to create the network structure.
Present ANN structure, the input neuron receives the total information from the input data i.e., $ {X}_i $ . Equation (5) $ {W}_{ij} $ represents the connection weight from the input layer to the hidden layer and $ {b}_j $ is the bias of each hidden neuron. Whereas $ {W}_{jk} $ and $ {b}_k $ denotes weight connections between the hidden layer and output layer and bias respectively.
The predicted output of each output neuron ( $ {O}_k $ ) can be calculated by using the above Eq. (6). The Tansig activation function is chosen between the input and hidden layer whereas the Purelin activation functions is used for the output layer. The number of neurons present in the hidden layer plays a vital role in the predictability of the network. If too few neurons in the hidden layer may lead to less precise outcomes, too many neurons will not give fair results. So, it is required to optimize the number of neurons in the hidden layer. The number of neurons can be determined by using the trial-and-error method. The optimum neurons are calculated by using the following Eq. (7) (Balasubramanian et al., Reference Balasubramanian, Ravi Kumar, Sathiya Prabhakaran, Jinshah and Abhishek2022). The learning rate function in this hybrid neural network is regarded as fixed and has a value of 0.001. Freed forward neural networks that are optimized with the aid of the TLBO algorithm eliminate the sensitivity analysis of the learning rate function. Independent of learning rate function, TLBO optimizes the weights and bias [19, 21].
To improve the accuracy of outcomes, it is necessary to normalize the input data (cutting parameters). This normalization can be used to improve the accuracy as well as reduce the convergence time. The input and output data are normalized within the range of 0–1 for cutting parameter as data is diverse. The data normalization can be calculated using the following Eq. (8) ( Kottala et al., Reference Kottala, Chigilipalli, Mukuloth, Shanmugam, Kantumuchu, Ainapurapu and Cheepu2023).
Teaching learning-based optimization (TLBO) algorithm
Teaching learning-based optimization (TLBO) is the most popular meta-heuristic approach in recent years and was proposed by Rao et al. (Reference Rao, Savsani and Vakharia2012). Compared to other stochastic searching algorithms, TLBO has advantages like higher accuracy, simplicity in structure, and quicker convergence. TLBO mainly comprises two parts, i.e., the teacher phase and the learner phase. In this algorithm, the ‘Teacher phase’ mode means learning from the teacher, whereas the ‘learner phase’ means learning from communication between the learners. The teacher phase and learner phase are well described in the below sub-sections Teacher phase and Student/learner phase.
Teacher phase
The teacher phase is the preliminary stage of the TLBO algorithm where the teacher shares knowledge with the students based on the normal distribution function as mentioned in Eq. (9) below and the schematic representation of the TLBO is shown in Figure 2.
where $ {\sigma}^2 $ , μ represents the variance and mean of the sample function, respectively.
The students gained knowledge from the teacher and enhanced their average knowledge level by interacting with the teacher. In the teacher phase, for a specified initial population, calculate the objective function value. After that, evaluate the mean value of all individuals, the best solution is achieved. If the best solution is better than the previous one, then it is stored as the best solution. The new solution can be determined by the following Eq. (10).
where ‘r’ is denoted as random number and range of selection of 0–1, $ {X}_{\mathrm{Teacher}} $ means obtained results from the teacher, $ {T}_{\mathrm{f}} $ is the teaching factor which is randomly taken from 1 to 2.
The teaching factor ( $ {T}_{\mathrm{f}} $ ) value cannot be set by the user and this parameter determined by the algorithm using the above Eq. (11).
Student/learner phase
In the learner phase, the learner’s knowledge is increased by two processes: initially, by the teacher’s input and next, by interaction among the neighborhood learners. These learners communicate with each other and upgrade their knowledge with the help of discussions between themselves. Whoever has more knowledgeable student will transfer knowledge to the less knowledgeable student. After certain iterations, the all less knowledgeable students gained more knowledge interacting with them. As a result, the final outcome of the generated population is better than the initial population. The following Eq. (12) is used to evaluate the performance of the learner by means of its fitness value.
where $ {X}_i $ , $ {X}_j $ are the randomly selected individuals in the learner phase, $ {X}_{\mathrm{new},i} $ is the new solution after the learner phase and ‘r’ denotes random number between 0 and 1.
ANN–TLBO
Integration of the TLBO algorithm to neural network was suggested for current research work, in order to overcome the limitations of conventional ANN architecture. The major reason for implementing the TLBO algorithm to ANN was able to determine the optimal solution with minimum computational cost. This hybrid TLBO-ANN is used to train the experimental dataset, to achieve the optimal solutions for the weights and biases, which can be used to reduce the MSE in a short span of period. These selected parameters are progressively updated until they reaches the convergence criterion. The main objective function of the TLBO is to minimize the MSE. The working of the proposed hybrid algorithm is shown in Figure 3. The following Eqs. (13) and (14) are used to evaluate the performance of the hybrid ANN–TLBO algorithm. In the TLBO algorithm, there are mainly two parameters population size; and the number of iterations will decide the accuracy of the algorithm. Using a trial-and-error approach, these control parameters are set to fixed until they obtain the lowest MSE.
Models Interpretation
Cutting parameters based hybrid model
Due to the numerous intricate interactions between the cutting parameters, the connection between cutting parameters and surface roughness is not always linear. To overcome the non-linearity, an ANN-TLBO hybrid model is developed to predict surface roughness. The hybrid model consists of three parameters, namely the number of hidden neurons ( $ {H}_o $ ), population size ( $ {n}_{\mathrm{pop}} $ ), and maximum iterations (Max It), that need to be determined to achieve the best predictions. The number of hidden neurons is calculated based on Eq. (7) and tested with a variance of ±5 of the optimal hidden neurons. The hybrid model is trained and tested by keeping the number of hidden neurons (ranging from 2, 3, 4…‥12) constant, correspondingly varying the population size (ranging from 25, 50, 75…‥ 275) and maximum iterations (ranging from 100, 200, 300……1100). The MSE is calculated for each neuron in order to determine the optimal number of hidden neurons. The number of hidden neurons with the lowest MSE is considered the optimal number of neurons for the hybrid model. After finding the optimal hidden neuron, population size is kept constant by varying the number of hidden neurons and maximum iterations, respectively. Similarly, the above procedure is repeated by keeping the maximum number of iterations (Max It) constant. The results of optimal hidden neuron ( $ {H}_{\mathrm{o}} $ = 6), population size ( $ {n}_{\mathrm{pop}} $ = 125), and Max It = 700. As the algorithm continues its iterations, it endeavors to enhance the solution by adjusting the candidate solutions in the population. As time progresses, the cost (or fitness) function value tends to decrease in a gradual manner. Consequently, there is an overall downward trend in the optimal cost as iterations proceed.
This study followed a meticulously approach called the “Leave-One-Out Cross-Validation” (LOOCV) method of optimization. In LOOCV, the dataset is repeatedly divided into a training set that contains all data points except one and a test set that only contains that one missing data point (Kundu et al. Reference Kundu, Luo, Qin, Cai and Liu2022, Horňas et al, Reference Horňas, Běhal, Homola, Senck, Holzleitner, Godja, Pásztor, Hegedüs, Doubrava, Růžek and Petrusová2023). To evaluate the model’s performance more than once, this procedure is repeated for each data point in the dataset. The outcomes are then averaged or otherwise compiled to determine the model’s overall performance. LOOCV is often used to assess the predictive power and generalization ability of machine learning models when the dataset is limited. The above method is provided in supplemantary data file.
The scatter plot is drawn between predicted and measured roughness over the number of experiments and is shown in Figure 4. The variation between the predicted and measured roughness is shown graphically. There is a significant correlation between the predicted and measured roughness. If the data points are close to each other and form a tight cluster, it indicates that there is a strong relationship, whereas if the data points are widely dispersed, it suggests that there is little correlation between the two variables.
The RMSE and R 2 are used to evaluate the performance of the model, as shown in Figure 5. The line diagram shows the relationship between the neurons with their corresponding RMSE and R 2. This shows that neuron 6 is the most accurate and precise neuron, with the lowest RMSE value of 0.068 and the highest R 2 value of 0.993 compared to other neurons. The low RMSE indicates that predicted values are close to the actual values, while the high R 2 value indicates that the model explains a large portion of the variance in the data. The empirical formulas for calculating RMSE and R 2 are given in Eqs. (13) and (14), respectively.
The above graph shown in Figure 6 indicates the neuron 6 curve has the lowest percentage error when compared to other neurons. This indicates that neuron 6 is the optimal neuron among all the neurons tested. The graph indicates optimal hidden neurons as ( $ {H}_{\mathrm{o}} $ =6), population size ( $ {n}_{\mathrm{pop}} $ = 125), and Max It = 700. The RMSE, correlation coefficient (R 2), and MEP values obtained with these algorithms for model-1 are shown in Tables 4 and 5.
Vibrations-based hybrid model
As mentioned earlier in experimentation, the overall vibration data is used for the vibration-based hybrid model development, and the model prediction error percentage is high. The graphs are drawn and superimposed between amplitude and frequency by maintaining the first two cutting parameters constant and changing the third. After evaluating the graphs, it is possible to conclude that the greater amplitude peaks are observed at frequencies 411.648, 601.089, 828.416, 1149.95, and 1644.584 Hz. The frequencies and their related amplitudes are tabulated in Table 2, and the data is utilized to develop the hybrid model 2. AMP-1 in Table 2 indicates the amplitude of vibration at a frequency of 411.648 Hz; similarly, AMP-2 indicates the amplitude of vibration at a frequency of 601.089 Hz, and so on.
The scatter plot is drawn between predicted and measured roughness over the number of experiments and is shown in Figure 7. The variation between the predicted and measured roughness is shown graphically. There is a significant correlation between the predicted and measured roughness. If the data points are close to each other and form a tight cluster, it indicates that there is a strong relationship, whereas if the data points are widely dispersed, it suggests that there is little correlation between the two variables.
The RMSE and R 2 are used to evaluate the performance of the model as shown in Figure 8. The line diagram shows the relationship between the neurons with corresponding RMSE and R 2. This shows that neuron 10 is the most accurate and precise neuron with the lowest RMSE value of 0.154 and the highest R 2 value of 0.885 compared to other neurons. The low RMSE indicates that predicted values are close to the actual values, while its high R 2 value indicates that the model explains a large portion of the variance in the data.
The below graph shown in Figure 9 indicates the neuron 10 curve has the lowest %error when compared to other neurons. This indicate that the neuron 10 is the optimal neuron among all the neurons tested. The graph indicates optimal hidden neuron as ( $ {H}_{\mathrm{o}} $ =10), population size ( $ {n}_{\mathrm{pop}} $ = 200), and Max It = 800. The RMSE, correlation coefficient (R 2), and MEP values obtained with these algorithms are shown in Tables 6 and 7.
Sound characteristics based hybrid model
This section discusses the performance studies of TLBO-trained ANN structure for sound characteristics. This hybrid neural network provides optimized weights and biases, which are able to reduce the error function in a short span of time. These weights and biases are consecutively changing until they reach the convergence criterion. As discussed in earlier sections, the optimized ANN structure is obtained by changing controlling factors such as the number of hidden neurons, population size, and number of iterations. A smaller population size may lead to convergence towards the global solution, whereas a larger population size takes more time to converge the solution.
The sensitivity test has been performed for a sound characteristics-based hybrid model to find the optimal value of population size. This sensitivity test was performed on various population sizes ranging from 25 to 275 with a step size of 25. From Figure 10, it is noticed that the ANN–TLBO algorithm gives better results and takes more time to converge the solution, and more iterations are needed when running at a smaller population size.
The global best optimum is achieved at a population size of 125 with minimum computational cost. In the same way, a sensitivity test was conducted for different numbers of iterations at the obtained optimal population size of 125. This sensitivity test also reveals that the MSE value decreases with an increase in the number of iterations. The test has been performed with various iteration numbers ranging from 100 to 1100 with step size 100. As Figure 12 shows the iteration number of 700 is chosen as another optimal parameter for ANN–TLBO structure. Afterward, there is no massive difference observed in MSE when iteration increases from the optimal value. The RMSE, correlation coefficient (R 2), and MEP values obtained with these algorithms are shown in Tables 8 and 9.
Result
Hybrid model validation: The hybrid neural network optimizes weights through techniques like GA, PSO, ant colony, and BAT, requiring sensitivity analysis by adjusting parameters, including population size, crossover rate, mutation rate, and criteria. To reduce the computational load, the TLBO algorithm is fine-tuned for enhanced performance with reduced sensitivity to parameters, ultimately achieving superior efficiency and performance as mentioned by (Togan, Reference Togan2012). Examining the impact of machining parameters (MPs) on vibration signals (VS), and surface roughness (SR) in aluminum alloy CNC machining, the ANN models show outstanding correlation factors (R values 0.97–1), providing insights for improving CNC machining efficiency. A sensitivity analysis fine-tunes the optimal hybrid neural network, linking performance to hidden layer configuration, and neuron count, with the neural independence test revealing optimal counts of 6 and 10 hidden neurons for model 1 and the remaining models, respectively.
The sensitivity analysis: The developed hybrid models (i.e., models 1, 2, and 3), the error percentages for each model are depicted in Figure 13. Examining the graph presented in Figure 13, it becomes evident that the vibration-based model exhibits a relatively high error rate, approaching 33%, with an average error of approximately 14.520 when predicting surface roughness. Conversely, the cutting parameters-based model displays a more modest average error percentage of 4.746. However, the standout performer is the sound-based surface roughness model, boasting an impressive average error rate of 3.76. This compellingly demonstrates that the sound-based model outperforms the other two models in terms of its predictive accuracy for surface roughness.
Comparison with recent literature: nevertheless, the performance assessment of the developed sound-based hybrid model is compared to recent studies and is listed in Table 10. From the studies presented in Table 10, it is evident that the newly developed sound-based hybrid neural network outperforms the others, achieving an impressive accuracy rate of 96%. This finding underscores the effectiveness of our sound-based hybrid neural network for accurately predicting surface roughness in face-milled components.
The sound measurements and model-3 outperform vibrations and cutting parameters. Numerous studies have demonstrated the efficacy of sound measures for detecting bearing defects, showcasing their ability to identify flaws before they manifest as visible vibrations post-failure (Tandon and Choudhury, Reference Tandon and Choudhury1999). The sensitivity of sound measurements, capturing high-frequency data, enables early defect detection by extracting modulations correlated to machine fault frequencies. The study based on sound measurements can detect minute fluctuations and micro-level surface noise, and suggest potential enhancements in roughness assessment prediction skills.
IoT interface/mobile interface
ANN–TLBO is used to develop a model for surface roughness prediction. Each neuron’s weights and biases are collected, and using those values, an equation for surface roughness is developed. The mobile app described in the paper is not directly functioning as a traditional IoT system in terms of machine-to-mobile data transfer. However, the purpose of the mobile app is to serve as an interface for open architectural machine tools. With the availability of open-architecture machine tools, one can seamlessly integrate this mobile interface into the systems, effectively serving as an IoT bridge between the machine and the mobile app. By interfacing with such machines, it becomes possible to establish a direct channel for data transfer from the machine to the mobile device. In this way, the mobile app facilitates the interaction between the user and the machine, allowing real-time data sharing and control. The mobile application is developed using FLUTTER software, which acts as a creative maestro conducting a pixel symphony. It expertly fuses the art of design with the science of coding, enabling developers to build visually appealing and engaging user experiences. Due to its adaptable performance and cross-platform capabilities, Flutter bounces across platforms like a digital chameleon, easily merging with smartphones, tablets, web browsers, and more. It supports the spirit of flexibility and provides developers with the ability to let their imaginations run wild and gracefully and skilfully accomplish their software objectives. The developed mobile interface has text fields for input and output that can be filled out manually. The roughness is calculated using the surface roughness equation based on the user’s inputs, and the result values are displayed on the mobile interface. One of the numerous advantages of this approach is that it provides a user-friendly interface that can be used to rapidly and easily predict surface roughness for a given set of input data. An ANN–TLBO algorithm can effectively and accurately predict surface roughness, and the mobile interface makes it simple to access and utilize the model from a mobile device. Overall, in a wide range of industries, including manufacturing and engineering, the ability to predict surface roughness is essential for achieving the highest possible product quality and performance. The prediction model has become more accessible and simpler to use because of the development of a mobile interface, making it a useful tool for field engineers and technicians.
In order to predict and display the surface roughness online used the flutter platform. An equation derived to predict the surface roughness from the ANN–TLBO hybrid model based on the weights and bias is shown below in Eq. (15). Where S 1 is mean, S 2 is standard deviation, S 3 is Skewness, and S 4 is Kurtosis values of sound characteristic.
where H 1 to H 10 are calculated using the following Eqs. (16)–(26).
From the earlier discussion, it is clearly identified that the sound characteristic data-based hybrid neural network (i.e., model 3) shows better performance as compared to other developed models 1 and 2. So, the authors developed the mobile app interface for model 3 as shown in Figure 14. The sound characteristic data of the machined samples are given as input data for the developed mobile app input interface (Figure 14a). The application performance results after entering input data and model predicted values are displayed in the output interface as shown in Figure 14 b. Therefore, the developed mobile app interface reduces the cost and labor effort and is effectively used to predict the surface roughness of the machined samples.
Conclusion
This study, developed and analyzed three hybrid models aimed at forecasting surface roughness during the machining process. Leveraging ANN in combination with TLBO, these models consider cutting parameters, vibration data, and sound characteristics as crucial input elements.
-
• Key findings and optimization parameters:
Model-1: Cutting parameters-based model for surface roughness prediction. the architecture is designed with six hidden neurons (H o), a population size (n pop) of 125, and a Max It of 700. Model-2: vibration-based model for surface roughness prediction. the architecture is designed with 10 hidden neurons (Ho), a population size (n pop) of 200, and a Max It of 800. Model-3: sound characteristics-based model for surface roughness prediction. the architecture is designed with 10 hidden neurons (H o), a population size (n pop) of 125, and a maximum iteration (Max It) of 1100.
-
• Model evaluation and comparison:
Training set of 26 points and a separate test set of one point created using “Leave-One-Out Cross-Validation” (LOOCV). Model performance metrics reveal excellent accuracy: Model 1 (cutting parameters) with RMSE 0.068, R2 0.9931; Model 2 (vibrations) with RMSE 0.15492, R2 0.88536; Model 3 (sound characteristics) excelling at RMSE 0.04998, R 2 0.98417. The model considered the best is the one with an R 2 close to 1 and an RMSE close to 0. In this instance, Model 3 demonstrated superior results compared to the other two models.
-
• Models percentage error analysis and superiority:
Sound-based Model 3 demonstrated exceptional accuracy (average error percentage: 3.77%), outperforming Model 2 (14.52%) and Model 1 (4.75%). Comparative analysis with recent studies showcased an impressive 96% accuracy for the sound-based hybrid model, establishing its superiority.
-
• IoT mobile interface development:
An IoT mobile interface using the flutter platform was developed for practical usability. Users can input sound characteristics and receive real-time predictions of surface roughness. Catering to field engineers and technicians, the interface enhances accessibility and usability.
This study validates the effectiveness of hybrid ANN–TLBO models for accurate surface roughness prediction in machining processes. The sound-based model, in particular, emerges as a promising tool for various industrial applications. The development of a user-friendly mobile interface enhances the accessibility and usability of these predictive models, making them valuable assets in the field of manufacturing and engineering.
Future scope of work
In our upcoming work, we intend to broaden the model’s applicability to include a larger range of cutting circumstances, including various machining procedures and cutting instruments. We seek to increase the model’s adaptability by performing in-depth research and validation trials, making it suitable for a number of circumstances frequently seen in machining operations. In order to provide insightful analysis and precise surface roughness forecasts in a variety of industrial scenarios, we are eager to investigate the possibilities of our model in various cutting circumstances and processes.
Supplementary material
The supplementary material for this article can be found at http://doi.org/10.1017/S0890060424000192.
Author biographies
Dr. R S Umamaheswara Raju is an Associate Professor in the Department of Mechanical engineering at The M V G R College of Engineering (A), Vizianagaram, AP, India. Perused his Ph.D. from JNTUK, Kakinada, Andhra Pradesh, India in development of performance-based enhancement systems for open architectural controlled CNC machine tools. Published his work in 15 peer reviewed journals, published 2 patents, and attended several conferences.
Dr. Ravi Kumar Kottala is an assistant professor at M V G R College of Engineering (A), Vizianagaram, specializing in ANSYS Workbench, APDL, Creo 2.0, MATLAB Simulink, and various mechanical and manufacturing concepts. He is proficient in Microsoft Word, Python, battery thermal management, Solar PV installation, leadership, and Blender. Dr. Kottala holds a postgraduate degree from the National Institute of Technology Tiruchirappalli and completed his Ph.D. from the same institution. He has authored several international journals in his field.
Dr. B Madhava Varma is an Associate Professor in the Department of Mechanical Engineering at Maharaj Vijayaram Gajapathiraj College of Engineering, located in Chintalavalasa, Viziangaram, Andhra Pradesh, India. He holds a Ph.D. degree from JNTUA Ananthapuramu, Andhra Pradesh, India. His research interests primarily focus on investigating the effects of alternate fuels on various aspects of Internal Combustion Engines (IC Engines), including vibration, noise, combustion, and performance. Additionally, he is involved in research related to the condition monitoring of machines and engines. He has successfully completed a minor research project funded by the University Grants Commission (UGC) in New Delhi, India. The project focused on engine vibration analysis utilizing biofuels. This indicates his commitment to exploring sustainable and alternative energy sources for engines while addressing environmental concerns.
Mr. Palla Krishna is a student in the Department of mechanical engineering(2020-23) at the MVGR College of Engineering (A), Vizianagaram, AP, India. Perused many certificate courses on Artificial intelligence, machine learning, Manufacturing technology and Origin pro. Working on the projects under the guidance of Dr. R S Umamaheswara Raju.
Dr. Praveen Barmavatu currently serves as an assistant professor at the Department of Mechanical Engineering, Faculty of Engineering, Universidad Tecnológica Metropolitana, located at Av. José Pedro Alessandri 1242, Santiago, Chile. He completed his Diploma at Government Polytechnic College and obtained his B.Tech and M.Tech degrees from JNTU. Additionally, he earned a Doctor of Philosophy degree from Shri JJT University. Dr. Barmavatu has contributed significantly to research, with publications in various international journals and patents to his credit.