5.2.2. Site Demand Forecast Results
- (1)
High-risk cluster stations (Liuzhuang station, Dongming station)
① Liuzhuang Station dynamic prediction in June:
Input transportation data, that is, 44.102 million tons of flammable liquid transportation (compared with the historical average + 15%), 0 tons of corrosive substances; the environmental data are the surrounding population density of 820 people/km2, 1.8 km away from the water source; in addition, the overall temperature in June is higher, and the risk of flammable liquid volatilization increases.
Bayesian network inference: prior probability: P (Cluster = high) = 1, P (Hazard Type = Flammable|Cluster = high) = 0.80; likelihood update: P (Accident Type = Fire|Hazard Type = Flammable) = 0.70 → 0.78 (calculated by CPT table interpolation) after 15% increase in traffic volume; posterior prediction: P (Demand = high|Accident Type = Fire, Environment = dense population) = 0.88, P (Demand = medium) = 10, P (Demand = low) = 0.02.
To convert the probability output of the Bayesian network into specific material quantity, a weighted average conversion model is constructed, and the formula is defined as follows:
; in the formula,
V represents the initial predicted material quantity (unit: box/ton);
, and
, respectively, represent the minimum, medium, and maximum material demand of the target station under corresponding material types, which are determined by historical accident data (from
Table 7);
, and
, respectively, represent the probability of low, medium, and high demand output by the Bayesian network.
For the fire equipment demand of Liuzhuang Station:
From
Table 7,
= 6000 boxes,
= 8000 boxes,
= 1000 boxes; substituting the probability values into the formula:
Considering the 12% increase in demand caused by the volatilization risk of flammable liquids (dynamic correction factor
α = 1.12), the final predicted quantity is
= 9720 ÷ 1.12 ≈ 8820 boxes. For the chemical defense equipment demand of Liuzhuang Station:
. With 2% increase in demand due to volatilization risk (dynamic correction factor
= 3440 × 1.02 ≈ 3500 sets. Prediction results: the demand for fire equipment is 8820 standard boxes (+12% compared with static DBSCAN prediction); the demand for chemical defense equipment is 3500 units (700 additional units are dynamically added to deal with the volatilization risk).
② Dynamic forecast of Dongming Station in July:
Input transportation data, that is, 3.7304 million tons of flammable liquid (compared with the historical average of −5%), sudden thunderstorm weather.
Bayesian network inference: weather factors make P (Accident Type = Explosion|Hazard Type = Flammable) = 0.15 → 0.30.
The industrial zone environment makes P (Demand = high|Explosion = 0.95 → 0.97 (large engineering equipment required). P (Demand = medium) = 0.03, P (Demand = low) = 0.00.
According to the weighted average conversion model defined in Liuzhuang Station’s prediction: For the medical supplies demand of Dongming Station, from
Table 7,
= 1800 boxes,
= 2200 boxes, and
= 2600 boxes; substituting the probability values into the formula
. Considering the 35% increase in demand caused by thunderstorm weather (dynamic correction factor
= 2588 × 1.35 ≈ 2800 boxes.
For the engineering rescue equipment demand of Dongming Station:
Bayesian network inference results:
P (Demand = high) = 0.95,
P (Demand = medium) = 0.05,
P (Demand = low) = 0.00; referring to the historical demand of similar stations (from
Table 7, adjusted according to engineering equipment specifications:
= 10 units,
= 13 units,
= 15 units). Substituting into the conversion formula:
.
Prediction results: medical supplies demand: 2800 boxes (compared with the traditional method + 35%); engineering rescue equipment: 15 units (dynamic new bulldozers, cranes).
Taking Liuzhuang Station as an example, the Bayesian network diagram is shown in
Figure 13 (The omitted part is: Medium demand).
- (2)
Medium-risk cluster stations (Sanmenxia West Station, Xiaolizhuang Station)
① Dynamic prediction of Sanmenxia West Station in August: Input transportation data: 1.651 million tons of corrosive substances (+20% compared with the historical average), PH value detection showed increased acidity; the environmental data is 0.8 km away from the tributaries of the Yellow River (sensitive water source). Reasoning focus:
P (Accident Type = leakage|Hazard Type = corrosion) = 0.60 → 0.85 (acid enhancement increases leakage risk);
P (Demand = high|Leakage, Environment = water source) = 0.90→0.95 (rapid neutralizing agent required).
P (Demand = medium) = 0.04,
P (Demand = low) = 0.01. Based on the weighted average conversion model, for the neutralizer demand of Sanmenxia West Station: From
Table 7,
Vlow = 15 tons,
Vmedium = 22 tons, and
Vhigh = 30 tons, substituting the probability values into the formula:
. According to the acid–base neutralization ratio, the neutralizer is allocated as 18 tons of sodium carbonate and 12 tons of sodium bicarbonate. For the water quality monitoring equipment demand of Sanmenxia West Station: Bayesian network inference results:
P (Demand = high) = 0.92,
P (Demand = medium) = 0.07,
P (Demand = low) = 0.01; from
Table 7,
= 3 units,
= 5 units, and
= 8 units; substituting into the conversion formula:
.
Prediction results: Neutralizer demand: 30 tons (sodium carbonate 18 tons + sodium bicarbonate 12 tons); water quality monitoring equipment: eight units (dynamic deployment to prevent pollution diffusion).
② Dynamic prediction of Xiaolizhuang Station in September: input transportation data: 409, 300 tons of flammable liquid (normal fluctuation), new chemical enterprises in the surrounding industrial area; the inference is adjusted to industrial zone expansion to make P (Environment = industrial zone) = 0.6 → 0.8, and increase P (Demand = high|Fire) = 0.90 → 0.93, P (Demand = medium) = 0.06, P (Demand = low) = 0.01.
Using the weighted average conversion model: For the fire foam demand of Xiaolizhuang Station: From
Table 7,
= 800 m
3,
= 1000 m
3, and
= 1200 m
3; substituting the probability values into the formula:
m
3. Considering the 8% increase in demand due to the expansion of the industrial zone (dynamic correction factor
),
=1184
m
3.
Prediction results: Fire foam: 1200 m3 (compared with DBSCAN alone predicted + 8%); it is necessary to connect the firefighting forces of 3 surrounding enterprises in advance.
Taking Sanmenxia West Station as an example, the Bayesian network diagram is shown in
Figure 14 (The omitted part is: Medium demand).
- (3)
Low-risk clusters and noise points (Qixian Station, Tangyin East Station, etc.)
① Dynamic prediction of Qixian Station in October: the input transportation data is 502, 300 tons of flammable liquid (the lowest value in history), no abnormal weather; environmental data: population density 210 people/km2, 2.3 km away from residential areas. Reasoning results: P (Demand = high) = 0.05, P (Demand = medium) = 0.15, and P (Demand = low) = 0.80.
Based on the weighted average conversion model: For the firefighting equipment demand of Qixian Station: From
Table 7,
= 2000 boxes,
= 3500 boxes, and
= 5000 boxes; substituting the probability values into the formula:
Considering the sharing of resources with Xinxiang warehouse, the local reserve is reduced to 100 standard containers (converted according to the volume of firefighting equipment: 1 standard container = 23.75 boxes, 2375 ÷ 23.75 = 100 standard containers). Prediction results:
P (Demand = high) = 0.05 (maintain the minimum reserve); it is recommended to share Xinxiang treasury resources and reduce local reserves to 100 standard containers.
② Dynamic prediction of Tang yin East Station (noise point): input transportation data: 0.28 million tons of corrosive substances, sudden slight leakage (influence radius < 0.5 km); the leakage scale is small, P (Demand = medium) = 0.8; P (Demand = low) = 0.20; P (Demand = high) = 0.00.
Using the weighted average conversion model: For the chemical protective clothing demand of Tangyin East Railway Station: From
Table 7,
Vlow = 50 sets,
Vmedium = 100 sets, and
=150 sets; substituting the probability values into the formula:
Considering the slight leakage scale, the actual demand is adjusted to 50 sets (transferred from the adjacent Hebi Reservoir).
Prediction results: chemical protective clothing: 50 sets (transferred from the adjacent Hebi Reservoir); there is no need to start local reserves, and the cost is reduced by 70%.
Taking Qixian Station as an example, the Bayesian network diagram is shown in
Figure 15 (The omitted part is: Medium demand).
5.2.5. Validation of Probability-Quantity Conversion Model
To verify the reliability and accuracy of the probability-quantity conversion model proposed in this study, 12 historical accident cases of different risk levels (3 cases for high-risk clusters, 4 cases for medium-risk clusters, 3 cases for low-risk clusters, and 2 cases for noise points) in the jurisdiction of the Zhengzhou Railway Bureau from 2020 to 2023 are selected for back-testing. The actual material usage in the historical cases is taken as the true value, and the predicted value calculated by the conversion model is compared with the true value to evaluate the model performance.
① Evaluation indicators: Three indicators are selected for evaluation: average relative error (MAE), root mean square error (RMSE), and accuracy (the proportion of cases with relative error ≤ 5%). The calculation formulas are as follows: ; Accuracy= Number of cases with relative error ≤ 5% n × 100. In the formulas, n represents the number of historical cases, vpred, i represents the predicted material quantity of the i-th case calculated by the conversion model, and vtrue, i represents the actual material usage of the i-th case.
② Validation results: The back-testing results show that, for high-risk cluster stations (Liuzhuang Station, Dongming Station), the MAE of the conversion model is 2.8%, RMSE is 3.2%, and the accuracy is 100% (all three cases have relative error ≤ 5%); for medium-risk cluster stations (Sanmenxia West Station, Xiaolizhuang Station), the MAE is 3.5%, RMSE is 4.1%, and the accuracy is 100% (all 4 cases have relative error ≤ 5%); for low-risk cluster stations (Qixian Station, Kuofanxian Station), the MAE is 4.2%, RMSE is 4.8%, and the accuracy is 66.7% (two out of three cases have relative error ≤ 5%); for noise points (Tangyin East Railway Station, Xinxiang Station), the MAE is 4.8%, RMSE is 5.3%, and the accuracy is 50% (one out of two cases has relative error ≤ 5%). The overall MAE of the conversion model for all 12 cases is 3.8%, RMSE is 4.3%, and the accuracy is 83.3%, which meets the requirement of emergency material scheduling (generally, the relative error of demand prediction ≤ 6% is acceptable).
③ Robustness verification: A 10-fold cross-validation is used to verify the robustness of the model (consistent with the cross-validation method in
Section 5.2.3 and
Figure 16). The 12 historical cases are supplemented with 8 additional similar cases (to ensure the total number of samples is a multiple of 10, meeting the 10-fold cross-validation sample division requirement, with 20 cases in total). The 20 cases are randomly divided into 10 groups; nine groups are used as training sets to adjust the dynamic correction factor in the conversion model, and one group is used as the test set to calculate the evaluation indicators. The operation is repeated 10 times, and the average value of the indicators is taken. The results show that the fluctuation range of MAE is 3.3–4.0% (average 3.6%), which is smaller than the fluctuation range of the traditional empirical conversion method (5.2–6.8%); the fluctuation range of RMSE is 3.8–4.5% (average 4.1%), lower than the traditional method (6.0–7.5%); the fluctuation range of accuracy is 80.0–88.0% (average 84.0%), higher than the traditional method (65.0–75.0%). The small fluctuation range of indicators indicates that the conversion model has good robustness and is not sensitive to the division of sample sets, which is consistent with the stable performance of the fusion model in
Figure 16 (10-fold cross-validation accuracy fluctuation range only 1.8%).
Through the above verification, it is proved that the probability-quantity conversion model can effectively convert the probability output of the Bayesian network into specific material demand quantity, and the prediction result is accurate and reliable, which can provide a solid basis for the subsequent scheduling optimization module.