DATA MINING-BASED METHOD FOR REAL-TIME PRODUCTION QUALITY PREDICTION OF ALUMINUM ALLOY CASTING, ELECTRONIC DEVICE, AND COMPUTER-READABLE STORAGE MEDIUM
20250001492 ยท 2025-01-02
Inventors
- WEIPENG LIU (HANGZHOU, CN)
- TAO PENG (HANGZHOU, CN)
- Jun Wu (Hangzhou, CN)
- XUXIA ZHANG (HANGZHOU, CN)
- Anping WAN (Hangzhou, CN)
- Ting CHEN (Hangzhou, US)
- LUOKE HU (HANGZHOU, CN)
Cpc classification
B22D46/00
PERFORMING OPERATIONS; TRANSPORTING
International classification
B22D46/00
PERFORMING OPERATIONS; TRANSPORTING
Abstract
A data mining-based method for real-time production quality prediction of aluminum alloy casting, includes: (1) based on mold flow analysis results, installing sensors on a casting mold; wherein 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, pressures, 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 process parameter set to a production quality prediction model; wherein the production quality prediction model is used to judge whether the production quality is qualified, which is obtained by mining a relationship between history casting process parameters and casting quality data.
Claims
1. A data mining-based method for real-time production quality prediction of aluminum alloy casting comprising: (1) based on mold flow analysis results, installing sensors on a casting mold; wherein 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.
2. The method according to claim 1, wherein 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 Q 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.
3. The method according to claim 1, wherein 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.
4. The method according to claim 2, wherein in the step (2), temperature data collected by the N temperature sensors are constructed into a temperature data set T=(t.sub.1, t.sub.2, . . . , t.sub.N), where t.sub.n represents a temperature value collected by the n.sup.th sensor, and n[1, N]; pressure data collected by the M pressure sensors are constructed into a pressure data set P=(p.sub.1, p.sub.2, . . . , p.sub.M), where p.sub.m represents a pressure value collected by the m.sup.th sensor, and m[1, M]; contact time data collected by the Q contact sensors are constructed into a contact time data set K=(k.sub.1, k.sub.2, . . . , k.sub.Q), where k.sub.q represents a contact time value of the aluminum liquid collected by the q.sup.th 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=(a.sub.1, a.sub.2, a.sub.3, a.sub.4), where a.sub.1, a.sub.2, a.sub.3, a.sub.4 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).
5. The method according to claim 1, wherein the steps for obtaining the production quality prediction model for aluminum alloy casting process are as follows: based on the at least one temperature sensor, at least one pressure sensor, at least one contact sensor, and multi-functional gas sensor, temperatures of aluminum liquid, pressures of the aluminum liquid, contact times of the aluminum liquid, and pressure, composition, humidity, and temperature of gas are collected during the practical casting production process; the collected data are constructed into an aluminum alloy casting process history parameter set and data preprocessing for the aluminum alloy casting process history parameter set is conducted; the aluminum alloy casting process history parameter set is labeled with whether the corresponding production quality is qualified or not, and is divided into a training set and a validation set; the production quality prediction model for aluminum alloy casting process is conducted, trained through samples in the training set, and validated through samples in the validation set.
6. The method according to claim 5, wherein the data preprocessing for the aluminum alloy casting process history parameter set includes: supplementation of missing values, removal of abnormal values, and data normalization; wherein the missing values in the aluminum alloy casting process history parameter set are supplemented through the random imputation of similar mean.
7. The method according to claim 1, wherein the production quality prediction model for aluminum alloy casting process is based on an extreme gradient boosting algorithm (XGboost).
8. The method according to claim 5, wherein the steps for training the production quality prediction model through samples in the training set are as follows: parameters for training the production quality prediction model are initialized; wherein the parameters include a difficulty coefficient of node cut, a regularization coefficient, a learning rate, and a maximum depth of a tree; the production quality prediction model is continuously trained through the samples in the training set; when the training is completed, the prediction error of the production quality prediction model through the samples in the validation set is calculated; if the prediction error is less than an error threshold, the training ends; if the prediction error is greater than or equal to the error threshold, the training continues and is validated by adjusting the initialization parameters for training the quality prediction model until the prediction error meets requirements.
9. An electronic device, comprising a memory and a processor; wherein 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 following methods: (1) based on mold flow analysis results, installing sensors on a casting mold; wherein 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.
10. The electronic device according to claim 9, wherein 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 Q 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.
11. The electronic device according to claim 9, wherein 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.
12. The electronic device according to claim 10, wherein in the step (2), temperature data collected by the N temperature sensors are constructed into a temperature data set T=(t.sub.1, t.sub.2, . . . , t.sub.N), where t.sub.n represents a temperature value collected by the n.sup.th sensor, and n[1, N]; pressure data collected by the M pressure sensors are constructed into a pressure data set P=(p.sub.1, p.sub.2, . . . , p.sub.M), where p.sub.m represents a pressure value collected by the m.sup.th sensor, and m[1, M]; contact time data collected by the Q contact sensors are constructed into a contact time data set K=(k.sub.1, k.sub.2, . . . , k.sub.Q), where k.sub.q represents a contact time value of the aluminum liquid collected by the q.sup.th 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=(a.sub.1, a.sub.2, a.sub.3, a.sub.4), where a.sub.1, a.sub.2, a.sub.3, a.sub.4 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).
13. The electronic device according to claim 9, wherein the steps for obtaining the production quality prediction model for aluminum alloy casting process are as follows: based on the at least one temperature sensor, at least one pressure sensor, at least one contact sensor, and multi-functional gas sensor, temperatures of aluminum liquid, pressures of the aluminum liquid, contact times of the aluminum liquid, and pressure, composition, humidity, and temperature of gas are collected during the practical casting production process; the collected data are constructed into an aluminum alloy casting process history parameter set and data preprocessing for the aluminum alloy casting process history parameter set is conducted; the aluminum alloy casting process history parameter set is labeled with whether the corresponding production quality is qualified or not, and is divided into a training set and a validation set; the production quality prediction model for aluminum alloy casting process is conducted, trained through samples in the training set, and validated through samples in the validation set.
14. The electronic device according to claim 13, wherein the data preprocessing for the aluminum alloy casting process history parameter set includes: supplementation of missing values, removal of abnormal values, and data normalization; wherein the missing values in the aluminum alloy casting process history parameter set are supplemented through the random imputation of similar mean.
15. The electronic device according to claim 9, wherein the production quality prediction model for aluminum alloy casting process is based on an extreme gradient boosting algorithm (XGboost).
16. The electronic device according to claim 13, wherein the steps for training the production quality prediction model through samples in the training set are as follows: parameters for training the production quality prediction model are initialized; wherein the parameters include a difficulty coefficient of node cut, a regularization coefficient, a learning rate, and a maximum depth of a tree; the production quality prediction model is continuously trained through the samples in the training set; when the training is completed, the prediction error of the production quality prediction model through the samples in the validation set is calculated; if the prediction error is less than an error threshold, the training ends; if the prediction error is greater than or equal to the error threshold, the training continues and is validated by adjusting the initialization parameters for training the quality prediction model until the prediction error meets requirements.
17. A non-transitory computer-readable storage medium, storing a computer program; wherein the computer program, when executed by a processor, implements the following methods: (1) based on mold flow analysis results, installing sensors on a casting mold; wherein the sensors include at least one temperature sensor, at least one pressure sensor, at least one contact sensor, and a multi-functional gas sensor; in (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.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0031]
[0032]
[0033]
DETAILED DESCRIPTION
[0034] 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.
[0035] As shown in
[0036] (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.
[0037] 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.
[0038] The installation locations of the temperature sensors, pressure sensors, contact sensors, and multi-functional gas sensor are determined as shown in
[0039] (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.
[0040] In the present disclosure, the temperature data collected by the temperature sensors are constructed into a temperature data set T=(t.sub.1, t.sub.2, . . . , t.sub.N), where t.sub.n represents a temperature value collected by the n.sup.th sensor, and n[1, N]; the pressure data collected by the pressure sensors are constructed into a pressure data set P=(p.sub.1, p.sub.2, . . . , p.sub.M), where p.sub.m represents a pressure value collected by the m.sup.th sensor, and m[1, M]; the contact time data collected by the contact sensors are constructed into a contact time data set K=(k.sub.1, k.sub.2, . . . , k.sub.Q), where k.sub.q represents a contact time value of the aluminum liquid collected by the q.sup.th 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=(a.sub.1, a.sub.2, a.sub.3, a.sub.4), where a.sub.1, a.sub.2, a.sub.3, a.sub.4 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).
[0041] (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.
[0042] The construction procedures of the production quality prediction model Q(T, P, K, A) in the present disclosure are as follows.
[0043] (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=(T.sub.L, P.sub.L, K.sub.L, A.sub.L) ((T.sub.1, P.sub.1, K.sub.1, A.sub.1), (T.sub.2, P.sub.2, K.sub.2, A.sub.2), ( . . . ), (T.sub.L, P.sub.L, K.sub.L, A.sub.L)).sup.T is constructed, where (T.sub.L, P.sub.L, K.sub.L, A.sub.L) represents the L.sup.th group process parameter set.
[0044] 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=(F.sub.1, F.sub.2, . . . , F.sub.L).sup.T, where F.sub.L represents the L.sup.th aluminum alloy casting quality data and the aluminum alloy casting quality data includes two types: pass and failed, indicated by 1 and 0, respectively.
[0045] (3.2) The aluminum alloy casting process history parameter matrix D and the aluminum alloy casting quality data matrix F are pre-processed.
[0046] 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.
[0047] The data of the aluminum alloy casting process history parameter matrix D is normalized using the following formula:
[0048] where X.sub.norm is the normalized data, X is the data before normalization, X.sub.min is the minimum value of the given data, and X.sub.max is the maximum value of the given data.
[0049] (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.
[0050] The training objective function of the production quality prediction model is set as the following equations.
[0051] 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, y.sub.i is the true value of the i.sup.th prediction, y.sub.i.sup.(t1) is the predicted value of the t1.sup.th tree before the i.sup.th sample, I.sub.j is the sample set of the j.sup.th leaf node, G.sub.j is the sum of the first-order partial derivatives of the sample set contained in the j.sup.th leaf node, and H.sub.j is the sum of the second-order partial derivatives of the sample set contained in the j.sup.th leaf node.
[0052] (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.
[0053] where y.sub.i is the true value and y.sub.i is the predicted value.
[0054] When the prediction error of the production quality prediction model cc.sub.s (c.sub.s is the target error value), the training for the production quality prediction model is completed; when cc.sub.s, the initialization parameters for training the production quality prediction model are continuously adjusted until the prediction error meets the requirements.
[0055] 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.
[0056] 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.
[0057] 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.
[0058] Step (3): the production quality prediction model for shock tower production is constructed and trained as follows.
[0059] (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.
[0060] (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.
[0061] (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.
[0062] 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.
[0063] 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
[0064] 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.
[0065] 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.