Analysis of Carbon Footprints and Surface Quality in Green Cutting Environments for the Milling of AZ31 Magnesium Alloy

: This investigation delves into the effectiveness of employing vegetable-based cutting ﬂuids and nanoparticles in milling AZ31 magnesium alloy, as part of the pursuit of ecologically sustainable manufacturing practices. The study scrutinizes three different cutting environments: (i) dry cutting; (ii) minimum quantity lubrication (MQL) with rice bran oil as the base oil and turmeric oil as an additive; and (iii) MQL with rice bran oil as the base oil, and turmeric oil and kaolinite nanoparticles as additives. Fuzzy logic was implemented to develop the design of experiments and assess the impact of these cutting environments on carbon emissions, surface quality, and microhardness. Upon conducting an analysis of variance (ANOVA), it was determined that all the three input parameters (cutting environment, cutting speed, and feed) greatly affect carbon emissions. The third cutting environment (MQL + bio-oils + kaolinite) generated the lowest carbon emissions (average of 9.21 ppm) and surface roughness value (0.3 um). Conﬁrmatory tests validated that the output parameters predicted using the multiobjective genetic algorithm aligned well with experimental values, thus afﬁrming the algorithm’s robustness.


Introduction
Humanity is currently facing a substantial obstacle to achieving sustainable growth due to the rapid expansion of industries and the rising cost of resources.This, in turn, has resulted in an increase in carbon emissions, which poses a significant threat to the environment and exacerbates the challenges to achieving sustainable development [1].Carbon emissions are a significant contributor to climate change, with the burning of fossil fuels being the primary source of these emissions that also serves as the power source for industry.The release of carbon dioxide and other greenhouse gases into the atmosphere traps heat and causes global warming, resulting in a range of impacts such as sea level rise, more frequent and severe weather events, and changes to ecosystems and wildlife [2].In addition, carbon emissions can have health impacts on humans, particularly in areas with high levels of air pollution.The need to reduce carbon emissions and transition to more sustainable energy sources is crucial to mitigating these impacts and limiting the severity of climate change [3,4].
In the manufacturing industry, metal cutting operations are recognized as the prime contributor to carbon emissions, with power consumption, cutting fluid, tool material, and workpiece material being the main sources of emissions.Machining processes, such as milling and turning, are considered the most energy-intensive processes; they account for a significant proportion of the total power consumption, with their energy usage making up 75% of the total energy consumption in manufacturing.In numerical control machining operations, unit energy consumption ranges from 66 to 82 MJ/kg [5,6], further emphasizing the importance of energy conservation and emission reduction in this area.According to IEA studies, the manufacturing sector is responsible for about one-third of the usage of global energy and causes about 36% of global carbon emissions [1].Furthermore, the annual emissions of CO 2 and SO 2 from a CNC machine tool with a spindle power of 22 kW are comparable with the electricity consumption of 61 automobiles and 248 sport utility vehicles [7].Cutting fluids, which are utilized to cool and lubricate the cutting tool during machining, can generate a significant amount of carbon emissions through the use of synthetic or petroleum-based oils.Additionally, tool materials such as carbide and diamond can result in carbon emissions during their production, which can contribute to the overall carbon footprint of the machining process.Finally, workpiece materials such as steel, aluminum, and titanium can produce carbon emissions during production and processing.It is evident that undertaking research on the resource consumption, energy conservation, and emissions reduction for metal cutting processes is of paramount importance and ecological urgency.
One potential solution to address these issues is to eliminate the use of cutting fluids during machining, which is commonly known as dry machining.While dry machining is often viewed as an environmentally friendly option, it can lead to significant challenges due to the high friction between the tool and workpiece in the absence of lubrication during cutting.This can result in excessive heat generation, increased cutting forces, reduced tool lifespan, and a low-quality surface finish on the workpiece [8][9][10].Consequently, using a lubrication method is crucial in the machining process as it provides necessary cooling, lubrication, and removal of chip debris from the tool-chip contact.Wet machining is often preferred for difficult-to-machine materials and high-speed cutting approaches due to the high temperatures and cutting forces generated during the process [11].Proper cutting fluids can help mitigate these challenges and achieve a better surface quality of the machined parts [12,13].However, the commonly used low-cost mineral oils, which are nonbiodegradable, have better friction-reducing characteristics.They account for about 16% of total manufacturing costs and may increase to 30% when working with difficultto-handle alloys [14].Additionally, disposing of these fluids incurs high costs due to their nonbiodegradable composition and labor-intensive pre-disposal treatment, which can be up to four times the acquisition cost in the United States and Europe [15].High disposal costs are a result of the cutting fluids' nonbiodegradable composition and the labor-intensive pre-disposal treatment.Various environmental organizations worldwide have imposed strict regulations on the disposal of used cutting fluids [16,17].
The use of mineral oil-based cutting fluids can have a negative impact on the environment and human health, as they can release harmful pollutants, such as volatile organic compounds (VOCs) and particulate matter, which can affect air quality.Furthermore, the combustion of mineral oil during machining can release substantial amounts of carbon dioxide and other greenhouse gases, which contribute to global warming.The presence of bacteria in cutting fluids is an additional concern as it may affect various aspects of the machining process, including emulsion stability, lubrication, pH content, corrosion inhibition, and human health [18,19].The use of chemical additives to prevent bacterial growth is often necessary, but it can delay or hinder the natural degradation of cutting fluids [20].Exposure to toxic mineral oils is linked to an increased risk of skin cancer in the workplace, underscoring the need to reduce the use of mineral oil in machining and explore more sustainable lubricants.As cutting fluids pose environmental and health risks, researchers explore methods to reduce their use, such as the minimum quantity lubrication technique (MQL).Garcia and Ribeiro [21] discovered a 50% improvement in tool life using MQL compared to dry end milling of Ti-6Al-4V alloys.Working on MQL, Liu et al. [22] concluded that air pressure and nozzle location has a direct effect on cutting force and cutting temperature.Similarly, Werda et al. [23] discovered that synthetic ester oil-assisted MQL is effective for the machined surface integrity.
To address the limitations of conventional cutting fluids, vegetable oils have been developed as an alternative due to their excellent lubrication qualities and ability to perform well in low temperatures [24].However, vegetable oils are also prone to poor oxidation stability.Several studies have been conducted to investigate the use of vegetable oils as base fluids for industrial lubricants, including sunflower oil [25,26], coconut oil [27], rice bran oil [28], and jatropha oil [29].Research carried out by Gonzaga et al. [30] shows that rice bran oil exhibits better stability compared to other vegetable oils, such as canola, sunflower, soybean, cottonseed, and maize oils.Rani et al. [31] discovered that rice bran oil contains natural antioxidants, which makes it less susceptible to wear than other vegetable oils.Rice bran oil's high oleic acid content (38.4 percent) increases its oxidation stability, and it has demonstrated superior properties in thermal, oxidative, physical, and tribological tests when compared to other oils [32].Various methods, such as epoxidation, additions, and esterification, have been employed to enhance the properties of vegetable oils [33].Turmeric, known for its anti-inflammatory properties due to its curcuminoids, flavonoids, and phenolic contents, is often used as a natural antioxidant.In this study, turmeric oil was utilized as a natural antioxidant additive to improve the performance of rice bran oil.
The discovery of nanopowders has revolutionized a vast array of industries.In the field of tribology, nanoparticles such as ZnO and CuO have been added to vegetable oils such as soybean and coconut to improve their performance [34][35][36].Recently, halloysite nanotubes and kaolinite clay nanopowder have been incorporated into biodegradable cutting fluids.Halloysite and kaolinite are both hydrated aluminum silicates with dioctahedral 1:1 layer structures, although halloysite contains more water contents [37][38][39][40].These nanoparticles are commonly found in a spheroidal shape, although they can also exhibit tubular or platy forms [41].Recently, kaolinite has been identified as having the remarkable ability to sequester carbon dioxide (CO 2 ) from the atmosphere.By incorporating kaolinite into cutting fluids during machining, it may serve as a sustainable and ecofriendly solution for mitigating CO 2 emissions in the manufacturing sector.Kaolinite's CO 2 -absorption capacity is attributable to its large surface area and unique crystal structure, which enables it to capture and retain CO 2 molecules.Kaolinite was chosen as a substitute for halloysite in this study due to its wider availability and lower cost [42,43].
The above-cited literature highlights a significant research void concerning the viability of utilizing bio-oils and kaolinite as potential solutions to curb carbon emissions in the machining industry, as well as to better machining characteristics.This gap in knowledge necessitates further investigation into the efficacy of these sustainable alternatives to cutting fluids, particularly their tribological characteristics and carbon capture capabilities.This study could shed light on the potential of using these materials as ecofriendly alternatives to traditional cutting fluids, leading to a significant reduction in carbon footprint and machining gain in the manufacturing industry.In this study, three cutting environments, namely (i) dry cutting, (ii) minimum quantity lubrication (MQL) with rice bran oil as the base oil and turmeric oil as an additive, and (iii) MQL with rice bran oil as the base oil and turmeric oil and kaolinite (nanoparticles) as additives, were investigated for milling of AZ31 magnesium alloy.Fuzzy logic was utilized to develop the design of the experiments.This research aims to evaluate the impact of kaolinite and bio-oils on the carbon footprint and machining performance of the cutting process in terms of surface roughness (SR) and microhardness (HV).The two machining responses are considered from the perspective of achieving better osteointegration characteristics of implants, as the selected workpiece material AZ31 magnesium alloy is widely used for bioimplant applications.
Section 2 of the paper shall elaborate on the intricate details of the materials and methods used in this study.Following this, Section 3 shall delve into an extensive analysis of the results and an insightful discussion.Finally, the paper shall culminate with Section 4, where conclusions will be drawn and recommendations for future research shall be presented.

Materials and Methods
Sustainability in machining involves a holistic approach that considers the environmental impact of all aspects of the machining process, from material selection to cutting environment, and from disposal of cutting fluids to minimizing of carbon emissions.Therefore, a conscious selection of AZ31 magnesium alloy as the workpiece material during this study was made due to its desirable properties such as strength-to-weight ratios, stiffness/stability ratios, biodegradability, and low environmental impact [44,45].The alloy is commonly used in industries such as the automotive and aerospace industries, though it has become a favorable choice for bioimplant applications due to its similar mechanical properties to human bone.Compared to other commonly used bioimplant metals such as titanium alloys and stainless steel (4.47 g/cm 3 and 7.8 g/cm 3 , respectively), magnesium alloys have lower densities, ranging from 1.7 to 1.9 g/cm 3 [46].The chemical composition of the AZ31 alloy can be found in Table 1, obtained from X-ray diffraction (XRD) method using X-ray diffractometer (EQUINOX 2000, Inel Inc., Stratham, NH, USA) with Co Kα source at a 111 • diffraction angle, and Table 2 provides information on its mechanical and thermal properties.To conduct the experiments, a rectangular plate of the alloy measuring 160 mm × 60 mm × 16 mm was prepared for end milling of a slot (60 mm × 4 mm × 3 mm) using a CNC machining center (MCV 600, Long Chang Mechanical Industrial Co., Ltd., Taipei, Taiwan) [9,10].During the cutting process, a four-flute end mill cutter with a 4 mm diameter, coated with titanium aluminum nitride (TiAlN), was used, and a new cutter was used for each experiment condition.The experiments in this study were conducted using the robust fuzzy logic DOE technique [47].After conducting a thorough literature review [9,10,48] and preliminary experimentation, three control variables were chosen at three levels, namely the cutting environment, the cutting speed (CS), and the feed (F), as presented in Table 3.Given the bio-compatibility of AZ31, the study focused on two machining responses, surface roughness (SR) and microhardness (HV), while taking into account carbon footprints as prime response parameter.To analyze the carbon footprint, milling was performed on magnesium alloy AZ31 under three different cutting environments: (i) dry machining, (ii) minimum quantity lubrication (MQL) using rice bran oil as the base oil and turmeric oil as an additive, and (iii) MQL using rice bran oil as the base oil and turmeric oil and kaolinite (nanoparticles) as additives.The internal mixed MQL method with a flow rate of 25 mL/h, 45 • nozzle angle, and 30 mm standoff distance was used, with a nozzle internal diameter of 1.78 mm.For the cutting fluid preparation, the magnetic stirrer (CJJ78-1, Jiangsu Jinyi Instrument Technology Co., Ltd., Changzhou, China) was used to mix the rice bran oil, the turmeric oil, and the kaolinite with the 10 min stirring time.The properties of the oils and nanopowder used in the minimum quantity lubrication (MQL) cutting environment are shown in Table 4, while Figure 1a depicts the specifications of the three cutting environments employed in the experimental research.To measure carbon emissions during machining, a CO and CO 2 meter (Testo 315-3, Testo SE & Co., Titisee-Neustadt, Germany) was used.The meter was placed inside the machining chamber (see Figure 1b) to ensure that only carbon emissions from the machining process were measured, excluding those from the external environment.The meter is designed for parallel measurement of CO and CO 2 in ambient air and is compliant with European standard EN 50543 [49].In addition, the CNC machining center used for the experimentation was operated exclusively within the laboratory to prevent contamination from external carbon emissions.The surface roughness of each slot was measured in terms of Ra using a surface texture meter (Surtronic S128, Taylor Hobson, Leicester, UK) with a 4 mm evaluation length and 0.8 mm cutoff length.Three readings were taken across the length of the slot (i.e., start, center, and end of the slot), and the average value is presented in this subsequent section.
The microhardness of the machined samples was measured using a microhardness tester (HMV2, Shimadzu Corporation, Kyoto, Japan).The samples were cut from the end of the milled slot using a wire-cut electric discharge machine because this position was expected to exhibit a more aggressive effect of tool wear.The microhardness values were measured perpendicular to the machined surface in the feed direction using 25 g of test force and 10 s of measuring time.Four indentations were made, with the first three points spaced 50 µm apart and the fourth point located 250 µm from the machined surface.To determine the significant input factors, a parametric effect analysis and an analysis of variance (ANOVA) were conducted at a 95% confidence level using MiniTab 2021.Given that higher microhardness is desirable for bioimplant applications to enhance wear resistance, and lower surface finish is needed for corrosion resistance, a genetic algorithm (GA) technique was utilized to optimize these outputs using R2022b MATLAB.To measure carbon emissions during machining, a CO and CO2 meter (Testo 315-3 Testo SE & Co., Titisee-Neustadt, Germany) was used.The meter was placed inside th machining chamber (see Figure 1b) to ensure that only carbon emissions from the machin ing process were measured, excluding those from the external environment.The meter designed for parallel measurement of CO and CO2 in ambient air and is compliant wit European standard EN 50543 [49].In addition, the CNC machining center used for th experimentation was operated exclusively within the laboratory to prevent contaminatio from external carbon emissions.The surface roughness of each slot was measured in term of Ra using a surface texture meter (Surtronic S128, Taylor Hobson, Leicester, UK) with 4 mm evaluation length and 0.8 mm cutoff length.Three readings were taken across th length of the slot (i.e., start, center, and end of the slot), and the average value is presente in this subsequent section.
The microhardness of the machined samples was measured using a microhardnes tester (HMV2, Shimadzu Corporation, Kyoto, Japan).The samples were cut from the en of the milled slot using a wire-cut electric discharge machine because this position wa expected to exhibit a more aggressive effect of tool wear.The microhardness values wer

Results
To compare the carbon emissions and machining characteristics of AZ31 under different cutting environments, three sets of experiments were conducted with 27 test runs of slot milling.The experiments were replicated to ensure the accuracy and consistency of the results.The measurements of carbon emissions, surface roughness, and microhardness were taken carefully, and the results were recorded in Table 5.

Carbon Footprint
Measuring the carbon footprint of milling operations is essential for identifying sources of greenhouse gas emissions and evaluating the effectiveness of emission reduction strategies.The quantitative results of carbon emissions, obtained using the fuzzy logic technique, are presented in Table 5.To analyze the effects of different parameters on the carbon footprint, main effects plots were generated and depicted in Figure 2. The results show that the cutting environment has a decreasing linear trend on carbon emissions, while cutting speed (CS) and feed (F) exhibit increasing linear behavior.Furthermore, the carbon footprint was observed to decrease under the third cutting environment, which involved the use of MQL with rice bran base oil, turmeric oil, and kaolinite nanoparticles as additives.Table 5 and Figure 2 demonstrate that the minimum carbon emission (−29.2 ppm) was achieved with the use of MQL with rice bran base oil, turmeric oil, and kaolinite nanoparticles as additives at 40 m/min cutting speed (CS), while the highest carbon value (109 ppm) was observed in a dry environment at the same cutting speed.The analysis of carbon footprints conducted during this study indicates that the friction generated during the vertical milling of AZ31 magnesium alloy, when the carbide end mill cutter comes in direct contact with the workpiece, results in the production of heat [50][51][52].This heat causes oxidation of the carbide in the TiAlN-coated carbide end mill cutter, leading to the release of CO and CO 2 due to the presence of oxygen in the atmospheric air.In addition, carbon emissions during machining were also attributed to the surrounding air.The atmospheric air contains 417 ppm of carbon dioxide due to global warming and climate change.In this study, under dry cutting conditions, the primary source of carbon emission was found to be the tool material, i.e., carbide.In the MQL cutting environment, rice bran oil and turmeric oil were used as cutting fluids.These oils contain fatty acids and unsaturated double bonds, but they generate less CO 2 during the metal cutting process compared to mineral oil and kerosene oil, mainly because of their higher volatile temperature values.Rice bran and turmeric oils have volatile temperatures of 232 • C and 183 • C, respectively, while mineral oil and kerosene oil have volatile temperatures of 168.3 • C and 38 • C, respectively [28].It is believed that the vegetable oils prevent the TiAlN coating of the carbide end mill cutter from damage and also reduce the heat generation, resulting in fewer emissions being produced, as shown in Table 6.

Carbon Footprint
Measuring the carbon footprint of milling operations is essential for identifyin sources of greenhouse gas emissions and evaluating the effectiveness of emission redu tion strategies.The quantitative results of carbon emissions, obtained using the fuzzy log technique, are presented in Table 5.To analyze the effects of different parameters on t carbon footprint, main effects plots were generated and depicted in Figure 2. The resu show that the cutting environment has a decreasing linear trend on carbon emission while cutting speed (CS) and feed (F) exhibit increasing linear behavior.Furthermore, t carbon footprint was observed to decrease under the third cutting environment, whi involved the use of MQL with rice bran base oil, turmeric oil, and kaolinite nanoparticl as additives.Table 5 and Figure 2 demonstrate that the minimum carbon emission (−29 ppm) was achieved with the use of MQL with rice bran base oil, turmeric oil, and kaolini nanoparticles as additives at 40 m/min cutting speed (CS), while the highest carbon val (109 ppm) was observed in a dry environment at the same cutting speed.The analysis of carbon footprints conducted during this study indicates that the fr tion generated during the vertical milling of AZ31 magnesium alloy, when the carbi end mill cutter comes in direct contact with the workpiece, results in the production heat [50][51][52].This heat causes oxidation of the carbide in the TiAlN-coated carbide en mill cutter, leading to the release of CO and CO2 due to the presence of oxygen in t atmospheric air.

Incomplete combustion
Carbide + Oxygen CO produced        CO is unstable, so it undergoes complete combustion and produces CO2

Complete Combustion 2
Carbide + Oxygen CO produced       In addition, carbon emissions during machining were also attributed to the surroun ing air.The atmospheric air contains 417 ppm of carbon dioxide due to global warmin and climate change.In this study, under dry cutting conditions, the primary source Carbon emission (ppm)  To further analyze the effects of process parameters on carbon emissions of AZ31, a quantitative analysis of the process parameters was conducted using ANOVA with a confidence interval of 95% (α = 5%).The results are presented in Table 7, which shows that the three control variables, cutting environment, CS, and feed (F), are significant with a "p value" less than 0.05 and contribute 19.39%, 66.9%, and 7.5%, respectively.

Surface Roughness
Ensuring the surface quality of machined parts is crucial for their performance, and it can be measured both quantitatively and qualitatively.The quantitative results of average surface roughness (SR) obtained using the fuzzy logic technique are presented in Table 5.
To analyze the effects of different parameters on SR, main effects plots were generated, depicted in Figure 3.The results show that cutting environment and cutting speed exhibit a decreasing linear trend on SR, while feed (F) demonstrates a nonlinear behavior.Additionally, the surface finish was found to be improved under the third cutting environment, which involved the use of MQL with rice bran base oil, and turmeric oil and kaolinite nanoparticles as additives.Table 5 and Figure 3 demonstrate that the minimum surface roughness (0.3 µm) was obtained using MQL with rice bran base oil and turmeric oil and kaolinite nanoparticle additives at 56 m/min cutting speed (CS), while the highest SR value (0.9 µm) was observed in a dry environment at 40 m/min CS.
When it comes to surface roughness, the combination of MQL with biodegradable vegetable oils and kaolinite nanoparticles as a cutting fluid has shown to have excellent cooling and lubricating properties, leading to improved surface quality.Machining of AZ31 magnesium alloy is known to be hazardous due to its flammability during heat generation in the shear zone, but this issue has been addressed with the use of turmeric oil as an additive, which has antioxidant properties.Furthermore, it is widely acknowledged that friction occurring at the tool-workpiece interface is a major factor negatively affecting the surface quality of machined parts [53].In addition, the literature suggests that high surface roughness values are associated with small cutting speeds and high feed rates [54].Specifically, poor surface quality at low cutting speeds is attributed to the high tensile stresses generated by friction, while the presence of uncut metal is reported to cause high surface roughness values at high feed rates due to the increased distance between two successive tool runs [55].The results of this study are consistent with the aforementioned literature.
Machining with vegetable oils offers numerous advantages, mainly due to the presence of fatty acids that create a strong lubrication film between the tool and workpiece.This reduces friction and enhances antiwear properties due to the polar nature of the fatty acids.The resulting oiliness contributes to improved surface integrity of the machined component.Furthermore, vegetable-based cutting fluids have higher flash points than mineral oils, which reduces the risk of smoke formation and fire hazards during the machining process of AZ31 alloy.kaolinite nanoparticles as additives.Table 5 and Figure 3 demonstrate that the minim surface roughness (0.3 µm) was obtained using MQL with rice bran base oil and turm oil and kaolinite nanoparticle additives at 56 m/min cutting speed (CS), while the hig SR value (0.9 µm) was observed in a dry environment at 40 m/min CS.When it comes to surface roughness, the combination of MQL with biodegrad vegetable oils and kaolinite nanoparticles as a cutting fluid has shown to have excel cooling and lubricating properties, leading to improved surface quality.Machinin AZ31 magnesium alloy is known to be hazardous due to its flammability during h generation in the shear zone, but this issue has been addressed with the use of turm oil as an additive, which has antioxidant properties.Furthermore, it is widely ackno edged that friction occurring at the tool-workpiece interface is a major factor negativ affecting the surface quality of machined parts [53].In addition, the literature sugg that high surface roughness values are associated with small cutting speeds and high f rates [54].Specifically, poor surface quality at low cutting speeds is attributed to the h tensile stresses generated by friction, while the presence of uncut metal is reported cause high surface roughness values at high feed rates due to the increased distance tween two successive tool runs [55].The results of this study are consistent with the af mentioned literature.
Machining with vegetable oils offers numerous advantages, mainly due to the p ence of fatty acids that create a strong lubrication film between the tool and workpi This reduces friction and enhances antiwear properties due to the polar nature of the f acids.The resulting oiliness contributes to improved surface integrity of the machi component.Furthermore, vegetable-based cutting fluids have higher flash points t mineral oils, which reduces the risk of smoke formation and fire hazards during the chining process of AZ31 alloy.
After analyzing the effects of process parameters on SR of AZ31, a quantitative a ysis of the process parameters was conducted using ANOVA with a confidence inte Surface roughness (μm) After analyzing the effects of process parameters on SR of AZ31, a quantitative analysis of the process parameters was conducted using ANOVA with a confidence interval of 95% (α = 5%), and the results are presented in Table 8.The cutting speed was found to be significant with a "p value" less than 0.05 and contributed 30.10%.

Microhardness (Perpendicular to the Machining Surface at Distance of 50 um)
Table 5 presents the results of microhardness measurements taken perpendicular to the machining direction for all test runs under three cutting environments.Four points were recorded with a 50 µm interval starting from 50 µm depth beneath the machined surface.The microhardness values showed an increase under a depth of 50 µm compared to the bulk hardness (72 HV) in the second cutting environment (MQL with rice bran and turmeric oil).To analyze the effects of process parameters on microhardness, main effects plots were drawn, presented in Figure 4.As seen from the figure, the cutting environment and feed exhibit a nonlinear trend, while the cutting speed shows a decreasing linear behavior.The microhardness of the milled samples was measured perpendicular to the machining direction in all three cutting environments.Four measurement points were taken with a 50 µm interval, starting from a depth of 50 µm beneath the machined surface.The second cutting environment, which involved MQL with rice bran and turme oil, showed an increase in microhardness values below 50 µm depth compared to the bu hardness (72 HV).To analyze the effects of process parameters on microhardness, m effects plots were generated, shown in Figure 4. From Figure 4, it can be observed that t cutting environment and feed exhibit a nonlinear trend, while the cutting speed show decreasing linear behavior.Regarding cutting methods, the highest microhardness va (84 HV) was obtained with the use of MQL with rice bran base oil and turmeric oil a cutting speed of 56 m/min, as shown in Table 5 and Figure 4.
The microhardness of the machined surface and subsurface is typically affected the heat generated during the machining process [56,57].This is due to the fact that wo piece materials with high thermal conductivity tend to absorb the generated heat, resu ing in plastic deformation and the reorientation of grain boundaries.Such a phenomen can significantly alter the mechanical properties of the component and ultimately imp the machinability of alloys.
Moreover, inadequate or ineffective cooling methods in the absence of coolant fail dissipate the heat generated in the cutting zone, resulting in severe tool wear.This, in tu leads to increased strain hardening and plastic deformation in the subsurface layers.the other hand, the combination of vegetable oil and kaolinite nanoparticles used in t study exhibited excellent lubrication and cooling properties, effectively dissipating h from the shear zone, thus minimizing work hardening.
After performing parametric effect analysis for microhardness of AZ31, quantitat analysis of process parameters was carried out using ANOVA at 95% confidence inter (α = 5%), as presented in Table 9.It can be seen that all three control variables are insign icant with a "p value" greater than 0.05.However, the cutting environment and cutti The second cutting environment, which involved MQL with rice bran and turmeric oil, showed an increase in microhardness values below 50 µm depth compared to the bulk hardness (72 HV).To analyze the effects of process parameters on microhardness, main effects plots were generated, shown in Figure 4. From Figure 4, it can be observed that the cutting environment and feed exhibit a nonlinear trend, while the cutting speed shows a decreasing linear behavior.Regarding cutting methods, the highest microhardness value (84 HV) was obtained with the use of MQL with rice bran base oil and turmeric oil at a cutting speed of 56 m/min, as shown in Table 5 and Figure 4.

Microhardness (HV)
The microhardness of the machined surface and subsurface is typically affected by the heat generated during the machining process [56,57].This is due to the fact that workpiece materials with high thermal conductivity tend to absorb the generated heat, resulting in plastic deformation and the reorientation of grain boundaries.Such a phenomenon can significantly alter the mechanical properties of the component and ultimately impact the machinability of alloys.
Moreover, inadequate or ineffective cooling methods in the absence of coolant fail to dissipate the heat generated in the cutting zone, resulting in severe tool wear.This, in turn, leads to increased strain hardening and plastic deformation in the subsurface layers.On the other hand, the combination of vegetable oil and kaolinite nanoparticles used in this study exhibited excellent lubrication and cooling properties, effectively dissipating heat from the shear zone, thus minimizing work hardening.
After performing parametric effect analysis for microhardness of AZ31, quantitative analysis of process parameters was carried out using ANOVA at 95% confidence interval (α = 5%), as presented in Table 9.It can be seen that all three control variables are insignificant with a "p value" greater than 0.05.However, the cutting environment and cutting speed are the most contributing factors, with 9.8% and 3.8% contribution, respectively.

Empirical Modelling
Regression analysis was utilized to create empirical models for the response attributes (carbon emission, cutting speed, and feed), which are represented by Equations ( 1)-(3).

Carbon emission
−9386 + 401 × CE + 210.6 × CS + 73.9 × F − 21.9 Upon graphically plotting the difference between the experimental and predicted values (obtained through regression analysis) using Equations ( 1)-(3), it was observed that the difference between the actual and predicted values was less than 20% data error, indicating the reliability of the empirical models.This is depicted in Figure 5a-c, which show the percentage error between the experimental and predicted values for carbon emission, surface roughness, and microhardness, respectively.Upon graphically plotting the difference between the experimental and predicted values (obtained through regression analysis) using Equations ( 1)-(3), it was observed that the difference between the actual and predicted values was less than 20% data error, indicating the reliability of the empirical models.This is depicted in Figure 5a-c, which show the percentage error between the experimental and predicted values for carbon emission, surface roughness, and microhardness, respectively.

Process Optimization Using Genetic Algorithm (GA)
The genetic algorithm is a computational method that uses the concept of "survival of the fittest" among a population of solutions.The algorithm starts with a finite number of potential solutions, which are then ranked according to their fitness values and iteratively regenerated by breeding the strongest mates to produce offspring that are closer to the optimal value.To avoid convergence on local optima, population diversification is introduced through occasional mutations.This approach is more robust than traditional optimization techniques that are deterministic and prone to getting stuck at local optima [56].Multiobjective GA is a modern method that is used to determine the optimal process control variables in real-time scenarios.This technique offers a wide range of optimal solutions, each of which is unique and nondominated.The approach provides flexibility to the machining operation by finding a set of solutions that trade off the different objectives [57].In the current study, multiobjective optimization was performed using solver-based GA in MATLAB R2020b.The aim was to minimize carbon emission and surface roughness while maximizing the microhardness of the AZ31 alloy.The regression equations (Equations (1-3)) were used to write the objective function in .M file, and the GA parameters listed in Table 10 were set before running the optimization code.

Process Optimization Using Genetic Algorithm (GA)
The genetic algorithm is a computational method that uses the concept of "survival of the fittest" among a population of solutions.The algorithm starts with a finite number of potential solutions, which are then ranked according to their fitness values and iteratively regenerated by breeding the strongest mates to produce offspring that are closer to the optimal value.To avoid convergence on local optima, population diversification is introduced through occasional mutations.This approach is more robust than traditional optimization techniques that are deterministic and prone to getting stuck at local optima [56].Multiobjective GA is a modern method that is used to determine the optimal process control variables in real-time scenarios.This technique offers a wide range of optimal solutions, each of which is unique and nondominated.The approach provides flexibility to the machining operation by finding a set of solutions that trade off the different objectives [57].In the current study, multiobjective optimization was performed using solver-based GA in MATLAB R2020b.The aim was to minimize carbon emission and surface roughness while maximizing the microhardness of the AZ31 alloy.The regression equations (Equations ( 1)-( 3)) were used to write the objective function in .M file, and the GA parameters listed in Table 10 were set before running the optimization code.The boundary limits for the process variables, as given in Table 3, were used in the optimization process.The stopping criteria of 500 generations were set, and the weighted average variation in the fitness function value was observed [58].The optimal solution was achieved in just 18 iterations, with a processing time of 1.6 s, and is listed in Table 11.To validate the GA optimization, a set of three confirmatory experimental runs were conducted using the optimal solution achieved in iteration 18 (as given in Table 11).The adequacy of the multiobjective GA was validated by performing three replicates of confirmatory tests under optimal parametric conditions.The results for carbon emission, surface roughness, and microhardness were measured and recorded in Table 12.The average percentage error between the predicted and experimental values was found to be within the acceptable range, indicating the effectiveness of the GA optimization technique.

Conclusions
In this research, the use of cutting fluids that are environmentally friendly was explored as a potential alternative to traditional cutting fluids in the manufacturing industry.The aim was to reduce the carbon footprint and improve the machining process when milling AZ31 magnesium alloy.Three cutting environments were studied, which included (i) dry cutting, (ii) minimum quantity lubrication (MQL) using rice bran oil as the base cutting oil and turmeric oil as an additive, and (iii) MQL using rice bran oil as the base cutting oil and turmeric oil and kaolinite nanoparticles as additives.To design the experiments, fuzzy logic was utilized, and the effects of bio-oils and kaolinite on carbon emissions, surface roughness, and microhardness were assessed.From the data analyzed, several compelling conclusions may be drawn:

•
The main effects plot reveals that the third cutting environment (MQL using rice bran oil as the base cutting oil and turmeric oil and kaolinite nanoparticles as additives) yields lower levels of carbon emissions (9.21 ppm) and small surface roughness value (0.3 um).

•
Through analysis of variance (ANOVA), it is revealed that all the three input parameters, namely cutting environment, cutting speed, and feed, have a significant contribution to the reduction in carbon emission, with a percent contribution of 19.39%, 66.9%, and 7.5%, respectively.

•
In the case of surface roughness according to the ANOVA, cutting speed is the most significant parameter, with a contribution of 30.10%.In addition, the cutting speed has the highest contribution of 9.8% in the case of microhardness.

•
The confirmatory machining test results based on the predicted values of multiobjective genetic algorithm (GA) demonstrate that the predicted output parameter values compared to the experimental values of output parameters were within the acceptable range (errors ranging from 0% to 15%).This confirms the effectiveness and reliability of the genetic algorithm.
It is recommended that further investigations be carried out to explore the efficacy of various types of vegetable oils and nanoparticles in enhancing the machining performance and mitigating the environmental impact.The utilization of sustainable cutting fluids should be advocated in the manufacturing sector as a means of minimizing the carbon footprint.

Figure 2 .
Figure 2. Main effect plots of carbon emission.

Figure 2 .
Figure 2. Main effect plots of carbon emission.

Sustainability 2023 ,
15, x FOR PEER REVIEW 10 o

Figure 3 .
Figure 3. Main effect plots of surface roughness.

Figure 3 .
Figure 3. Main effect plots of surface roughness.

Table 2 .
Mechanical and thermal properties of AZ31.

Table 3 .
Details of control and constant variables.

Table 4 .
Prosperities of bio-oils used as cutting fluid.

Table 5 .
Experimental results after milling of AZ31 magnesium alloy using fuzzy logic DOE technique.

Table 6 .
Comparison of carbon emission among three cutting environments used in the present study.

Table 7 .
ANOVA analysis of carbon emission at 95% confidence interval.

Table 8 .
ANOVA analysis of surface roughness at 95% confidence interval.

Table 5
provides the quantitative results of microhardness obtained through fuzzy logic technique.

Table 10 .
GA parameters used for process optimization.

Table 10 .
GA parameters used for process optimization.

Table 11 .
Process optimization results achieved from GA.

Table 12 .
Comparison of confirmatory test and GA predicted values.