Recurrent neural networks as virtual cavity pressure and temperature sensors in high-pressure die casting
산업용 섬유 · (17) 스펀본드 부직포
기본 정보
- 저자
- DOI
- 10.1007/s00170-024-14270-8
- 저널
- The International Journal of Advanced Manufacturing Technology
- 발행년도
- 2024
- 발행기관
- Springer Science+Business Media
- 피인용수
- 2
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1007/s00170-024-14270-8
- 토픽
- Injection Molding Process and Properties
- OpenAlex ID
- W4402011377
평가 내용
- 관련도
- 사업분야
- 산업용 섬유 · (17) 스펀본드 부직포
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '산업용 섬유 > 스펀본드 부직포' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
본문 50,375자
본문 펼치기
섹션 본문 73문단 · 48,894자
(제목 없음)
1High-pressure die casting (HPDC) is a permanent mold-based production technology that facilitates the casting of near net shape components from nonferrous alloys.The pressure and temperature conditions within the cavity impact the cast product quality during and after the conclusion of the die filling process.Die surface cavity sensors can deliver information describing the conditions at the die-casting interface.They are associated with high costs and limited service lifetimes below the achievable total cycle count of the die inserts and therefore ill-suited for industrial use cases.In this work, the suitability of long short-term memory (LSTM) recurrent neural networks (RNN) for substituting physical cavity temperature and pressure sensors virtually after the production ramp-up or at the end of the sensor service life is investigated.Training LSTMs with data of 233 casting cycles with different process parameters provides networks which are then applied to 99 further cycles.The prediction accuracy is investigated for different time interval lengths in the solidification and cooling phase.For longer time intervals, the cavity pressure prediction deteriorates, potentially due to a highly individual and hardly ascertainable buildup of casting distortion and internal stresses.Overall, however, the accuracy of the developed LSTMs is excellent for the cavity temperatures and good for the cavity pressures.
Introduction
2Key Industry 4.0 paradigms such as real-time quality prediction and predictive maintenance rely on the availability of production process data at adequate granularity and sufficient precision to feed engineering models on the edge or in the cloud.Practical issues can arise as suitable information from the production processes is often neither persisted nor available in close to real time.Pre-aggregations as summaries of data such as averages with limited resemblance of the time-dependent physical phenomena within the production process can limit the utility of captured data.In manufacturing processes such as high-pressure die casting (HPDC), high-resolution numeric-based information from cavity, where the mechanical and thermal interactions between the casting and tooling system occur, is rarely available.Virtual sensors are one element of Industry 4.0 suited to Maximilian Rudack and Michael Rom contributed equally to this work.
3Extended author information available on the last page of the article address such challenges due to their ability to deliver information without relying on a physical measurement signal from the area of interest [1].
4HPDC as one of the representatives of permanent moldbased primary shaping processes is well suited to investigate the feasibility of virtual sensors since defect formation during manufacturing often occurs in the cavity where process data availability is sparse.The absence of data from relevant physical areas of interest such as the die and its cavity can limit the overall scope of application for machine learning (ML) models in HPDC processes [2].Multiple publications related to the use of ML approaches in HPDC applications [3][4][5] indicate that the lack of data granularity and their structure as mostly tabular summaries of data are also limiting the effective and wide-spread adoption of ML in this domain.Architecturally, the Internet of Production [6] provides an underlying infrastructure and suitable mechanisms to handle full-resolution raw production process data between the edge and the cloud to enable seamless transfer to downstream applications such as ML models.To overcome the lack of granular direct process feedback from the HPDC die cav-ity, we investigate to what extent recurrent neural networks (RNNs) are suited as substitution models for physical cavity sensor data to deliver HPDC process feedback describing the phenomena at the die-alloy interface without permanent reliance on costly additional measurement instrumentation.
5The paper is structured as follows: In Sect.2, the state of the art regarding virtual sensors, ML in HPDC, as well as the foundations of RNNs and background on time series prediction are introduced.In Sect.3, the experimental setup and conditions for the creation of the training and test data sets are summarized.Section 4 describes the ML approach developed in this work and the metrics used to evaluate the prediction accuracy.In Sect.5, we present the predictions of the RNN-driven virtual sensors and the physical sensor data and quantify the model error.The results are discussed in Sect.6 with regard to the replication quality of the RNN virtual sensor signals in light of the underlying physical phenomena at the die-alloy interface.Lastly, Sect.7 summarizes our findings and gives an outlook on future work required to push towards the feasibility of virtual HPDC die cavity sensors.
State of the art
6The conceptual foundations of virtual sensors as well as a selection of works relevant to the issue of ML in HPDC are introduced in Sect.2.1.Then, Sect.2.2 summarizes basic background on time series prediction and RNNs and provides the theoretical reasoning as to why this class of neural networks is potentially well suited to predict high-resolution cyclical cavity sensor time series data in mold-based production processes such as HPDC.
Virtual sensors and machine learning in HPDC
7The concept of virtual sensors originated in the domain of control engineering [7] long before the advent of Industry 4.0.Functionally, a virtual sensor serves the purpose of abstracting physical sensor signals from measurable properties [8] with a non-simplistic relation to the target signal.Concurrently to the increasing prevalence of Industry 4.0 infrastructures and applications, virtual sensors are a research field of renewed interest.Potential applications for virtual sensors include predictive maintenance [9] of various types of machinery as well as the automated detection and consecutive substitution of faulty sensors with their virtual counterpart [10].
8Mold-based production processes such as HPDC are realized via highly automated production cells which provide machine data from numerous programmable logic controls (PLCs) at various granularity levels ranging from millisecond resolution time series to data points delivered once per pro-duction cycle.The HPDC process as one of the most highly automated primary shaping processes is therefore often referenced as being particularly rich in data and well suited for ML applications.Yet, data relating to the physical occurrences within the die during the cavity filling stage and consecutive solidification of the cast alloy are sparse and typically require costly sensors to be captured [11].From a process control and diagnostics point of view, cavity sensors can be useful additions to extend the conventionally available HPDC process quality data with direct information from the cavity during the casting process.However, ambiguous data can be included since the data are indirect and may be partially distorted due to the measurement principle.An example of HPDC process data is thermography images from the die after the ejection of the casting which are distorted by different emissivities of the involved die surfaces.Having a direct temperature signal from the surface enhances the ability to detect casting defects induced by insufficient alloy temperatures such as cold shuts or incomplete filling while the pressure signal can aid to locally estimate the density of the casting [12].Data such as the time-dependent pressure reading from hydraulically driven shot end are indirect in their feedback character as they relay differential pressure from the hydraulics cylinders of the injection system to calculate the intensification pressure rather than the actual cavity pressure.Design space to access the cavity surface with physical sensors is limited, and their integration is associated with significant costs and additional design efforts.Additionally, their service life is often limited due to harsh physical conditions within the HPDC die.
9The applicability of multiple ML methods including margin-, instance-, tree-, and ensemble-based ML algorithms as the underlying substitution models for physical HPDC cavity sensors has been investigated by Etxegarai et al. [13].The authors use HPDC as one example to explain the potential of virtual sensors.They apply a decision tree, random forest, k-nearest neighbor, and support vector regression to predict cavity temperature and pressures for several casting cycles and obtain widely varying results.In order to integrate virtual sensor data for quality prediction, [14] uses a random forest regressor as a virtual cavity temperature sensor which leads to a good prediction shown for a single casting cycle.Overall, the ML methods in these two works showed promising results which can potentially be built upon by applying deep learning ML models with the ability to conserve time series data via contextualization of the upcoming value prediction in light of the temporal value history.
Background on time series prediction
10In a classical artificial neural network (ANN), each data point fed into the network is treated independently of the rest of the data.This may pose a problem in the case of time series data.For such sequential data, usually, recurrent neural networks (RNNs) are used which take into account previous inputs and therefore are said to have a memory.When the current state of a hidden layer of an RNN is computed, not only the output of the previous layer is considered (as done in an ANN) but also the state of the hidden layer at the previous time step.This allows for capturing time dependency.A long short-term memory (LSTM) RNN [15] has a more complex structure than a standard RNN to learn long-range dependencies and to avoid the problem of vanishing gradients.This is done by introducing memory cells, which remember computed values over possibly long time intervals, and gates, which adjust the input of information into the memory cells and their output.In this work, we use LSTMs even though their more complex structure leads to a more time-consuming training compared with standard RNNs.Details on the mathematical representation of RNNs and LSTMs can be found, e.g., in [16].
11Please note that our setting does not conform to a classical time series prediction task which would mean to forecast future behavior based on a given time series used as input.For the HPDC process, this would correspond to, e.g., predicting the solidification phase sensor signal of a casting cycle based on the given filling phase of that cycle.Instead, our objective is to predict complete casting cycles based on proxy input signals.LSTMs have turned out to be superior compared with classical ANNs in our setting since they better capture interdependencies within the casting cycles.
12Regarding time series prediction, there is a wide range of methods such as auto-regressive integrated moving average (ARIMA), exponential smoothing (ETS), filtering-based methods, support vector machine (SVM), RNN, LSTM, gated recurrent unit (GRU), or autoencoder (AE) to name only a few.A comparative study of these methods for our HPDC setting is out of the scope of this work.However, choosing the LSTM for our investigations is justified by the experience that LSTMs are well suited for complex highdimensional time series problems and usually superior to "conventional" methods such as ARIMA, ETS, or SVM [17,18].
Experimental procedure
13In the following, we summarize the experimental setup and procedures employed to generate the original data set.Section 3.1 introduces the physical configuration of the experimental die as well as its information system architecture.The HPDC parameters under which the data set used to train the model was created are outlined in Sect.3.2.
Experimental setup and recorded data
14The HPDC cast specimen and discrete measurement locations for the die surface pressure ( p) and temperature (T ) are depicted in Fig. 1.Pressure and temperature are measured at two flow distances of 109 mm ( p 1 , T 1 ) and 557 mm ( p 2 , T 2 ) from the ingate for both quantities in a cavity with a wall thickness of 3 mm and a maximum flow length of 680 mm.Additional sensor positions are located before the ingate and equidistant to the two actively used locations 1 and 2, but no sensors are installed and they are sealed with steel dummies as indicated in Fig. 1.The temperature sensor is a low thermal inertia thermocouple type K fused with the steel of the sensor hull.The surface pressure is measured via a piezoelectric sensor.Both are specified to operate up to a metal front temperature of 750 • C and 2000 bar cavity pressure.The sensors are mounted in step holes drilled through the cavity surface and held in place via hollow steel spacers fixated via a back plate as depicted in Fig. 2.
15The cavity sensor signal is sampled with 2000 Hz and recorded for 8 s after the plunger leaves the initial position behind the pour hole and the slow shot commences.The casting plunger then moves towards the changeover point at which the acceleration towards the filling velocity shall occur.Consequently, the raw recording includes temperature and pressure conditions at the die surface before, during, and after filling of the cavity during solidification.Additionally, the cavity evacuation pressure behind the vacuum valve in the evacuation tube, the plunger path, and the head pressure and counter pressure in the hydraulic drive cylinder are recorded.The effective pressure represents the calculated differential pressure between the head and counter pressure adjusted for the differences in cylinder surface area as well as the surface area of the casting plunger.Consequently, what we call effective pressure is the hydraulically transmitted pressure at the casting plunger face which is typically referred to as intensification pressure in the HPDC context and allows to compare the hydraulically applied pressure and the actual measured cavity pressure on the same scale.
16All other process data from the HPDC cell are either recorded as time series data at around 1 Hz or as process phase linked data, e.g., once per cycle or cycle phase.The intervalbased data structure is described in greater detail in [19] and is therefore omitted here.For this investigation, all data were streamed to the cloud and consecutively stored in an object store.The ML-driven virtual sensor model is then derived from those data.The data streaming architecture is depicted in Fig. 3 and consists of multiple layers.Data from the HPDC cell subsystems, including the high-resolution measurement system for the cavity sensors, are either available from their PLCs or dedicated measurement systems which run vendor-implemented OPC UA [20] servers.These servers are accessed from an edge server where Node-RED [21] is deployed to contextualize the data and forwarded to the cloud as separate JSON messages.On the cloud side, all messages are processed with Apache Kafka [22] before they are batched and stored as CSV data in an object store.The setup can be adopted to integrate the virtual sensor model on the edge or in the cloud.The interval-based batch type data such as the 8 s time series of 2000 Hz sensor measurements are transmitted as arrays within one JSON message each as
Casting experiment and resulting data set
17The cavity pressure and temperature sensor measurement data used to train the LSTMs is gathered experimentally from a lab-scale HPDC die on a 500t Oskar Frech DAK450-40 horizontal cold chamber HPDC machine processing an AlSi9Mn non-heat treatable structural alloy.With the experimental setup described above, a total of 360 HPDC cycles distributed over four batches of 90 castings per run were conducted.The batches are further split by half with each containing 45 cycles with different process settings.Consequently, the initial data set contains eight different process settings and the initial cycles of a batch contain the start-up cycles before the process reaches a thermal quasi-steady state.Table 1 summarizes the process settings and the number of cycles.
18Six HPDC parameters are varied within the data set with all other settings such as the spraying and blowing pattern, vacuum application, or cycle timing remaining unchanged.Between batch 1 and batch 2, the temperature of the thermoregulation oil at the outlet of the heating and cooling units towards the HPDC die is varied between levels of 120 • C and 200 • C, while within the batches, the intensification pressure applied to the metal is varied between 500 bar and 750 bar.The intensification pressure of 500 bar corresponds to the static pQ 2 pressure limit for the chosen shot end and plunger combination.In this setting, the intensification unit is inactive, it is only in use for the intensification pressure buildup to the levels of 600 bar and 750 bar.The purpose of the variations between and within batches 1 and 2 is to provide the LSTM with sensor data capturing different pressure and temperature conditions at the interface as the heat transfer should be impacted by such changes.
19For batch 3, the intensification unit is active for all cycles and set to 600 bar, while the changeover point at which the plunger reaches the fast shot speed is moved between positions in front of and behind the ingate in order to vary the point in time, and partially stroke, of the initial sensor response.It is noted that the time variance of the initial sensor response is predominantly caused by process fluctuations in the slow shot as it takes longer at times around 1200 ms compared to 30-90 ms for the fast shot.
20Lastly, batch 4 corresponds to an HPDC process run at deliberately elevated temperatures.This is realized by increasing the melt temperature, the thermoregulation medium temperature, and the dwell time before the die is opened.Fast shot velocities, and therefore filling times, separated by a factor of 3 are introduced to provide data where the alloy temperature loss during filling and the time required for the melt to move from sensor location 1 to sensor location 2 is varied.The actual resulting temperatures and pressures are then recorded with the natural cycle-to-cycle variations of the HPDC process including the heat-up cycles before reaching the thermal quasi-steady state.
Machine learning approach
21In the following, we present the developed ML approach.Initially, we describe the required preprocessing on the original data set in Sect.4.1.Then, in Sect.4.2, the specific setups of the neural network and its training are provided.In Sect.4.3, we introduce three accuracy metrics to quantitatively evaluate the results of the neural networks.
Data preprocessing for neural network
22As described above, the cavity sensor data are recorded for 8 s at 2000 Hz from the point in time where the plunger starts its motion.We cut out sequences of varying duration of these 8 s recordings for the virtual sensor signal prediction with the goal of assessing the impact of different input preprocessing on the LSTM as explained in the following.The slow shot phase is characterized by a nearly constant effective pressure induced by the friction between the plunger and the drive system such that only a negligible part of this phase is needed to predict the corresponding cavity sensor values.Hence, for each cycle, we search for the point in time at which the effective pressure for the first time reaches 50% the maximum effective (intensification) pressure of the corresponding cycle.We choose this criterion as it delivers a reliable indication regarding the point in time and stroke of the conclusion of the cavity filling step directly from the hydraulics system without requiring further context of parameter changes or cycle-to-cycle fluctuations in properties such as the dosing volume.We then only use the data 0.2 s prior to this point and discard any former data as any data beyond this threshold predates the actual cavity filling step.Subsequently to this point, we consider 0.5, 1.0, or 6.0 s.We base the choice upon the solidification time in the 3-mm thick wall sections as it is around 1.0 s, and the durations represent different physical states of the alloy, namely partially liquid, solidified, and significantly cooled subsequently to solidification.The segmentation enables the controlled assessment of whether and how the LSTM can discern physical effects related to the alloy state evolution as we expect significantly different model prediction qualities between these scenar- ios.The underlying reasoning from a physical perspective is that the pressure signal transitions from an initially primarily hydraulic phenomenon during the stage in which the alloy is predominantly liquid to a mechanical problem as the contact pressure of the solidified alloy is governed by the distortion of the increasingly rigid casting in the die cavity.We assume that the overall prediction quality of the neural networks is impacted by this physical effect and the temporal segmentation serves the purpose of decreasing the superimposition of these effects in the input data.This influence is specifically investigated in Sect. 5.
23Out of the 360 cycles, a total of 28 cycles are removed from the data set due to corrupted experimental data, e.g., in cases where the cycle time was highly irregular due to operator actions at the machine.We split the data of the remaining 332 cycles into 70% training data and 30% test data, i.e., 233 cycles are used to train the neural networks and 99 exclusively for testing the trained networks.The splitting is implemented in a shuffled fashion such that both the training and the test data set contain cycles of each of the eight test cases listed in Table 1.Note that we cannot and do not shuffle the data within one cycle since this would invalidate the time series character.Due to the recording at 2000 Hz, the sequence lengths of 0.7, 1.2, and 6.2 s lead to 1400, 2400, and 12,400 data points per cycle.Hence, with 233 cycles used for the training and the remaining 99 for testing, we end up with data sets of size 326,200, 559,200, and 2,889,200 for training and 138,600, 237,600, and 1,227,600 for testing.The input and target values are standardized prior to the training of the neural networks by applying the z-score method such that the data of each input and target quantity have a mean value of zero and a standard deviation of one.Consequently, our investigation exclusively relates to offline predictions as it is restricted to the limited size data set.
Neural network and training setup
24We choose a neural network consisting of an input layer, three LSTM layers, and a linear output layer.We use more than one LSTM layer and, hence, a stacked LSTM because this has turned out to provide slightly better predictions in our complex scenario than a single-layer LSTM.The LSTM layers contain 30 neurons each.As several tests with more neurons per layer have shown no improvement in prediction quality, this provides a network being wide enough.The implementation is realized using PyTorch [23].
25The first six input quantities for our LSTM are the programmed process parameters from Table 1.Over an HPDC cycle, the particular values listed in the table remain unchanged.Three further input quantities are the effective pressure computed from the head and counter pressure, the plunger position, and the cavity evacuation pressure, each at 2000 Hz resolution.The data for these three quantities are taken from the measured time series data and, hence, vary for each cycle.
26For the investigation of the applicability of virtual neuralnetwork-derived cavity sensors in HPDC, we distinguish between two settings: first, we solely predict two of the four cavity sensors, namely the second pressure ( p 2 ) and the second temperature sensor (T 2 ), such that the other two sensors ( p 1 , T 1 ) provide additional input data for the LSTM.Consequentially, in this setting, the LSTM has two further inputs in addition to the six configuration inputs from Table 1 and the three high-resolution inputs from the shot end and evacuation system mentioned above.In the second setting, we train the LSTM to predict all four cavity sensors.This allows us to evaluate whether we can replace all cavity sensors while still obtaining a reasonable prediction accuracy.Overall, the first LSTM contains 11 inputs and two outputs, while the second LSTM has nine inputs and four outputs.
27We choose the L-BFGS optimizer [24], which is a quasi-Newton method, and the mean-squared error (MSE) as the loss function.For the nonlinear activation, we apply the hyperbolic tangent.In the PyTorch implementation of RNNs and LSTMs, the weights and biases of the neural network are initialized by sampling from the uniform distribution
28where k is set as one divided by the number of neurons in the hidden layers such that k = 1/30 in our case.
Accuracy metrics
29For the quantitative evaluation of the neural network predictions, we use several accuracy metrics computed for all predicted sensor temperatures and pressures.All metrics are computed on a per cycle basis, and in Sect.5, we also discuss the values averaged over all cycles as defined below.The first two metrics express the quality of the overall prediction for all values within the considered sensor data time sequence.
30First, the mean absolute percentage error (MAPE) is computed by
31where i denotes the particular cycle, y i, j and t i, j are the jth neural network prediction and target value, respectively, for that cycle, and N denotes the number of data points of one cycle, i.e., N = 1400, N = 2400 or N = 12,400 depending on the sequence length (0.7, 1.2, or 6.2 s).The MAPE is the arithmetic mean of the absolute values of the relative errors of the predictions with respect to the corresponding targets and should be close to zero.The MAPE averaged over all cycles is computed by
32with N c the number of cycles such that N c = 99 for the test data.
33Second, the coefficient of determination for each cycle, which is also called R-squared, is given by
34where ti is the arithmetic mean of the target values of cycle i.The best possible R-squared value is one.If a model always predicts the mean value, R-squared is zero.If the model predictions are worse than the mean, R-squared is negative.Analogously to Eq. 2, we consider the average over all cycles by computing
35Third, we compute e max,rel,i = max y i,1 , . . ., y i,N − max t i,1 , . . ., t i,N max t i,1 , . . ., t i,N ,
36i.e., the relative error of the predicted sensor signal maximum during one HPDC cycle with respect to the maximum of the target signal.This allows us to evaluate whether pressure and temperature peaks are captured adequately by the neural networks.Averaged over all cycles, we get
Results
37In the following, we present the results of the two neural networks set up according to Sect. 4. 4 depicts the training and test loss per epoch for the network with 11 inputs and two outputs.In all three cases, the mean-squared error rapidly decreases within the first 100 epochs for both the training and the test data.After that, the training error is further reduced slightly.In contrast, the test error starts to increase after 300 epochs at the latest in all three cases.This indicates slight overfitting as also observable in Fig. 5, see below.However, the MAPE and R-squared values for the test data still improve after epoch 300.Hence, Figs. 6, 7, 8, 9, and 10 and Tables 2 and 3 present the results of epoch 400.
38All qualitative and quantitative results discussed in the following refer to the application of the two trained neural networks to the test data.
39The relative errors in Fig. 5 reveal a similar behavior as the loss discussed above.The plot depicts the maximum error over all cycles of the test data set, i.e., max i e max,rel,i with i ∈ [1, . . ., N c ], cf.Eq. 5, and the average over all cycles ēmax,rel according to Eq. 6 regarding the prediction of p 2 computed with the network with nine inputs and four outputs.All curves but the one for the maximum error with sequence length 6.2 s (solid line, green) rapidly decrease in the beginning and then slightly oscillate around their minimum value.From epoch 300, an increase in the maximum error for the cases 1.2 s (solid line, blue) and 6.2 s (solid line, green) can be discerned.
40The prediction of the temperature signal T 2 in the case of a sequence length of 1.2 s can be seen in Fig. 6 for 15 randomly chosen exemplary cycles.Every data point on the abscissa corresponds to 0.5 ms on the time scale based on the physical sensor data.The virtual sensor signal output is computed by the network with 11 inputs and two outputs.The overall accuracy of the prediction is very good.Slight deviations are visible, particularly in the second and the fourth cycle.
41Figure 7 shows the prediction of the pressure sensor signal p 2 corresponding to Fig. 6, i most cases, the network is capable of replicating the pressure maximum and capturing the pressure evolution after reaching peak pressure which follows two distinct scenarios.In the first one, the pressure rapidly falls from the peak towards values below 100 bar within the measurement sequence, while the second case is characterized by pressure readings that stay at elevated levels around or above 300 bar until the signal sequence terminates.Especially in the latter case, the pressure curves after the occurrence of the pressure maximum cannot be predicted adequately in multiple cycles.This indicates that the neural network has no capability to discern a physical effect such as the transition from hydraulic to mechanic pressure transmission onto the sensor head surface as the alloy solidification progresses, as discussed in more detail in Sect.6. Figure 8 plots the MAPEs and the coefficients of determination (R-squared) according to Eqs. 1, 2, 3 and 4 for all 99 test cycles.The values are those computed for cavity sensors T 1 and p 1 using the network with nine inputs and four outputs data point In order to investigate the impact of the sequence length on the neural network prediction, we study a single representative cycle as presented in Fig. 9 for the temperature T 1 predicted with the network with nine inputs and four outputs.The predictions with a sequence length of 0.7 s (blue) and 1.2 s (green) are similar to each other and predict the target curve (red) well.In contrast, the prediction in the case of a sequence length of 6.2 s (orange) deviates from the other predictions.However, the prediction is still qualitatively accurate, but a kink in the predicted sensor signal cycle index i MAPE, R-squared occurs at approximately 4.2 s.At that time, the effective pressure also plotted in Fig. 9 (black) drops almost instanby about 250 bar when the intensification unit is switched off by the machine control.As p eff is used as input to the neural networks, the change in hydraulic pressure is reflected in the temperature prediction, where the prediction of T 1 drops from 322 to 307 • C. The sudden change of the input p eff has an influence on the prediction in the whole time range since the approximation adapts to this change.Notably, the physical sensor reading does not exhibit this effect indicating a purely data-induced effect without roots in the physics of the casting process.Furthermore, the target temperature curve is smooth in its character, while the orange curve for 6.2 s of prediction duration exhibits slight oscillations and unusual curvatures which are inconsistent with the expectable physical effects at the measurement site.
42The influence of the sudden drop of p eff is more apparent in Fig. 10, which also shows the prediction of one exemplary cycle, this time for the pressure p 2 .Again, the predictions for the shorter sequence lengths of 0.7 s (blue) and 1.2 s (green) agree well to each other, predicting the pressure maximum accurately but deviating from the local minimum at about 0.35 s and the local maximum at about 0.45 s by approximately 8 % and 4 %, respectively, which provides an acceptable approximation accuracy.Similarly as above, the prediction for the long sequence length of 6.2 s (orange) significantly deviates.It still provides a reasonably good approximation of the target curve (red) in the regression sense but fails to capture the pressure maximum or the further behavior of the curve including the local minimum and maximum.
43Quantitative results for MAPE and R-squared averaged over all cycles according to Eqs. 2 and 4, respectively, are summarized in Table 2 for all six test cases.The values for the temperatures T 1 and T 2 with ēMAPE between 0.01 and 0.0212 and Rsq between 0.971 and 0.996 indicate the accurate predictability of the cavity temperature sensors.The influence of the sequence length is insignificant.
44Regarding the pressures p 1 and p 2 , however, MAPE and R-squared in general deteriorate with increasing sequence length.This is due to curves such as the fourth cycle in Fig. 7 not being correctly predicted after the pressure peak.For the shorter sequence lengths of 0.7 and 1.2 s, the prediction of p 1 is slightly better than the prediction of p 2 .The sequence length of 6.2 s exhibits particular extreme values of 0.33 and 0.419 for ēMAPE and Rsq , respectively.Hence, with the currently available data, an accurate prediction of the cavity pressure cannot be guaranteed for all cycles.
45Comparing the two neural network setups (11 inputs, two outputs or nine inputs, four outputs), it becomes evident that the predictions of T 2 and p 2 are only slightly improved when the data of the first cavity sensors (T 1 and p 1 ) are used as input values (network with 11 inputs and two outputs).This small improvement applies to all but one value: Rsq for p 2 with sequence length 1.2 s even worsens from 0.91 to 0.897 despite the additional information.As a consequence of these findings, substituting all four cavity sensors with virtual sensors is a reasonable approach.Analogously to the errors plotted in Fig. 5, Table 3 lists the maximum of the relative error (5), i.e., max i e max,rel,i with i ∈ [0, . . ., N c ], and the average ēmax,rel according to Eq. 6 for all six test cases.The general trend in the results is similar to what is observable in Table 2.The prediction quality for the maximum temperatures with respect to T 1 and T 2 worsens negligibly with increasing sequence length, while the corresponding errors for p 1 and p 2 increase considerably.
46The average errors of at most 2.3% for the temperature and 7.1% for the pressure demonstrate that the maximum temperatures and pressures are generally predicted with a sufficient accuracy.However, while the maximum error for the temperatures only reaches up to a still small value of 5.6%, the maximum for the pressure amounts to 29.3%.This underlines the complexity of accurately predicting the pressure conditions in the cavity.
47As discussed above, the benefit of using additional cavity sensor data as input values for the neural network is small.Table 3 confirms that behavior.Some errors become larger despite the presence of additional input data, in particular the maximum error for p 2 with sequence length 0.7 s (11.4% compared with 9.1%) and the average error for p 2 with sequence length 1.2 s (3.3% compared with 3.1%).
Discussion
48The utility of a virtual sensor model depends on its ability to derive an adequate representation of the desired sensor signal at the location or area of interest from substitute inputs.
49The prediction targets temperature and pressure at the cavity surface in our study relate to a physical process with multiple highly time-dependent and superimposed effects.These include the release of heat from the casting during solidification and cooling, the development of the contact pressure at the interface, the gap formation between the casting and the die, and the fluctuations in the plunger motion profile.
50One key finding relates to the interdependence of the input and prediction duration of the sensor signal and the resulting deviation of the prediction from reference measurement.
51In our implementation, the prediction is always centered around the point in time where the metal back pressure induced effective differential pressure p eff in the hydraulics system during cavity filling reaches 50% of the maximum intensification pressure.The longer the duration of the prediction from that point in time forward, the lower the quality of the prediction within the full-time interval of prediction.This is consistently evident from the computed accuracy metrics for the temperature as well as the pressure prediction.
52The LSTM performs better with less temporal input duration when one could assume that the additional availability of longer-range temporal value history should improve the result or at least favor better generalizability.This becomes evident in Figs. 9 and 10 where the model with a prediction time interval of 6.2 s generally yields less precise sensor data replications.This effect may be attributable to two partially related and superimposed phenomena.Firstly, the data set is still small in terms of the absolute number HPDC cycles, especially after the introduction of the train-test split.Potentially, there simply is not enough data for the neural network to learn the effects responsible for the pressure conditions at the interface from the available data, especially during and after solidification.Secondly, as seen in the magnified perspective in Fig. 10, the increased sequence length of captured shot end sensor input data and consequently increased prediction output duration degrades the model performance during the predominantly hydraulic pressure transmission in the first hundreds of milliseconds after the initial sensor response.The buildup of casting distortion and internal stresses is highly individual from cycle to cycle and difficult to describe.Consequently, it seems reasonable to assume that the failure of the LSTM to discern between the long-term pressure development at 6.2 s stems to some extent from the lack of observations.We note that the cavity pressure sensor readings only exhibit an evolution where they remain elevated above or around 300 bar if the intensification unit is active, i.e., the unit is set to target values of 600 or 750 bar above the static pQ 2 limit of that specific shot end and plunger combination.As the solidification time is generally at or below 1.0 s for the 3 mm wall thickness casting, it is unreasonable to assume that any pressure is transmitted hydraulically via molten metal in the 6.2 s scenario in the last 5.2 s of the prediction interval.It has to be assumed that the initial rapid pressure buildup to a higher level causes a different mechanical behavior of the solid casting during cooling.The cavity pressure after plunger deceleration behaves similarly for all process conditions and strong differentiation in the character of the reading only occurs after solidification, e.g., after the initial second after the end of cavity filling.The effect on the model is most likely similar to the lack of observations for the 6.2 s scenario.As there are no significant character changes from cycle to cycle in the pressure sensor readings during the first second, the process of learning the hydraulically driven relationships between cavity pressure and shot end data can seemingly be achieved with a lower amount of cycles in the data set, especially in light of the absence of outliers later in the predicted time series.
53A related effect is apparent for the temperature readings as presented in Fig. 9. Similarly to the pressure signal, the curvature of the sensor reading shifts significantly from the actual reading in the 6.2 s scenario, whereas the 0.7 s and 1.2 s scenarios enable predictions with good precision qualitatively as well as quantitatively.While it cannot be known exactly how the neural network processes the inputs internally, purely based upon the visual assessment of Fig. 9, it seems reasonable to assume that the noise of the effective pressure reading as well as the moment of the intensification unit deactivation impact the temperature sensor prediction as reflected in the oscillations of the predicted time series signal and the distinct kink at 4.2 s coinciding with the intensification pressure drop.Both are not effects that can be observed in the reference measurement of the temperature.Apparently, the LSTM processes the data in such a manner that changes in the pressure conditions in the hydraulics unit after the end of solidification still impact the thermal conditions at the sensor site.The resulting temperature prediction consequently appears to contain traces of the hydraulic pressure signal.From an engineering point of view, a relationship between the pressure and temperature conditions seems entirely reasonable, especially during the filling and initial solidification stage of the process where pressure from the plunger is transmitted to the sensor site via liquid or mushy alloy sections.Any RNN is of course a mathematical construct that processes data mostly non-deterministically, without the knowledge of the underlying physical mechanisms.For our data set, it struggles to generalize for long-range prediction intervals but performs excellent in shorter prediction intervals with temporal proximity to the filling stage.
54We conclude that LSTMs seem to be generally suited for the task of delivering virtual sensor signals for the HPDC cavity sensor use case, but as a purely data-driven approach they exhibit the disadvantage of being a black-box method.
55The focus of the work was laid on the LSTM's suitability to replicate the physical sensor data based upon the model inputs.In order to do so, the virtual LSTM sensor output has to deliver reliable information, especially for casting cycle outliers which may indicate castings which are highly likely to not meet quality specifications.That is, the virtual sensor must perform well, especially in cases where the thermal or pressure conditions deviate significantly from the steady state conditions.In Fig. 8, MAPE and R-squared can be significantly degraded for both, temperature and pressure, in a limited number of cases.While these generally do not fall into the category of orders of magnitude deviations, they may limit the reliability of the virtual sensor if the deviation reaches a threshold where a higher-level quality model would indicate a casting defect such as a cold shut or incomplete filling and cause a reject part to be deemed compliant with quality specifications or vice versa.The black-box approach therefore carries an intrinsic risk of providing deviations from the physical reading in critical scenarios.Hence, it is unlikely that LSTMs can be relied upon unconditionally without the addition of physical context.The simplest form adding such physical context is the temporal segmentation of the time series input data as in our study.Effectively by cutting out the solid state distortion phenomena after solidification, the model becomes very good at predicting the initial pressure peaks in the cavity.This precision is lost after the conclusion of solidification step.Neural networks that are provided with additional physical context regarding the relationships between the inputs and the prediction are referred to as physics-informed neural networks (PINNs) [25] and rely on the provision of adequate differential equations to achieve improved model performance by combining the strengths of physics-based models and data-driven approaches.
56Based upon the results for the LSTM, we believe that the ability to access the previous value outputs of the model is beneficial for the application.However, as seen for the prediction scenario for a duration of 6.2 s, the availability of a value history which does pertain to different physical effects may translate to a model incapable of discerning inputs in a manner that yields sufficiently precise virtual sensor signals.
57Consequently, further research will be conducted on larger data sets to investigate to what extent data preprocessing and the provision of physical context can be realized to train models with similar precision regardless of the prediction interval and despite the superimposition of different physical effects.Additionally, the investigated HPDC process is conducted in a lab-scale environment where key parameters such as the alloy temperature in the holding furnace, the dosing procedure, or environmental conditions can be controlled tightly.Some inputs such as the actually measured alloy temperature per cycle have negligible impact on the model performance in the investigated data set, and their inclusion as additional inputs may even degrade the quality of the predictions.In a production environment, however, HPDC process parameters can fluctuate with larger magnitudes depending on the actual conditions specific to a production site and may induce less precise predictions of a model derived from a stable process.
58Another drawback is the latency of the virtual sensor data availability due to the delay with which the input data is accessible for the model.An online prediction would still face a delay of 8 s after the initial plunger movement as the highfrequency data inputs into the model are only available in the network after the conclusion of the measurement series.We note that the computational cost of the model is low enough to calculate the sensor model outputs in less than 0.1 s on the edge server with a consumer-grade x86-64 compatible CPU from 2022.
Summary and future work
59The presented work investigates the utility of LSTMs to serve as virtual cavity sensors in the HPDC process after initial training via physical sensors.The potential benefit of this type of neural network over other potentially applicable ML methods lies in the ability of such neural networks to conserve and consider the value history within the time series of the prediction via memory cells which predestines these RNNs for the processing of time series data.The investigated LSTM achieves excellent performance for the prediction of the cavity temperature signal and good performance for the pressure signals via quantitative model accuracy metrics such as MAPE and R-squared when the prediction interval relates to the filling and solidification steps of the HPDC process.An increase of the prediction time interval that includes cooling of the solidified casting within the cavity degrades the model performance notably on the qualitative and quantitative level.
60Further investigations should entail larger data sets in terms of the available cycles and process conditions to assess whether the model performance is currently limited by the lack of data and to what extent artifacts that cause nonphysical model outputs such as kinks in continuous process readings can be avoided in such models.Another area of interest relates to the handling of outliers, e.g., how the maximum error of the model can be further reduced as these can coincide with outliers, which carries the risk of deriving a virtual sensor model that returns erroneous sensor data specifically in cases where the physical process changes and deviates from the quasi-steady state conditions.This would render the model ineffective in the very scenarios where feedback from the process could indicate casting quality-related issues.
61To extend the applicability of the model within the HPDC scenario, it needs to be adapted to cover a wide range of process parameters and die geometries.This requires the retraining of the LSTM to take into account new conditions beyond the original training interval, which is a task falling into the scope of transfer learning.
Fig. 1
62Fig. 1 Pressure ( p 1 , p 2 ) and temperature (T 1 , T 2 ) measurement locations at the cast specimen and die
Fig. 2
63Fig. 2 Cut away view of the sensor mounting for pressure ( p 2 ) and temperature (T 2 ) sensors
Fig. 3
64Fig. 3 Infrastructure to capture and persist the ML data set
Fig. 6 Fig. 7
65Fig. 6 Temperature T 2 for 15 exemplary cycles with sequence length 1.2 network with 11 inputs and two outputs
Fig. 8 Fig. 9
66Fig. 8 MAPE and R-squared for the 99 test cycles with sequence length 1.2 s, network with nine inputs and four outputs
Fig.
67Fig. 10 Pressure p 2 for an exemplary cycle with different sequence lengths, network with nine inputs and four outputs
Table 1
68Summary
692, i.e., one network with 11 inputs and two outputs predicting cavity sensor signals p 2 and T 2 and the other one with nine inputs and four outputs
70predicting all four cavity sensors.As described in Sect.3.1, T 1 and p 1 are close to the ingate, whereas T 2 and p 2 are far from the ingate.Both neural networks are applied to the three different test cases according to Sects.3.2 and 4.1, differing
71.e., for the same 15 cycles.In the Maximum of the relative error e max,rel,i and average over all cycles ēmax,rel regarding the prediction of the p 2 sensor signal, network with nine inputs and four outputs
7210 Pressure p 2 for an exemplary cycle with different sequence lengths, network with nine inputs and four outputs
Table 3
73Maximum relative error (max i e max,rel,i ) and averaged relative error ( ēmax,rel ) for all six test cases
참고문헌 19건
- Virtual sensors for control applications Annual Reviews in Control · Elsevier BV · 2002 10.1016/s1367-5788(02)80018-9
- On the limited memory BFGS method for large scale optimization Mathematical Programming · Springer Science+Business Media · 1989 10.1007/bf01589116
- Long Short-Term Memory Neural Computation · The MIT Press · 1997 10.1162/neco.1997.9.8.1735
- Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations Journal of Computational Physics · Elsevier BV · 2018 10.1016/j.jcp.2018.10.045
- Analysis and Control of High-Pressure Die-Casting Process Parameters with Use of Data Mining Tools Lecture notes in mechanical engineering · Springer Nature · 2019 10.1007/978-3-030-18789-7_22
- A Review of Deep Learning Models for Time Series Prediction IEEE Sensors Journal · IEEE Sensors Council · 2019 10.1109/jsen.2019.2923982
- OPC Unified Architecture Springer eBooks · Springer Nature · 2009 10.1007/978-3-540-68899-0
- Model Selection and Evaluation for Machine Learning: Deep Learning in Materials Processing Integrating materials and manufacturing innovation · Springer Nature · 2020 10.1007/s40192-020-00185-1
- Gated RNN: The Long Short-Term Memory (LSTM) RNN Springer eBooks · Springer Nature · 2021 10.1007/978-3-030-89929-5_4
- Virtual Sensors Business & Information Systems Engineering · Springer Nature · 2021 10.1007/s12599-021-00689-w
- Miniterm, a Novel Virtual Sensor for Predictive Maintenance for the Industry 4.0 Era Sensors · Multidisciplinary Digital Publishing Institute · 2022 10.3390/s22166222
- Virtual Sensors for Smart Data Generation and Processing in AI-Driven Industrial Applications Artificial intelligence · IntechOpen · 2022 10.5772/intechopen.106988
- Efficiency and Reliability Enhancement of High Pressure Die Casting Process Through a Digital Twin Frontiers in artificial intelligence and applications · 2022 10.3233/faia220331
- Virtual sensors for erroneous data repair in manufacturing a machine learning pipeline Computers in Industry · Elsevier BV · 2023 10.1016/j.compind.2023.103917
- A study on the construction of die-casting production prediction model by machine learning with Taguchi methods Journal of the Chinese Institute of Engineers · Taylor & Francis · 2023 10.1080/02533839.2023.2204880
- Establish a machine learning based model for optimal casting conditions management of small and medium sized die casting manufacturers Scientific Reports · Nature Portfolio · 2023 10.1038/s41598-023-44449-0
- IESF: Interval Event Streaming Format for the Data Lake of Production 2023 10.1109/fmec59375.2023.10306240
- Evolving the Digital Industrial Infrastructure for Production: Steps Taken and the Road Ahead Springer eBooks · Springer Nature · 2023 10.1007/978-3-031-44497-5_2
- A predictive analytics framework for sensor data using time series and deep learning techniques Neural Computing and Applications · Springer Science+Business Media · 2024 10.1007/s00521-023-09398-9