The present disclosure claims priority of Chinese Patent Application No. 202310792988.9, filed on Jun. 30, 2023, the entire contents of which are hereby incorporated by reference in their entirety.
The present disclosure relates to the technical field of production quality control of aluminum alloy casting process, and in particular to a data mining-based method for real-time production quality prediction of aluminum alloy casting, an electronic device, and a non-transitory computer-readable storage medium.
Aluminum alloy casting is an important enabling technology for automotive light-weighting, producing about 80% of automotive aluminum parts. The global demand for aluminum alloy castings will continually increase. The trends of “replacing steel with aluminum and replacing forgings with castings” and “adopting giga- or mega-castings” which is rapidly developing, will make more auto parts be produced through casting technologies. For example, Chinese annual automotive aluminum use will maintain a compound annual growth rate of about 10% over the next ten years. Aluminum alloy castings for fuel vehicles are mainly used as power and transmission system components, such as engine blocks, reducer housing, and wheels. The production technology of these aluminum alloy castings for fuel vehicles is relatively mature, and the quality requirements of the products are not high, such that the existing quality control methods can meet the quality requirements. The global auto industry is turning to the era of new energy vehicles, and the demands for and quality requirements of aluminum alloy castings for new energy vehicles are higher. New energy vehicles use a large number of aluminum alloy castings as chassis and body structure parts of the vehicles, such as subframe, shock tower, and integrated rear floor. These aluminum alloy castings used as structural parts have an important influence on the safety and stability of the vehicles, which significantly increases the quality requirements of the aluminum alloy castings. The shape and production technology of the casting structural parts are relatively complex, which causes the current production qualification rate to be relatively low. There is an urgent need to carry out research on new quality control methods to solve the demands of producing high-quality aluminum alloy castings used as auto structural parts.
Boosted by the manufacturing power strategy with intelligent manufacturing as the main direction, the aluminum alloy casting industry is being upgraded to automation, digitalization, and intelligence. Some top enterprises of aluminum alloy casting have completed the upgrade of automatic production lines and digital control, which provides the necessary basis for the quality control of aluminum alloy casting process based on data mining.
Some scholars have carried out data mining-based production quality prediction and diagnosis methods of aluminum alloy casting process. Some representative studies are: (1) Chinese patent (application No. CN110059738A) proposed an early warning method of die casting quality, which uses slow pressure injection speed, fast pressure injection speed, location of slow speed to fast speed, pressurization establishment time, maximum speed, and maximum pressure as the inputs; (2) Jeongsu Lee et al. proposed methods for process data acquisition of die-casting process and for fault detection based on artificial neural network (Migration from the traditional to the smart factory in the die-casting industry: Novel process data acquisition and fault detection based on artificial neural network. Journal of Materials Processing Technology. 2021), which use die-casting process data as the inputs, including processing time, hydraulic pressure of die-casting machine, pressurization pressure of die-casting machine, and temperature fluctuations; (3) Sangwoo Park et al. proposed a data mining-based approach to establish a relationship between die-casting process parameters and quality indicators to support process parameter optimization and quality diagnosis (Establishment of an IoT-based smart factory and data analysis model for the quality management of SMEs die-casting companies in Korea. International Journal of Distributed Sensor Networks. 2019), which uses die-casting process parameters as inputs, including state parameters of die-casting machine, temperature of melting furnace and holding furnace, cooling water temperature, and ambient temperature. The above studies provided new methods and ideas for production quality control of aluminum alloy casting process.
However, the existing methods for predicting the production quality of aluminum alloy casting process mainly establish a relationship model with quality indicators by mining process parameters of the casting process and parameters within the equipment control system, which are external indirect data. In actual production, there are too many factors affecting the quality of aluminum alloy castings, and the types of process parameters and the parameters within the equipment control systems do not yet fully reflect the quality changes. The current methods using the process and equipment parameters cannot effectively build a prediction model of quality indicators, making it difficult to solve the quality prediction problem of complex aluminum alloy castings used as structural parts. Therefore, there is still an urgent need to develop critical technologies to find and collect key direct factors that can effectively reflect the casting quality, establish the relationship model between factors and quality indicators, and realize the real-time and high-accuracy production quality prediction of aluminum alloy casting process.
Aiming to address the above problem, the present disclosure provides a data mining-based method for real-time production quality prediction of aluminum alloy casting, which can support online production quality prediction of each aluminum alloy casting, and can effectively reduce the reject rate and reduce the flow of unqualified products to subsequent processes, thereby reducing manufacturing costs.
A data mining-based method for real-time production quality prediction of aluminum alloy casting includes following operations.
(1) Based on mold flow analysis results, installing sensors on a casting mold; the sensors include at least one temperature sensor, at least one pressure sensor, at least one contact sensor, and a multi-functional gas sensor;
(2) During casting production, real-time collecting temperatures of aluminum liquid, pressures of the aluminum liquid, and contact times of the aluminum liquid at a plurality of locations of the casting mold, and pressure, composition, humidity, and temperature of gas in a mold cavity, by the installed sensors, for constructing an aluminum alloy casting process parameter set; and
(3) Inputting the aluminum alloy casting process parameter set to a production quality prediction model for aluminum alloy casting process; wherein the production quality prediction model is used to judge whether the production quality is qualified or not; the production quality prediction model is obtained by mining a relationship between history parameters of aluminum alloy casting process and aluminum alloy castings quality data.
In some embodiments, in the step (1), the number of at least one temperature sensor is N, and the N temperature sensors are used to measure the temperatures of the aluminum liquid at different locations in the mold cavity; the number of at least one pressure sensor is M, and the M pressure sensors are used to measure the pressures of the aluminum liquid at different locations in the mold cavity; the number of at least one contact sensor is Q, and the Q contact sensors are used to record times when the aluminum liquid first reaches the (contact sensors; the number of multi-functional gas sensor is one, and the multi-functional gas sensor is used to measure the pressure, the composition, the humidity, and the temperature of the gas inside the mold cavity; N, M, and Q are natural numbers and equal to or greater than one.
In some embodiments, in the step (1), the multi-functional gas sensor is installed at gas discharge outlet of a movable plate or stationary plate; the at least one temperature sensor, the at least one pressure sensor, and the at least one contact sensor are installed on surfaces of a mold core and the mold cavity contacting the aluminum liquid; based on the mold flow analysis results, the at least one temperature sensor is installed at locations with hot nodes, locations prone to air bubble, and locations prone to surface quality problem; the at least one pressure sensor is installed at overflow slots, locations prone to shrinkage, and locations prone to air entrapment; the at least one contact sensor is installed at gates, locations prone to incomplete casting, locations prone to air entrapment, overflow slots, and gas outlets.
In some embodiments, in the step (2), temperature data collected by the N temperature sensors are constructed into a temperature data set T=(t1, t2, . . . , tN), where tn represents a temperature value collected by the nth sensor, and n∈[1, N]; pressure data collected by the M pressure sensors are constructed into a pressure data set P=(p1, p2, . . . , pM), where pm represents a pressure value collected by the mth sensor, and m∈[1, M]; contact time data collected by the (contact sensors are constructed into a contact time data set K=(k1, k2, . . . , kQ), where kq represents a contact time value of the aluminum liquid collected by the qth sensor, and q∈[1, Q]; pressure, composition, humidity, and temperature data collected by the multi-functional gas sensor are constructed into a gas state data set A=(a1, a2, a3, a4), where a1, a2, a3, a4 represent the pressure value, composition value, humidity value, and temperature value of the gas in the mold cavity, respectively; the aluminum alloy casting process parameter set is constructed as (T, P, K, A).
In some embodiments, the steps for obtaining the production quality prediction model for aluminum alloy casting process are as follows:
In some embodiments, the data preprocessing for the aluminum alloy casting process history parameter set includes: supplementation of missing values, removal of abnormal values, and data normalization. The missing values in the aluminum alloy casting process history parameter set are supplemented through the random imputation of similar mean.
In some embodiments, the production quality prediction model for aluminum alloy casting process is based on an extreme gradient boosting algorithm (XGboost).
In some embodiments, the steps for training the production quality prediction model through samples in the training set are as follows:
An electronic device includes a memory and a processor. The memory is coupled to the processor, and the memory is used to store program data and the processor is used to execute the program data to implement the methods as above.
A non-transitory computer-readable storage medium, storing a computer program. The computer program, when executed by a processor, implements the methods as above.
Compared with the related art, the present disclosure has the following beneficial technical effects.
1. the present disclosure installs temperature, pressure, contact, and gas state sensors on the casting mold, and the collected process parameters belong to internal direct factors, which can reflect the casting quality more accurately; the prediction method based on data mining proposed in the present disclosure can effectively decouple a complex relationship between aluminum alloy casting process parameters and product quality, which improves the prediction accuracy of casting quality and is important for revealing the mechanism affecting casting quality.
2. the prediction method of the present disclosure can be arranged into the intelligent control system of the production line to predict the quality of each aluminum alloy casting in real time, which can effectively reduce the reject rate and reduce the flow of unqualified products to the subsequent processes, thereby reducing the manufacturing cost.
In order to describe the present disclosure more specifically, the technical solution of the present disclosure is described in detail below in conjunction with the accompanying drawings and specific implementations.
As shown in
(1) Based on mold flow analysis results, N temperature sensors, M pressure sensors, Q contact sensors, and a multi-functional gas sensor are installed at suitable locations in a casting mold; the temperature and pressure sensors are configured to measure temperature and pressure of aluminum liquid in the mold cavity, respectively; the contact sensors are configured to record time when the aluminum liquid first reaches the contact sensors; the multi-functional gas sensor is configured to measure pressure, composition, humidity, and temperature of gas inside the mold cavity. N, M, and Q are natural numbers and equal to or greater than one.
The measurement range of the temperature sensor is 0-750° C., with a precision of 1° C., a response time of less than 20 ms, and a maximum withstand pressure of 200 MPa; a measurement range of the pressure sensor is 0-2000 bar, with a precision of 1 bar, a response time of less than 10 ms, and a maximum withstand temperature of 750° C.; the response time of the contact sensor is less than 3 ms, with a maximum withstand pressure of 200 MPa and a maximum withstand temperature of 750° C.; the response time of the multi-functional gas sensor is less than 1 s, with a measurement ranges of temperature 0-150° C. and a pressure 0-1100 mbar, and collectable composition: oxygen, carbon dioxide, and carbon monoxide.
The installation locations of the temperature sensors, pressure sensors, contact sensors, and multi-functional gas sensor are determined as shown in
(2) During casting production, aluminum liquid temperatures, aluminum liquid pressures, and aluminum liquid contact times at multiple locations of the mold, and pressure, composition, humidity, and temperature of the cavity gas are collected in real-time by the above sensors; except for the aluminum liquid contact sensor that is passively triggered, the time of data collection by the sensors are given and different.
In the present disclosure, the temperature data collected by the temperature sensors are constructed into a temperature data set T=(t1, t2, . . . , tN), where tn represents a temperature value collected by the nth sensor, and n∈[1, N]; the pressure data collected by the pressure sensors are constructed into a pressure data set P=(p1, p2, . . . , pM), where pm represents a pressure value collected by the mth sensor, and m∈[1, M]; the contact time data collected by the contact sensors are constructed into a contact time data set K=(k1, k2, . . . , kQ), where kq represents a contact time value of the aluminum liquid collected by the qth sensor, and q∈[1, Q]; the pressure, composition, humidity, and temperature data collected by the multi-functional gas sensor are constructed into a gas state data set A=(a1, a2, a3, a4), where a1, a2, a3, a4 represent the pressure value, composition value, humidity value, and temperature value of the gas in the mold cavity, respectively; the aluminum alloy casting process parameter set is constructed as (T, P, K, A).
(3) The parameter set (T, P, K, A) collected in real time is inputted to a data mining-based production quality prediction model for aluminum alloy casting process Q(T, P, K, A), and the model judges whether the aluminum alloy casting quality is qualified or not in real time.
The construction procedures of the production quality prediction model Q(T, P, K, A) in the present disclosure are as follows.
(3.1) L groups of aluminum alloy casting process history parameter sets are collected, and then an aluminum alloy casting process history parameter matrix D=(TL, PL, KL, AL) ((T1, P1, K1, A1), (T2, P2, K2, A2), ( . . . ), (TL, PL, KL, AL))T is constructed, where (TL, PL, KL, AL) represents the Lth group process parameter set.
L aluminum alloy castings quality data corresponding to the L groups of aluminum alloy casting process history parameter sets are collected, and then the aluminum alloy casting quality data are constructed into an aluminum alloy casting quality data matrix F=(F1, F2, . . . , FL)T, where FL represents the Lth aluminum alloy casting quality data and the aluminum alloy casting quality data includes two types: pass and failed, indicated by 1 and 0, respectively.
(3.2) The aluminum alloy casting process history parameter matrix D and the aluminum alloy casting quality data matrix F are pre-processed.
The missing values of the aluminum alloy casting process history parameter matrix D are supplemented through the random imputation of similar mean; the abnormal values exceeding 20% of the mean value of the same type in the aluminum alloy casting process history parameter matrix D and the corresponding values in the aluminum alloy casting process history parameter matrix D and the aluminum alloy casting quality data matrix F are deleted; the non-1 and 0 or missing values in the aluminum alloy casting quality data matrix F and the corresponding values in the aluminum alloy casting process history parameter matrix D are deleted at the same time; after the data deletion, the data size of the aluminum alloy casting process history parameter matrix D and aluminum casting quality data matrix F changes from L to L″.
The data of the aluminum alloy casting process history parameter matrix D is normalized using the following formula:
where Xnorm is the normalized data, X is the data before normalization, Xmin is the minimum value of the given data, and Xmax is the maximum value of the given data.
(3.3) The data mining-based production quality prediction model for aluminum alloy casting process Q(T, P, K, A) is constructed based on the extreme gradient boosting algorithm (XGboost), where the aluminum alloy casting process parameter set (T, P, K, A) is the input of the prediction model, and whether the quality of aluminum alloy casting is qualified or not is the output of the prediction model.
The training objective function of the production quality prediction model is set as the following equations.
where Obj is the objective function, T1 is the number of leaf nodes of trees, y is the difficulty coefficient of node cut, λ is the regularization coefficient, yi is the true value of the ith prediction, y′i(t−1) is the predicted value of the t−1th tree before the ith sample, Ij is the sample set of the jth leaf node, Gj is the sum of the first-order partial derivatives of the sample set contained in the jth leaf node, and Hj is the sum of the second-order partial derivatives of the sample set contained in the jth leaf node.
(3.4) The aluminum alloy casting process history parameter matrix D and the aluminum alloy casting quality data matrix F are divided into a training set and a validation set, where the amount of data in the training set is 0.7*L″ and the amount of data in the validation set is 0.3*L″; the initialization parameters for the training of the production quality prediction model for aluminum alloy casting process, including the difficulty coefficient of node cut, regularization coefficient, learning rate, maximum depth of the tree, etc., are set; the established production quality prediction model is trained with the data of the training set; the prediction error c of the trained production quality prediction model with the data of the validation set is calculated using the following equation.
where yi is the true value and yi′ is the predicted value.
When the prediction error of the production quality prediction model c≤cs (cs is the target error value), the training for the production quality prediction model is completed; when c≥cs, the initialization parameters for training the production quality prediction model are continuously adjusted until the prediction error meets the requirements.
In the following, a shock tower for automobile produced by aluminum alloy casting is taken as an example to illustrate the specific implementation of the present disclosure.
Step (1): according to the mold flow analysis results for the filling process of the shock tower, six temperature sensors, five pressure sensors, five contact sensors, and one multi-functional gas sensor were installed at key locations on a mold used to produce the shock tower.
Step (2): in an actual production, a group of shock tower production process parameter set is collected, including temperature data [560,550,480,485,469,426]° C., pressure data [120,115,126, 129, 113,90] MPa, contact time [30,40,55,65,76,93] milliseconds, gas state pressure 52 mbar, oxygen concentration 15.2%, humidity 75%, and temperature value 45° C.
Step (3): the production quality prediction model for shock tower production is constructed and trained as follows.
(3.1) 22,000 shock tower production process history parameter sets and their corresponding shock tower quality data are collected, where qualified indicated by 1 and unqualified indicated by 0.
(3.2) The missing value supplement, abnormal value deletion, and data normalization are performed for the 22,000 collected data. After the data pre-processing, 21.72 thousand data remain.
(3.3) A production quality prediction model for producing the shock tower is established based on the XGboost algorithm, which takes the shock tower production process history parameter set as input and whether the quality of shock tower is qualified as output; the difficulty coefficient of node cut is set to 1, the regularization coefficient is set to 1, the learning rate is set to 0.3, and the maximum depth of the tree is set to 6 in the model training process; 70% of the data set is used for model training, and the remaining 30% of the data set is used to test the prediction error of the model; after several rounds of training, the error of the model drops to 0.15, which is less than the set value of 0.2 and meets the prediction precision requirement.
Step (4): The shock tower production process parameter set collected in step (2) is inputted into the trained model, and the model predicts the product quality to be qualified; a post-inspection finds that indicators of the product meet the requirements and the actual quality is qualified, which is the same as the predicted result of the trained model.
Accordingly, the present disclosure further provides an electronic device including a memory and a processor; the memory is configured to store one or more programs; when the program is executed by the processor, it enables the processor to implement the above-mentioned method for real-time production quality prediction of aluminum alloy casting process. In addition to the processor, memory, and network interface shown in
Accordingly, the present disclosure further provides a computer-readable storage medium, which stores computer instructions; the computer instructions are executed by the processor to achieve the method for real-time production quality prediction of aluminum alloy casting process. The computer-readable storage medium may be an internal storage unit of the above device, such as a hard disk or memory, or an external storage device, such as a plug-in hard disk, a smart memory card, an SD card, a flash memory card, etc. Further, the computer-readable storage medium may include both internal storage units of the device with data processing capability and external storage devices for storing computer programs, which are used to store other programs and data required by the device, and may be used to store data temporarily that has been output or will be output.
The above description of the embodiments is intended to facilitate the understanding and application of the present disclosure by those skilled in the art, and it is apparent that those skilled in the art can easily make various modifications to the above embodiments and apply the general principles illustrated herein to other embodiments without creative labor. Therefore, the present disclosure is not limited to the above embodiments, and improvements and modifications made to the present disclosure by those skilled in the art in accordance with the present disclosure should be within the scope of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
202310792988.9 | Jun 2023 | CN | national |