A real-time prediction method for manufacturing quality of aluminum alloy castings based on data mining
By installing sensors on the casting mold to collect aluminum liquid parameters in real time and using the decision tree model of the XGboost algorithm, the problem of inaccurate prediction of aluminum alloy casting quality in the prior art is solved, realizing real-time high-precision prediction of aluminum alloy casting quality and cost reduction.
Patent Information
- Application Number
- CN202310792988.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-30
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2043-06-30
AI Technical Summary
Existing methods for predicting the manufacturing quality of aluminum alloy castings mainly rely on mining process parameters and parameters within the equipment control system. These methods cannot effectively reflect changes in the quality of aluminum alloy castings, making it difficult to solve the quality prediction problem for complex aluminum alloy casting structural parts.
Temperature, pressure, contact, and gas state sensors are installed on the casting mold to collect parameters such as the temperature, pressure, contact time of the molten aluminum, and the pressure, composition, and humidity of the gas in the mold cavity in real time. A parameter set for the aluminum alloy casting manufacturing process is constructed, and the XGboost algorithm's decision tree model is used for quality prediction.
This method enables real-time, high-precision prediction of aluminum alloy casting quality, reduces defect rates and manufacturing costs, improves the accuracy of casting quality prediction, and reveals the mechanism affecting casting quality.
Smart Images

Figure CN116823054B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of quality control of aluminum alloy casting manufacturing process, and specifically relates to a real-time prediction method for aluminum alloy casting manufacturing quality based on data mining. Background Art
[0002] Aluminum alloy casting is an important enabling technology for automobile lightweighting, producing about 80% of automobile aluminum parts; China's annual automobile aluminum consumption will maintain a compound annual growth rate of about 10% in the next 10 years. The trend of "replacing steel with aluminum and forging with casting" and the rapidly developing "large-scale integrated die-casting" will enable more automobile parts to be produced by casting. Aluminum alloy castings for fuel vehicles are mainly used as power and transmission system components, such as engine cylinders, reducer housings, and wheels. The manufacturing technology of aluminum alloy castings for these fuel vehicles is relatively mature and the quality requirements of the products are not high, so that the existing quality control methods can meet the quality requirements. my country's automobile industry is turning to the era of new energy vehicles. New energy vehicles have higher demand and quality requirements for aluminum alloy castings; new energy vehicles use a large number of aluminum alloy castings as vehicle chassis and body structural parts, such as subframes, shock towers, and integrated rear floors. These aluminum alloy castings as structural parts have an important impact on the safety and stability of the vehicle, which greatly increases the quality requirements of aluminum alloy castings. The shape and manufacturing process of cast structural parts are relatively complex, and the current product manufacturing qualification rate is relatively low. It is urgent to carry out research on new quality control methods to solve the demand for manufacturing high-quality aluminum alloy cast structural parts.
[0003] Driven by the strategy of building a strong manufacturing country with intelligent manufacturing as the main direction, the aluminum casting manufacturing industry is transforming and upgrading towards automation, digitalization and intelligence. Some leading aluminum casting manufacturing companies have completed the upgrade of automatic production lines and digital management and control, which provides the necessary foundation for quality management of aluminum alloy casting manufacturing based on data mining.
[0004] At present, some scholars have carried out aluminum casting manufacturing quality prediction and diagnosis methods based on data mining. Some representative research works include: the Chinese patent application with publication number CN110059738A proposes an early warning method for die-casting quality. The data used in this method include slow injection speed, fast injection speed, slow-to-fast position, boost establishment time, maximum speed, and maximum pressure; Jeongsu Lee et al. proposed a die-casting process data acquisition and defect diagnosis method 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). The die-casting process data used in this method include processing time, hydraulic pressure of die-casting machine injection, die-casting machine boost pressure, and temperature fluctuation; Sangwoo Park et al. proposed a method for establishing the relationship between die-casting process parameters and quality indicators based on data mining 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 DistributedSensor Networks.2019). The die-casting process parameters used in this method include the state parameters of the die-casting machine, the temperature of the melting furnace and the holding furnace, the cooling water temperature, and the ambient temperature. These works provide new methods and ideas for the quality control of the aluminum alloy casting manufacturing process.
[0005] However, the existing aluminum alloy casting manufacturing quality prediction methods mainly establish a relationship model with quality indicators by mining the casting process parameters and the parameters in the equipment control system. These parameters belong to external indirect data. In actual production, there are too many factors that affect the quality of aluminum alloy castings. The process parameters and the parameter types in the equipment control system cannot fully reflect the quality changes. The current method of using process parameters and equipment parameters cannot effectively construct a prediction model for quality indicators, making it difficult to solve the quality prediction problem of complex aluminum alloy casting structural parts. Therefore, it is urgent to carry out key technology research and development, find and collect key direct factors that can effectively reflect the casting quality, establish a relationship model between factors and quality indicators, and realize real-time and high-precision prediction of aluminum alloy casting manufacturing quality. Summary of the invention
[0006] In view of the above, the present invention provides a real-time prediction method for aluminum alloy casting manufacturing quality based on data mining, which can support real-time online prediction of the quality of each aluminum alloy casting, effectively reduce the unqualified rate and reduce the flow of unqualified products to subsequent processes, thereby reducing manufacturing costs.
[0007] A real-time prediction method for manufacturing quality of aluminum alloy castings based on data mining comprises the following steps:
[0008] (1) Based on the mold flow analysis results, a temperature sensor, a pressure sensor, a contact sensor, and a multifunctional gas sensor are installed on the casting mold;
[0009] (2) During the manufacturing of aluminum alloy castings, the above sensors are used to collect the temperature, pressure, contact time of the aluminum liquid at multiple positions of the mold, as well as the pressure, composition, humidity and temperature of the cavity gas in real time, thereby constructing a parameter set for the aluminum alloy casting manufacturing process;
[0010] (3) Inputting the aluminum alloy casting manufacturing process parameter set into a pre-trained aluminum alloy casting manufacturing quality prediction model to predict whether the corresponding aluminum alloy casting quality is qualified; wherein the pre-trained manufacturing quality prediction model is obtained by mining the relationship between the historical parameters of the aluminum alloy casting manufacturing process and the aluminum alloy casting quality data.
[0011] Furthermore, in the step (1), there are N temperature sensors installed for respectively measuring the temperature of the aluminum liquid at different positions in the mold cavity; there are M pressure sensors for respectively measuring the pressure of the aluminum liquid at different positions in the mold cavity; there are Q contact sensors for recording the time when the aluminum liquid first arrives at each contact sensor position; there is 1 multifunctional gas sensor for measuring the pressure, composition, humidity and temperature of the gas in the mold cavity, and N, M and Q are all natural numbers greater than 1.
[0012] Furthermore, in the step (1), the multifunctional gas sensor is installed at the gas outlet of the movable mold or the static mold, and the temperature sensor, the pressure sensor and the contact sensor are installed on the surface of the mold core and the cavity that contacts the aluminum liquid; based on the mold flow analysis results, the temperature sensors are installed at the locations where there are hot nodes, bubbles are likely to appear, and surface quality problems are likely to occur, respectively; the pressure sensors are installed at the overflow groove, the locations where depressions are likely to appear, and the locations where air entanglement is likely to occur, respectively; the contact sensors are installed at the gate, the locations where undercasting is likely to occur, the locations where air entanglement is likely to occur, the overflow groove, and the exhaust port, respectively.
[0013] Furthermore, in step (2), the temperature data collected by N temperature sensors are used to construct a temperature data set T=(t1, t2, ..., t N ), where t n is the aluminum liquid temperature value collected by the nth temperature sensor, n∈[1,N]; the pressure data collected by M pressure sensors are used to construct a pressure data set P=(p1, p2, ..., p M ), where p m is the aluminum liquid pressure value collected by the mth pressure sensor, m∈[1,M]; the contact time data collected by Q contact sensors are used to construct a contact time data set K=(k1, k2, ..., k Q ), where k q is the aluminum liquid contact time value collected by the qth contact sensor, q∈[1,Q]; the gas pressure, composition, humidity, and temperature data collected by the multifunctional gas sensor are used to construct a gas state data set A=(a1, a2, a3, a4), where a1, a2, a3, and a4 are the pressure value, composition value, humidity value, and temperature value of the cavity gas, respectively; finally, the above data are used to form the aluminum alloy casting manufacturing process parameter set (T, P, K, A).
[0014] Furthermore, the process of obtaining the pre-trained aluminum alloy casting manufacturing quality prediction model is as follows:
[0015] During the manufacturing of aluminum alloy castings, the temperature, pressure, contact time of aluminum liquid at multiple locations of the mold and the pressure, composition, humidity and temperature of the cavity gas are collected through temperature sensors, pressure sensors, contact sensors and multi-functional gas sensors to obtain the historical parameter set of the aluminum alloy casting manufacturing process and perform data preprocessing;
[0016] Label each sample in the aluminum alloy casting manufacturing process historical parameter set as qualified or unqualified, and then divide the aluminum alloy casting manufacturing process historical parameter set into a training set and a validation set;
[0017] A manufacturing quality prediction model for aluminum alloy castings is constructed, the manufacturing quality prediction model for aluminum alloy castings is trained using training set samples, and the trained manufacturing quality prediction model for aluminum alloy castings is verified using validation set samples.
[0018] Furthermore, data preprocessing of the historical parameter set of the aluminum alloy casting manufacturing process includes: supplementing missing values, deleting outliers, and normalizing data values, wherein the missing values in the parameter set are supplemented by a method of random interpolation of the same mean.
[0019] Furthermore, the aluminum alloy casting manufacturing quality prediction model adopts a decision tree model based on the XGboost (eXtremeGradient Boosting) algorithm.
[0020] Furthermore, the specific process of training the aluminum alloy casting manufacturing quality prediction model using the training set samples is as follows:
[0021] Initialize the training parameters of the aluminum alloy casting manufacturing quality prediction model, including the difficulty coefficient of node segmentation, regularization coefficient, learning rate, and maximum depth of the tree;
[0022] The aluminum alloy casting manufacturing quality prediction model is continuously trained using training set samples;
[0023] After training, the prediction error of the aluminum alloy casting manufacturing quality prediction model is calculated using the validation set samples;
[0024] If the prediction error is less than the error threshold, the training of the aluminum alloy casting manufacturing quality prediction model is terminated; otherwise, the training parameters of the initialization aluminum alloy casting manufacturing quality prediction model are continuously adjusted and retrained and verified until the prediction error meets the requirements.
[0025] An electronic device comprises a memory and a processor, wherein the memory is coupled to the processor, wherein the memory is used to store program data, and the processor is used to execute the program data to implement the above-mentioned real-time prediction method for the manufacturing quality of aluminum alloy castings.
[0026] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the above-mentioned method for real-time prediction of manufacturing quality of aluminum alloy castings.
[0027] Compared with the prior art, the present invention has the following beneficial technical effects:
[0028] 1. The present invention installs temperature, pressure, contact, and gas state sensors on the casting mold, and the collected process parameters are internal direct factors, which can more accurately reflect the casting quality; the prediction method based on data mining proposed in the present invention can effectively decouple the complex relationship between aluminum alloy casting process parameters and product quality, improve the prediction accuracy of casting molding quality, and is of great benefit to revealing the mechanism affecting casting molding quality.
[0029] 2. The prediction method of the present invention can be deployed in the intelligent management and control system of the production line to predict the quality of each aluminum alloy casting in real time online, which can effectively reduce the unqualified rate and reduce the flow of unqualified products to subsequent processes, thereby reducing manufacturing costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 It is a schematic flow chart of the real-time prediction method of the manufacturing quality of aluminum alloy castings of the present invention.
[0031] Figure 2 It is a schematic diagram of the installation of the sensor in the method of the present invention.
[0032] Figure 3 The figure is a schematic diagram of an electronic device for implementing the present invention. DETAILED DESCRIPTION
[0033] In order to describe the present invention more specifically, the technical solution of the present invention is described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0034] like Figure 1 As shown, the real-time prediction method of aluminum alloy casting manufacturing quality based on data mining of the present invention comprises the following steps:
[0035] (1) Based on the mold flow analysis results, N temperature sensors, M pressure sensors, Q contact sensors and a multifunctional gas sensor are installed at appropriate locations of the casting mold, where the temperature and pressure sensors are used to measure the temperature and pressure of the aluminum liquid in the mold cavity, respectively, the contact sensor is used to record the time when the aluminum liquid first reaches the sensor, and the multifunctional gas sensor is used to measure the pressure, composition, humidity and temperature of the gas in the mold cavity. N, M and Q are all natural numbers greater than 1.
[0036] The measuring range of the temperature sensor in the present invention is: 0-750℃, accuracy: 1℃, response time: less than 20ms, and maximum pressure resistance: 200MPa. The measuring range of the pressure sensor is: 0-2000bar, accuracy: 1bar, response time: less than 10ms, and maximum temperature resistance: 750℃. The response time of the contact sensor is: less than 3ms, the maximum pressure resistance is: 200MPa, and the maximum temperature resistance is: 750℃. The response time of the multifunctional gas sensor is: less than 1s, the measuring range is: temperature 0-150 degrees, pressure 0-1100mbar, and the components that can be collected are: oxygen, carbon dioxide, and carbon monoxide.
[0037] The installation location of the temperature sensor, pressure sensor, contact sensor and multi-function gas sensor is as follows: Figure 2 As shown in the figure, multifunctional gas sensors are installed at the gas outlets of the dynamic mold and the static mold, and temperature sensors, pressure sensors, and contact sensors are installed on the surfaces of the mold core and cavity that contact the aluminum liquid. Based on the mold flow analysis results, temperature sensors are installed at locations with hot nodes, bubbles, and surface quality problems; pressure sensors are installed at overflow grooves, locations prone to depressions, and locations prone to air entrainment; contact sensors are installed at gates, locations prone to undercasting, air entrainment, overflow grooves, and exhaust ports.
[0038] (2) During casting production, the above sensors are used to collect the aluminum liquid temperature, aluminum liquid pressure, aluminum liquid contact time and cavity gas pressure, composition, humidity and temperature at multiple positions of the mold in real time. Except for the aluminum liquid contact sensor (which is passively triggered), the time when other sensors collect data is given separately and differently.
[0039] In the present invention, the temperature data collected by multiple temperature sensors are used to construct a temperature data set T=(t1, t2, ..., t N ), where t N represents the temperature value collected by the Nth sensor; the pressure data collected by multiple pressure sensors are used to construct a pressure data set P = (p1, p2, ..., p M ), where p M represents the pressure value collected by the Mth sensor; the contact time data collected by multiple contact sensors are used to construct a contact time data set K = (k1, k2, ..., k Q ), where k Q Represents the contact time value collected by the Qth sensor; the pressure, composition, humidity, and temperature data collected by the multifunctional gas sensor are used to construct a gas state data set A = (a1, a2, a3, a4), wherein a1, a2, a3, a4 represent the measured pressure, composition, humidity, and temperature values, respectively; these data constitute an aluminum alloy casting manufacturing process parameter set (T, P, K, A).
[0040] (3) The parameter set (T, P, K, A) collected in real time is input into the aluminum alloy casting manufacturing quality prediction model Q (T, P, K, A) based on data mining, and the model determines in real time whether the quality of the aluminum alloy casting is qualified.
[0041] The construction process of the aluminum alloy casting manufacturing quality prediction model Q (T, P, K, A) in the present invention is as follows:
[0042] 3.1 Collect L sets of historical parameter sets of aluminum alloy casting manufacturing process, and construct the historical parameter matrix D = ((T1, P1, K1, A1), (T2, P2, K2, A2), (…), (T L , P L , K L , A L )) T , where (T L , P L , K L , A L ) represents the Lth group of process parameter sets.
[0043] Collect L aluminum alloy casting quality data corresponding to L sets of aluminum alloy casting manufacturing process historical parameter sets, and form an aluminum alloy casting quality data matrix F = (F1, F2, ..., F L ) T , where F L Represents the Lth aluminum alloy casting quality data value. The aluminum alloy casting quality data includes two types: qualified and unqualified, represented by 1 and 0 respectively.
[0044] 3.2 Perform data preprocessing on the aluminum alloy casting manufacturing process historical parameter matrix D and the aluminum alloy casting quality data matrix F.
[0045] The missing values of the historical parameter matrix D of the aluminum alloy casting manufacturing process are supplemented by the random interpolation method of the same type of mean. For the abnormal values in the historical parameter matrix D of the aluminum alloy casting manufacturing process that exceed 20% of the same type of average value and the abnormal or missing values other than 1 and 0 in the aluminum alloy casting quality data matrix F, the data corresponding to the value are deleted from the historical parameter matrix D of the aluminum alloy casting manufacturing process and the aluminum alloy casting quality data matrix F at the same time; after data deletion, the data volume of the historical parameter matrix D of the aluminum alloy casting manufacturing process and the aluminum alloy casting quality data matrix F changes from L to L″.
[0046] The following formula is used to normalize the data of the historical parameter matrix D of the aluminum alloy casting manufacturing process:
[0047]
[0048] Where: Xnorm is the normalized data, X is the data before normalization, and X min is the minimum value of this type of data, X max The maximum value of this type of data.
[0049] 3.3 Based on the extreme gradient boosting algorithm XGboost, an aluminum alloy casting manufacturing quality prediction model Q(T, P, K, A) is established, in which the aluminum alloy casting manufacturing process parameter set (T, P, K, A) is used as the input of the prediction model, and whether the quality of the aluminum alloy casting is qualified is the output of the prediction model.
[0050] The training objective function of the aluminum alloy casting manufacturing quality prediction model is set as follows:
[0051]
[0052]
[0053]
[0054] I j ={i|q(x i )=j}
[0055]
[0056] Where: Obj is the objective function, T1 is the number of tree nodes, γ is the difficulty coefficient of node segmentation, λ is the regularization coefficient, y i is the true value of the i-th prediction, y′ i (t-1) is the predicted value of the t-1th tree before the i-th sample, I j is the sample set of the jth leaf node, G j is the sum of the first-order partial derivatives of the sample set contained in leaf node j, H j It is the sum of the second-order partial derivatives of the sample set contained in leaf node j.
[0057] 3.4 The data sets of the aluminum alloy casting manufacturing process historical parameter matrix D and the aluminum alloy casting quality data matrix F are divided into a training set and a validation set, where the data volume of the training set is 0.7*L″ and the data volume of the validation set is 0.3*L″. The initialization parameters for the training of the aluminum alloy casting manufacturing quality prediction model are set, including the difficulty coefficient of node segmentation, regularization coefficient, learning rate, maximum depth of the tree, etc. The above-established aluminum alloy casting manufacturing quality prediction model is trained with the data of the training set; the prediction error of the trained aluminum alloy casting manufacturing quality prediction model is calculated using the data of the validation set. The calculation formula of the prediction error c is as follows:
[0058]
[0059] Where: y i is the true value, y′ i is the predicted value.
[0060] If the prediction error c≤c s (c s is the expected error target value set), the aluminum alloy casting manufacturing quality prediction model training is completed; otherwise, the initialization parameters of the aluminum alloy casting manufacturing quality prediction model training are continuously adjusted until the prediction error meets the requirements.
[0061] Below we take a certain automobile aluminum alloy casting shock tower as an example to illustrate the specific implementation of the present invention.
[0062] Step (1): Based on the mold flow analysis results of the shock tower filling process, 6 temperature sensors, 5 pressure sensors, 5 contact sensors, and 1 multifunctional gas sensor are installed at key positions on the shock tower mold.
[0063] Step (2): During actual production, a set of shock tower manufacturing process parameter sets were collected, including temperature data [560, 550, 480, 485, 469, 426] degrees, 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 degrees.
[0064] Step (3): Build and train the shock tower manufacturing quality prediction model. The specific steps are as follows:
[0065] 3.1 22,000 sets of shock tower manufacturing process parameter sets and their corresponding shock tower quality data were collected, with qualified data represented by 1 and unqualified data represented by 0.
[0066] 3.2 The 22,000 collected data were supplemented with missing values and outliers were deleted, and then the data was normalized. After data preprocessing, there were 21,720 data left.
[0067] 3.3 Based on the XGboost algorithm, a shock tower manufacturing quality prediction model is established. The model takes the shock tower manufacturing process parameter set as input and whether the shock tower quality is qualified as output; during the model training process, the difficulty coefficient of node segmentation 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. 70% of the data set is used for model training, and then the remaining 30% of the data set is used to test the model's prediction error. After multiple rounds of training, the model's error dropped to 0.15, which is less than the set 0.2, meeting the prediction accuracy requirements.
[0068] Step (4): Input the shock tower manufacturing process parameter set collected in step (2) into the trained model, and the model predicts that the product quality is qualified. Subsequent inspection finds that the various indicators of the product meet the requirements and the actual quality is qualified, which is the same as the result predicted by this embodiment.
[0069] Accordingly, the present invention also provides an electronic device, comprising a memory and a processor; the memory is used to store one or more programs; when the program is executed by the processor, the processor can implement the above-mentioned aluminum alloy casting manufacturing quality real-time prediction method. Figure 3 The following is a hardware structure diagram of any device with data processing capability loaded with the above-mentioned real-time prediction method for manufacturing quality of aluminum alloy castings, except Figure 3 In addition to the processor, memory and network interface shown, the device in this embodiment may also include other hardware according to the actual function of the device, which will not be described in detail.
[0070] Accordingly, the present invention also provides a computer-readable storage medium, on which computer instructions are stored. When the instructions are executed by the processor, the above-mentioned aluminum alloy casting manufacturing quality real-time prediction method is implemented. The computer-readable storage medium can be an internal storage unit of the above-mentioned device, such as a hard disk or memory, or an external storage device, such as a plug-in hard disk, smart memory card, SD card, flash memory card, etc. equipped on the device. Further, the computer-readable storage medium can also include both an internal storage unit of a device with data processing capabilities and an external storage device, which is used to store computer programs and other programs and data required by the device, and can also be used to temporarily store data that has been output or is to be output.
[0071] The above description of the embodiments is to facilitate the understanding and application of the present invention by those skilled in the art. It is obvious that those skilled in the art can easily make various modifications to the above embodiments and apply the general principles described herein to other embodiments without creative work. Therefore, the present invention is not limited to the above embodiments. Improvements and modifications made by those skilled in the art to the present invention based on the disclosure of the present invention should be within the protection scope of the present invention.
Claims
1. A real-time prediction method for aluminum alloy casting manufacturing quality based on data mining, comprising the following steps: (1) Based on the mold flow analysis results, a temperature sensor, a pressure sensor, a contact sensor, and a multifunctional gas sensor are installed on the casting mold; There are N temperature sensors installed to measure the temperature of the aluminum liquid at different positions in the mold cavity; there are M pressure sensors to measure the pressure of the aluminum liquid at different positions in the mold cavity; there are Q contact sensors to record the time when the aluminum liquid first reaches each contact sensor position; There is one multifunctional gas sensor, which is used to measure the pressure, composition, humidity and temperature of the gas in the mold cavity. N, M and Q are all natural numbers greater than 1. The multifunctional gas sensor is installed at the gas outlet of the dynamic mold or static mold, and the temperature sensor, pressure sensor and contact sensor are installed on the surface of the mold core and cavity that contacts the aluminum liquid; based on the mold flow analysis results, temperature sensors are installed at locations with hot nodes, prone to bubbles, and prone to surface quality problems; pressure sensors are installed at overflow grooves, locations prone to depressions, and locations prone to air entrainment; contact sensors are installed at gates, locations prone to undercasting, prone to air entrainment, overflow grooves, and exhaust ports; (2) During the manufacturing of aluminum alloy castings, the above sensors are used to collect the temperature, pressure, contact time of the aluminum liquid at multiple positions of the mold, as well as the pressure, composition, humidity and temperature of the cavity gas in real time, thereby constructing a parameter set for the aluminum alloy casting manufacturing process; (3) Inputting the aluminum alloy casting manufacturing process parameter set into a pre-trained aluminum alloy casting manufacturing quality prediction model to predict whether the corresponding aluminum alloy casting quality is qualified; wherein the pre-trained manufacturing quality prediction model is obtained by mining the relationship between the historical parameters of the aluminum alloy casting manufacturing process and the aluminum alloy casting quality data.
2. The method for real-time prediction of aluminum alloy casting manufacturing quality according to claim 1, characterized in that: In step (2), the temperature data collected by N temperature sensors are used to construct a temperature data set T = (t1, t2, ..., t N ), where t n is the aluminum liquid temperature value collected by the nth temperature sensor, n∈[1,N]; the pressure data collected by M pressure sensors are used to construct a pressure data set P=(p1,p2,…,p M ), where p m is the aluminum liquid pressure value collected by the mth pressure sensor, m∈[1,M]; the contact time data collected by Q contact sensors are used to construct a contact time data set K=(k1,k2,…,k Q ), where k q is the aluminum liquid contact time value collected by the qth contact sensor, q∈[1,Q]; the gas pressure, composition, humidity, and temperature data collected by the multifunctional gas sensor are used to construct a gas state data set A=(a1,a2,a3,a4), where a1,a2,a3,a4 are the pressure value, composition value, humidity value, and temperature value of the cavity gas, respectively; finally, the above data are used to form the aluminum alloy casting manufacturing process parameter set (T,P,K,A).
3. The method for real-time prediction of aluminum alloy casting manufacturing quality according to claim 1, characterized in that: The process of obtaining a pre-trained aluminum alloy casting manufacturing quality prediction model is as follows: During the manufacturing of aluminum alloy castings, the temperature, pressure, contact time of aluminum liquid at multiple locations of the mold and the pressure, composition, humidity and temperature of the cavity gas are collected through temperature sensors, pressure sensors, contact sensors and multi-functional gas sensors to obtain the historical parameter set of the aluminum alloy casting manufacturing process and perform data preprocessing; Label each sample in the aluminum alloy casting manufacturing process historical parameter set as qualified or unqualified, and then divide the aluminum alloy casting manufacturing process historical parameter set into a training set and a validation set; A manufacturing quality prediction model for aluminum alloy castings is constructed, the manufacturing quality prediction model for aluminum alloy castings is trained using training set samples, and the trained manufacturing quality prediction model for aluminum alloy castings is verified using validation set samples.
4. The method for real-time prediction of aluminum alloy casting manufacturing quality according to claim 3, characterized in that: Data preprocessing of the historical parameter set of the aluminum alloy casting manufacturing process includes: supplementing missing values, deleting outliers and normalizing data values. The method of random interpolation of the same mean is used to supplement the missing values in the parameter set.
5. The method for real-time prediction of aluminum alloy casting manufacturing quality according to claim 1, characterized in that: The aluminum alloy casting manufacturing quality prediction model adopts a decision tree model based on the XGboost algorithm.
6. The method for real-time prediction of aluminum alloy casting manufacturing quality according to claim 3, characterized in that: The specific process of training the aluminum alloy casting manufacturing quality prediction model using the training set samples is as follows: Initialize the training parameters of the aluminum alloy casting manufacturing quality prediction model, including the difficulty coefficient of node segmentation, regularization coefficient, learning rate, and maximum depth of the tree; The aluminum alloy casting manufacturing quality prediction model is continuously trained using training set samples; After training, the prediction error of the aluminum alloy casting manufacturing quality prediction model is calculated using the validation set samples; If the prediction error is less than the error threshold, the training of the aluminum alloy casting manufacturing quality prediction model is terminated; Otherwise, the training parameters of the initialization aluminum alloy casting manufacturing quality prediction model are continuously adjusted and retrained and verified until the prediction error meets the requirements.
7. An electronic device, comprising a memory and a processor, characterized in that: The memory is coupled to the processor, wherein the memory is used to store program data, and the processor is used to execute the program data to implement the real-time prediction method for manufacturing quality of aluminum alloy castings as described in any one of claims 1 to 6 above.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for real-time prediction of the manufacturing quality of aluminum alloy castings as claimed in any one of claims 1 to 6 is implemented.
