# Demand Prediction of Railway Emergency Resources Based on Case-Based Reasoning

Authors: Jianping Sun; Hantao Cao; Biao Geng; Zhaoping Tang; Xiaopeng Li
Journal: Journal of Advanced Transportation
 (2021)

---

## Abstract

The demand prediction of emergency resources is helpful for rational allocation and optimization of emergency resources for railway rescue when emergency incident occurs. In this paper, a case base containing China railway traffic accident that has occurred since 1978 is established, and the case-based reasoning (CBR) method is applied in railway emergency resource demand predicting research. The core case attributes of railway emergencies are described. In view of the attribute types of railway emergency cases, five types of attributes, including enumeration, numerical, interval, character and fuzzy type, are considered, and the local similarity calculation models of different attributes are given. In order to avoid the problem of missing attribute in the traditional nearest neighbor algorithm, a global case similarity calculation method based on structural similarity and attribute similarity is designed. The empirical results show that case 3 is the most similar to the target case, and the calculating quantities of the proposed model are closer to the actual usage quantity and more accurate in the demand prediction of railway emergency resources, compared with the traditional empirical method. The relative errors of demand forecasts for the 9 resources have been, respectively, reduced by 15.9884%, 15.1471%, 6.4286%, 17.1429%, 66.6667%, 38.8889%, 27.5%, 0%, and 17.7778%. Therefore, the proposed model is both reasonable and applicable. The research results are of great significance to effectively deal with railway emergencies.


---

## Body

## 1. Introduction

China’s railway is growing at a high speed, and the pace of construction is accelerating year by year. All kinds of emergency accidents, such as railway traffic accidents and railway line faults, occur from time to time [1]. It is necessary to ensure that reasonable arrangements for railway emergency rescue. Taking emergency measures scientifically, timely and effective process is an important prerequisite for avoiding the accident upgrading to a higher level and reducing the loss of personnel and property. Therefore, the decision-making ability improvement of railway emergency rescue is an important part of the sustainable development of railway transportation [2, 3].At present, some scholars have been done some research on emergency resource demand forecasting, mainly including grey system [4], Markov chain [5], regression prediction [6], and other methods. Mohammadi et al. [7] applied the hybrid evolutionary radial basis function method (RBF) to demand forecasting of automatic selection node and emergency supply demand time. Yao et al. [8] used the BP neural network classification method to construct an evaluation index system that affected the urgency of disaster demand, established the model based on BP neural network, and furthermore sorted the urgency of demand. Mu et al. [9] adopted fuzzy comprehensive evaluation method to obtain the emergency degree value of emergency resources according to the different characteristics of diverse emergency point utilities. Zhang et al. [10] combined the neural network method with the wavelet theory, established the resource prediction model of the wavelet neural network, and dynamically predicted emergency resource demand for maritime emergencies. Duan et al. [11] used multiple data analysis and reasoning techniques to increase the speed and reliability of material demand prediction. Li et al. [12] constructed a three-layer emergency resource allocation model including “supply point, transit point, disaster point”.In recent years, artificial intelligence technology has been rapidly developed and widely applied. Case-based reasoning (CBR), as a new direction of artificial intelligence, has been widely studied in the field of emergency decision making. CBR is a strategy based on historical experience for solving current problems. The basic steps of a typical CBR problem solving process can be summarized into four major processes: retrieve, reuse, revise, and retain. Therefore, case-based reasoning is also called 4R, and its working process is shown in Figure1. In CBR, the unresolved issue or working condition is usually called the target case, the historical case is called the base case, and the collection of source cases is called the case base. It can be seen from Figure 1 that the basic process of CBR problem solving is as follows: a new problem to be solved appears, and this is the target case; the description information of the target case is used to query the similar cases in the historical, that is, the case base is retrieved to get the source cases that are similar to the target case, and then some solutions to the new problems are obtained. If the solution fails, it will be adjusted to get a savable, successful case. At the end of this process, a complete solution for the target case can be obtained; if the source case does not give the correct solution, a new source case can be obtained by the revise and retain. In CBR, whether the solution of the source case is suitable for the target case needs to be judged by the similarity. If the similarity between the base case and the target case is greater than the preset threshold, it can be used directly by studying the historical experience of the base case. However, if the similarity is smaller than the preset threshold, it needs to be more domain knowledge or people involved in the process of reuse, and after solve the problem, the solution experience will be stored as a new base case into case base, so as to make the CBR system more and more rich.Figure 1
General principles of CBR.At present, some scholars have made extensive studies on it. Amailef et al. [13] presented a mobile-based emergency response system (MERS), by using the ontology-supported CBR (OS-CBR) method, and built decision making pattern adapted for intelligent m-Government emergency decision making. Zhao et al. [14] selected 8 key factors such as earthquake location, earthquake season, earthquake magnitude, focal depth, earthquake intensity, building collapse rate, number of victims, and injured people as the case attributes and, based on CBR, predicted the emergency material demand after disastrous earthquake. Mulyana et al. [15] applied CBR to the psychological treatment of patients after an accident and verified its effectiveness through examples. Zhang et al. [16] used CBR method to find the situation similar to the target situation, and found the solution to fire emergency rescue according to the evolutionary process and solution measures of similar situations in the past. Souvik et al. [17] proposed the resource demand prediction based on CBR and distributed it to the control station with a smart phone delay tolerance network. Built on CBR, as well as combining the principles of artificial intelligence with computer system, Ye et al. [18] developed the technical support system for the emergency decision making of urban rail transit emergencies. At the beginning of the event, under the limited information condition, the emergency solutions for urban rail transit emergencies were promoted rapidly. By use of CBR, Deng et al. [19] predicted the resource demand of water traffic emergencies according to the similarity of case attribute types and the global similarity of the nearest neighbor method. In the field of railway operation, CBR also has a few research applications. Zhou [20] introduced CBR into railway emergency decision making, examined the structural characteristics of the railway emergency, utilized the experience of past cases and proposed an overall case similarity calculation method, and solved the current railway emergency decision making problems.The accuracy of railway emergency resource demand prediction is directly related to the success or failure of accident rescue as well as the prevention and operation of guaranteeing secondary, derived and coupled accidents. According to the existing literature, the related researches mainly focus on the research of prediction methods and how to allocate the types and quantity of emergency resources. There is no literature to establish a relatively perfect case base of emergency resource demand for railway traffic accidents in China over the years, so it is difficult to guarantee the adaptability and scientificity of railway emergency resource demand forecast. Based on the case base containing China railway traffic accident that has occurred since 1978, according to the particularity of railway emergency rescue, case attributes are classified and the source case and target case similarity measure and calculation methods are put forward. Furthermore, goals case emergency resource allocation scheme is set based on CBR reasoning. The research is of great significance for railway emergency incident fast response and scientific rescue.


## 2. Expression of Railway Emergency

CBR can use a lot of empirical knowledge to make up for the decision maker’s own knowledge limitation, and at the same time, it can avoid the interference of decision maker’s psychological factors on the emergency decision. Emergency decision of railway emergency is a complicated problem, which has some similarities with CBR in the process of problem handling [21]. The CBR method can effectively and rapidly make emergency decisions on railway emergencies, improve the decision-making ability of railway emergency rescue, strengthen the construction of railway emergency management ability, and ensure the sustainable development of railway transportation industry by finding similar historical cases and using specific cases from existing experience or results to solve new problems.


### 2.1. Case Presentation of Railway Emergencies

Case representation is the process of transforming case information so that the computer can store and recognize the information. The content of the case is generally composed of case information description, solution description, and effect description after implementation of the solution [22].(1)
Description of case information: the description of case information mainly includes two aspects: basic case information and case feature attribute. Basic information about the case includes the case number, name, time, place, type, response level, and brief description. The characteristic attribute description of railway emergencies itself includes five aspects, such as accident type, accident basic information, accident status, surrounding geographical environment, and meteorological conditions. Furthermore, each attribute can be further subdivided.(2)
Description of solutions: description of railway emergency rescue solutions, including emergency command system, passenger rescue, passenger transport, demand and deployment of emergency resources, railway restoration, and after-treatment.(3)
The effect description after the implementation of the solution: the effect description of the case application includes the final casualties, the interruption of railway running time, direct economic losses, the impact of the case on the society, and the public reflection and evaluation.The case representation describes the case of railway emergencies by using a ternary expression, as shown in(1)CaseF,M,U.where F=f1,f2,…,fn is the characteristic attribute of the case information, M is the characteristic attribute of the emergency solution, and U is the characteristic attribute of the effect after the implementation of the solution.


### 2.2. Case Attributes Frame Representation of Railway Emergencies

Case knowledge is divided into frameworks, production rules, semantic web, and object-oriented methods [23]. Case representation directly affects the storage, management, and retrieval of cases in a CBR system. An appropriate and reasonable case representation method can increase the accuracy and efficiency of case solution. It is an important foundation of case-based reasoning research to select fitting case characteristic attributes to represent cases.China National Railway Group Co. Ltd established the system of railway emergency management plans and regulations. The system is composed of two parts, which take the emergency plan as the core, as well as emergency handling rules and regulations as the operation. It has made the related regulation for the railway emergency disposal content and carried on the compilation according to the scene mode [24]. In addition, hierarchical response and emergency disposal strategies are adopted (i.e., specific emergency disposal measures such as mobilizing rescue teams and rescue equipment are adopted depending on the emergency level) [25]. In the establishment of the scene model, it considers the basic information of the emergency, the impact of the incident, and the environment in which it occurs, such as type of time, time of occurrence, number of people affected, location of occurrence, type of train, number of deaths, number of injuries, damage degree of vehicle body, damage degree of line, weather conditions, and terrain conditions [26].In this paper, considering that emergencies have multiattribute characteristics and each attribute plays diverse roles in emergency response, the multiattribute of emergencies are classified and divided. The core attributes of emergencies are examined, such as event type, key attribute, subordinate attribute, environment attribute, and hazard assessment attribute. Based on the systematic analysis of accident types, accident specific information, detailed rescue process, resource demand, resource allocation and use, as well as railway accident cases in recent years [27], 27 typical case characteristic attributes are selected from them [28], so that these attributes can well represent railway emergency situations, as shown in Table 1.Table 1
Case presentation framework of railway emergencies.
CodeAttributeContentType1Accident locationElevated area, road cut area, tunnel area, etc.Enumeration2Accident typesDerailment, fire, explosion, collision, etc.Enumeration3Accident incentiveCurve overtaking, improper scheduling, geological hazards, etc.Enumeration4Train typeHigh-speed railway, bullet train, the fast train, freight train, etc.Enumeration5Emergency response levelLevel I, II, III, IVEnumeration6Type of damaged rolling stockTypeEnumeration7Type of damaged locomotiveTypeEnumeration8Cargo typeLiquid, gas, particle, powder, etc.Enumeration9Topography along the railwayPlains, mountains, valleys, rivers, etc.Enumeration10WeatherSunny, rainy, cloudy, snow, hail, temperature, humidity, rainfall, wind, amount of snow etc.Numeric11Date and time of accidentDate, month, year, season, etc.Numeric12Number of derailed rolling stocksRolling stockNumeric13Number of damaged rolling stockRolling stockNumeric14Number of damaged locomotivesLocomotiveNumeric15Wind forceLevelNumeric16Resource’s transferTypes and quantitiesNumeric17Economic lossesTotal moneyNumeric18Train derailment distanceMeterInterval19Number of passengers affectedPersonInterval20Number of deathsPersonInterval21Number of injuryPersonInterval22Event nameWordsCharacter23Rescue planWordsCharacter24Rescue processWordsCharacter25NoteWordsCharacter26The level of damage to railwayEspecially serious, serious, general serious, slight, without damageFuzzy27The level of damage to railway carEspecially serious, serious, general serious, slight, without damageFuzzyFurthermore, in accordance with relevant railway laws and regulations, a systematic analysis of railway accident cases in recent years is carried out. For efficient processing and operation, all the attributes are divided into five types: enumeration type, numerical type, interval type, character type, and fuzzy type, also as shown in Table1.


## 2.1. Case Presentation of Railway Emergencies

Case representation is the process of transforming case information so that the computer can store and recognize the information. The content of the case is generally composed of case information description, solution description, and effect description after implementation of the solution [22].(1)
Description of case information: the description of case information mainly includes two aspects: basic case information and case feature attribute. Basic information about the case includes the case number, name, time, place, type, response level, and brief description. The characteristic attribute description of railway emergencies itself includes five aspects, such as accident type, accident basic information, accident status, surrounding geographical environment, and meteorological conditions. Furthermore, each attribute can be further subdivided.(2)
Description of solutions: description of railway emergency rescue solutions, including emergency command system, passenger rescue, passenger transport, demand and deployment of emergency resources, railway restoration, and after-treatment.(3)
The effect description after the implementation of the solution: the effect description of the case application includes the final casualties, the interruption of railway running time, direct economic losses, the impact of the case on the society, and the public reflection and evaluation.The case representation describes the case of railway emergencies by using a ternary expression, as shown in(1)CaseF,M,U.where F=f1,f2,…,fn is the characteristic attribute of the case information, M is the characteristic attribute of the emergency solution, and U is the characteristic attribute of the effect after the implementation of the solution.


## 2.2. Case Attributes Frame Representation of Railway Emergencies

Case knowledge is divided into frameworks, production rules, semantic web, and object-oriented methods [23]. Case representation directly affects the storage, management, and retrieval of cases in a CBR system. An appropriate and reasonable case representation method can increase the accuracy and efficiency of case solution. It is an important foundation of case-based reasoning research to select fitting case characteristic attributes to represent cases.China National Railway Group Co. Ltd established the system of railway emergency management plans and regulations. The system is composed of two parts, which take the emergency plan as the core, as well as emergency handling rules and regulations as the operation. It has made the related regulation for the railway emergency disposal content and carried on the compilation according to the scene mode [24]. In addition, hierarchical response and emergency disposal strategies are adopted (i.e., specific emergency disposal measures such as mobilizing rescue teams and rescue equipment are adopted depending on the emergency level) [25]. In the establishment of the scene model, it considers the basic information of the emergency, the impact of the incident, and the environment in which it occurs, such as type of time, time of occurrence, number of people affected, location of occurrence, type of train, number of deaths, number of injuries, damage degree of vehicle body, damage degree of line, weather conditions, and terrain conditions [26].In this paper, considering that emergencies have multiattribute characteristics and each attribute plays diverse roles in emergency response, the multiattribute of emergencies are classified and divided. The core attributes of emergencies are examined, such as event type, key attribute, subordinate attribute, environment attribute, and hazard assessment attribute. Based on the systematic analysis of accident types, accident specific information, detailed rescue process, resource demand, resource allocation and use, as well as railway accident cases in recent years [27], 27 typical case characteristic attributes are selected from them [28], so that these attributes can well represent railway emergency situations, as shown in Table 1.Table 1
Case presentation framework of railway emergencies.
CodeAttributeContentType1Accident locationElevated area, road cut area, tunnel area, etc.Enumeration2Accident typesDerailment, fire, explosion, collision, etc.Enumeration3Accident incentiveCurve overtaking, improper scheduling, geological hazards, etc.Enumeration4Train typeHigh-speed railway, bullet train, the fast train, freight train, etc.Enumeration5Emergency response levelLevel I, II, III, IVEnumeration6Type of damaged rolling stockTypeEnumeration7Type of damaged locomotiveTypeEnumeration8Cargo typeLiquid, gas, particle, powder, etc.Enumeration9Topography along the railwayPlains, mountains, valleys, rivers, etc.Enumeration10WeatherSunny, rainy, cloudy, snow, hail, temperature, humidity, rainfall, wind, amount of snow etc.Numeric11Date and time of accidentDate, month, year, season, etc.Numeric12Number of derailed rolling stocksRolling stockNumeric13Number of damaged rolling stockRolling stockNumeric14Number of damaged locomotivesLocomotiveNumeric15Wind forceLevelNumeric16Resource’s transferTypes and quantitiesNumeric17Economic lossesTotal moneyNumeric18Train derailment distanceMeterInterval19Number of passengers affectedPersonInterval20Number of deathsPersonInterval21Number of injuryPersonInterval22Event nameWordsCharacter23Rescue planWordsCharacter24Rescue processWordsCharacter25NoteWordsCharacter26The level of damage to railwayEspecially serious, serious, general serious, slight, without damageFuzzy27The level of damage to railway carEspecially serious, serious, general serious, slight, without damageFuzzyFurthermore, in accordance with relevant railway laws and regulations, a systematic analysis of railway accident cases in recent years is carried out. For efficient processing and operation, all the attributes are divided into five types: enumeration type, numerical type, interval type, character type, and fuzzy type, also as shown in Table1.


## 3. Similarity Calculation of Railway Emergency Cases

### 3.1. Case Attributes Similarity Calculation

In each case, there are a lot different attributes, and the types of attribute values are also different. It is necessary in order to select different methods to calculate, so as to improve calculation accuracy of attribute similarity. According to the attributes of the existing historical cases in the case base, the attributes can consist of five types: enumeration type, numerical type, interval type, character type, and fuzzy type. The calculation of interval type similarity also includes two cases: the similarity between the value and the interval and the similarity between interval and interval.(1)
Enumerated attributes, including accident type, locomotive and vehicle type, weather, train type, and cargo type: attribute similarity only has two values: 1 (the enumeration value of the attribute is the same) or 0 (the enumeration value of the attribute is different):(2)simTf,Cif=1,Tf=Cif,0,Tf≠Cif.whereTf is the value of the target case attribute f and Cif is the value of the ith source case attribute f.(2)
Numerical attributes, including the number of deaths, the number of injured, the number of derailment vehicles, the maximum distance of train derailment, the wind force, and the economic loss: this kind of attribute adopts the method based on hamming distance formula to calculate the similarity between attributes [29]:(3)simTf,Cif=1−Tf−Cifβ−α.whereβ and α, respectively, represent the maximum and minimum values of the value range of the numerical attribute f. The result solved by formula (3) is located between 0 and 1. The closer the calculation result is 1, the higher the similarity of the attribute f of case T and C is. On the contrary, the more dissimilar.(3)
Interval attributes: when a railway emergency occurs, it is needed to determine the number of passenger casualties, vehicle derailment, and other on-site information. Since much information cannot be accurately observed, the specific data obtained may be a certain interval value. Therefore, it is necessary in order to define the similarity calculation method between values and intervals as well as between intervals and intervals.Similarity calculation between numerical value and interval:Given a specific valuea and an interval range value b1,b2, the similarity between them is defined as(4)sima,b1,b2=∫b1b2sima,xdxb2−b1.Putting formulae (3) into (4), the formula (5) can be derived and gotten as follows:(5)sima,b1,b2=1−b2+b1−2aβ−α,a≤b1,1−b2−a2+b1−a22β−αb2−b1,b1<a<b2,1+b2+b1−2a2β−α,a≥b2.Similarity calculation between two intervals:The similarity calculation formula between intervala1,a2 and b1,b2 is as follows:(6)sima1,a2,b1,b2=∫a1a2∫b1b2simx,ydydxa2−a1b2−b1.In the formula (6), a1,a2,b1,b2∈α,β.Putting formulae (3) into (6), the formula (7) can be derived and gotten as follows:(7)sima1,a2,b1,b2=1−b2+b1−a1−a22β−α,a2≤b1,1−3b2−a1b1−a1b2−b16a2−a1β−αb2−b1+a2−b13+a2−b23+b2−b136a2−a1β−αb2−b1,b1<a2≤b2,1−b22+b12+b1b23a2−a1β−α−a22+a12−a1+a2b2+b12a2−a1β−α,b2<a2.In the case ofa1>b1, a1 and b1 are exchanged with the values of a2 and b2, and then the similarity is calculated with this formula.(4)
Character-based attributes, including event name, rescue plan, rescue process, and other attributes: these case attributes are described by strings, which are divided into numerous small keywords and combined into a set that can fully express this attribute. Assuming thatx0=k1,k2,…,km and x1=p1,p2,…,pm are the set representation of a certain attribute in two different cases, the similarity between x0 and x1 is defined as(8)simx0,x1=countx0∩x1countx0+countx1−countx0∩x1.(5)
Fuzzy attributes, including the damage degree of railways and car bodies: fuzzy attributes are due to the uncertainty of people’s access to information. Specifically, people have different cognition of things, and they have separate channels to obtain information and different degrees of difficulty. This kind of case attribute can be represented by triangular fuzzy number, and Wasserstein distance evolution method is adopted to calculate the similarity [30]:(9)simT˜f,C˜if=1−distT˜f,C˜if=1−li−li′2+19mi−mi′2+ri−ri′2−mi−mi′ri−ri′−12li−li′mi−mi′−ri−ri′.where T˜f,C˜if is triangular fuzzy number, T˜f=lf,mf,rf, C˜if=lf′,mf′,rf′.


### 3.2. Computation of Case Global Similarity

The global similarity of the case is calculated on the basis of the similarity of each attribute, which takes into account the local similarity and attribute weight of each attribute. The common global similarity measure of emergency cases is the weighted value of attribute local similarity, such as weighted Euclidean distance and weighted Hamming distance. In addition, some scholars have introduced rough set, fuzzy number, semantic distance, and neural network into the global similarity calculation of cases. These similarity measurement models assume that each attribute describing the case can be substituted with each other and do not consider the influence of missing value attribute on the similarity of the case structure features. However, due to the complexity and variety of emergency case attributes, it is inevitable that there will be incomplete information of historical cases or incomplete description of cases by decision-makers, which will seriously cause the inaccuracy of CBR results. Emergency case similarity algorithm needs to solve the problem of missing attribute value of an emergency case to avoid deviation as much as possible. In this paper, based on structural similarity and attribute similarity, an improved case global similarity measurement model is proposed, which calculates the similarity degree by different formulae when the attributes are missing or complete, so as to describe the contribution of missing data and attribute substitution relationship to the case global similarity more accurately. The method in this paper can avoid the problem of missing attribute value in traditional nearest neighbor algorithm.When the attributes are completed, according to the characteristics of railway emergency case representation, the nearest neighbor algorithm is utilized to calculate the global similarity of the case. The nearest neighbor algorithm accumulates the similarity values of the attributes of the current case and the historical case to identify the global similarity of the case. The formula for calculating the global similarity between the current case and the source case is(10)simT,Ci=∑f=1nωf×simTf,Cif.where simT,Ci is the overall similarity value of accident case T and case Ci; ωf is the weight value of the attribute f; simTf,Cif is the similarity between the f attribute of the current case T and the f attribute of the case i.When the attributes are missing, there are various reasons for missing attributes, including the difficult access to information or damage of data acquisition and preservation equipment, as well as human subjective error, historical limitation, or deliberate concealment.In the case of attribute missing, the calculation method of global similarity will adopt different calculation methods, combining the attribute similarity of current case and historical case with the structural similarity, and the calculation formula of global similarity considering attribute missing is as follows:(11)simT,Ci=∑j=1mWjWCi∩TsimTj,Cij.where WCi∩T is the sum of the weights of the intersection of case T and case Ci, Wj is the weight of the jth attribute in the intersection of case T and case Ci, m is the number of attributes in the intersection of case T and case Ci, simTj,Cij is the similarity of the jth attribute in the current case and the historical case. simT,Ci∈0,1, the closer the value is to 1, the higher the similarity between the two cases is.When some attributes are missing, relative to equation (10), the equation (11) considers the influence of missing attribute values on the importance of the information system, which will make the result more accurate and objective.


### 3.3. Attribute Weight Determination

In the evaluation of case similarity, the weight coefficient can be used to assess the relative importance of case characteristic attributes. The larger the weight is, the greater the influence will be. Its reasonable allocation is the decisive factor for the accuracy of case retrieval and the final result. This paper adopts the expert scoring method to determine the weight value of characteristic attributes, and several experts determine the weight after focusing on some evaluations according to their own experience.


## 3.1. Case Attributes Similarity Calculation

In each case, there are a lot different attributes, and the types of attribute values are also different. It is necessary in order to select different methods to calculate, so as to improve calculation accuracy of attribute similarity. According to the attributes of the existing historical cases in the case base, the attributes can consist of five types: enumeration type, numerical type, interval type, character type, and fuzzy type. The calculation of interval type similarity also includes two cases: the similarity between the value and the interval and the similarity between interval and interval.(1)
Enumerated attributes, including accident type, locomotive and vehicle type, weather, train type, and cargo type: attribute similarity only has two values: 1 (the enumeration value of the attribute is the same) or 0 (the enumeration value of the attribute is different):(2)simTf,Cif=1,Tf=Cif,0,Tf≠Cif.whereTf is the value of the target case attribute f and Cif is the value of the ith source case attribute f.(2)
Numerical attributes, including the number of deaths, the number of injured, the number of derailment vehicles, the maximum distance of train derailment, the wind force, and the economic loss: this kind of attribute adopts the method based on hamming distance formula to calculate the similarity between attributes [29]:(3)simTf,Cif=1−Tf−Cifβ−α.whereβ and α, respectively, represent the maximum and minimum values of the value range of the numerical attribute f. The result solved by formula (3) is located between 0 and 1. The closer the calculation result is 1, the higher the similarity of the attribute f of case T and C is. On the contrary, the more dissimilar.(3)
Interval attributes: when a railway emergency occurs, it is needed to determine the number of passenger casualties, vehicle derailment, and other on-site information. Since much information cannot be accurately observed, the specific data obtained may be a certain interval value. Therefore, it is necessary in order to define the similarity calculation method between values and intervals as well as between intervals and intervals.Similarity calculation between numerical value and interval:Given a specific valuea and an interval range value b1,b2, the similarity between them is defined as(4)sima,b1,b2=∫b1b2sima,xdxb2−b1.Putting formulae (3) into (4), the formula (5) can be derived and gotten as follows:(5)sima,b1,b2=1−b2+b1−2aβ−α,a≤b1,1−b2−a2+b1−a22β−αb2−b1,b1<a<b2,1+b2+b1−2a2β−α,a≥b2.Similarity calculation between two intervals:The similarity calculation formula between intervala1,a2 and b1,b2 is as follows:(6)sima1,a2,b1,b2=∫a1a2∫b1b2simx,ydydxa2−a1b2−b1.In the formula (6), a1,a2,b1,b2∈α,β.Putting formulae (3) into (6), the formula (7) can be derived and gotten as follows:(7)sima1,a2,b1,b2=1−b2+b1−a1−a22β−α,a2≤b1,1−3b2−a1b1−a1b2−b16a2−a1β−αb2−b1+a2−b13+a2−b23+b2−b136a2−a1β−αb2−b1,b1<a2≤b2,1−b22+b12+b1b23a2−a1β−α−a22+a12−a1+a2b2+b12a2−a1β−α,b2<a2.In the case ofa1>b1, a1 and b1 are exchanged with the values of a2 and b2, and then the similarity is calculated with this formula.(4)
Character-based attributes, including event name, rescue plan, rescue process, and other attributes: these case attributes are described by strings, which are divided into numerous small keywords and combined into a set that can fully express this attribute. Assuming thatx0=k1,k2,…,km and x1=p1,p2,…,pm are the set representation of a certain attribute in two different cases, the similarity between x0 and x1 is defined as(8)simx0,x1=countx0∩x1countx0+countx1−countx0∩x1.(5)
Fuzzy attributes, including the damage degree of railways and car bodies: fuzzy attributes are due to the uncertainty of people’s access to information. Specifically, people have different cognition of things, and they have separate channels to obtain information and different degrees of difficulty. This kind of case attribute can be represented by triangular fuzzy number, and Wasserstein distance evolution method is adopted to calculate the similarity [30]:(9)simT˜f,C˜if=1−distT˜f,C˜if=1−li−li′2+19mi−mi′2+ri−ri′2−mi−mi′ri−ri′−12li−li′mi−mi′−ri−ri′.where T˜f,C˜if is triangular fuzzy number, T˜f=lf,mf,rf, C˜if=lf′,mf′,rf′.


## 3.2. Computation of Case Global Similarity

The global similarity of the case is calculated on the basis of the similarity of each attribute, which takes into account the local similarity and attribute weight of each attribute. The common global similarity measure of emergency cases is the weighted value of attribute local similarity, such as weighted Euclidean distance and weighted Hamming distance. In addition, some scholars have introduced rough set, fuzzy number, semantic distance, and neural network into the global similarity calculation of cases. These similarity measurement models assume that each attribute describing the case can be substituted with each other and do not consider the influence of missing value attribute on the similarity of the case structure features. However, due to the complexity and variety of emergency case attributes, it is inevitable that there will be incomplete information of historical cases or incomplete description of cases by decision-makers, which will seriously cause the inaccuracy of CBR results. Emergency case similarity algorithm needs to solve the problem of missing attribute value of an emergency case to avoid deviation as much as possible. In this paper, based on structural similarity and attribute similarity, an improved case global similarity measurement model is proposed, which calculates the similarity degree by different formulae when the attributes are missing or complete, so as to describe the contribution of missing data and attribute substitution relationship to the case global similarity more accurately. The method in this paper can avoid the problem of missing attribute value in traditional nearest neighbor algorithm.When the attributes are completed, according to the characteristics of railway emergency case representation, the nearest neighbor algorithm is utilized to calculate the global similarity of the case. The nearest neighbor algorithm accumulates the similarity values of the attributes of the current case and the historical case to identify the global similarity of the case. The formula for calculating the global similarity between the current case and the source case is(10)simT,Ci=∑f=1nωf×simTf,Cif.where simT,Ci is the overall similarity value of accident case T and case Ci; ωf is the weight value of the attribute f; simTf,Cif is the similarity between the f attribute of the current case T and the f attribute of the case i.When the attributes are missing, there are various reasons for missing attributes, including the difficult access to information or damage of data acquisition and preservation equipment, as well as human subjective error, historical limitation, or deliberate concealment.In the case of attribute missing, the calculation method of global similarity will adopt different calculation methods, combining the attribute similarity of current case and historical case with the structural similarity, and the calculation formula of global similarity considering attribute missing is as follows:(11)simT,Ci=∑j=1mWjWCi∩TsimTj,Cij.where WCi∩T is the sum of the weights of the intersection of case T and case Ci, Wj is the weight of the jth attribute in the intersection of case T and case Ci, m is the number of attributes in the intersection of case T and case Ci, simTj,Cij is the similarity of the jth attribute in the current case and the historical case. simT,Ci∈0,1, the closer the value is to 1, the higher the similarity between the two cases is.When some attributes are missing, relative to equation (10), the equation (11) considers the influence of missing attribute values on the importance of the information system, which will make the result more accurate and objective.


## 3.3. Attribute Weight Determination

In the evaluation of case similarity, the weight coefficient can be used to assess the relative importance of case characteristic attributes. The larger the weight is, the greater the influence will be. Its reasonable allocation is the decisive factor for the accuracy of case retrieval and the final result. This paper adopts the expert scoring method to determine the weight value of characteristic attributes, and several experts determine the weight after focusing on some evaluations according to their own experience.


## 4. Establishment of Railway Emergency Resource Demand Model

The source case with the highest similarity is calculated by using the similarity calculation method, and then the resource demand is predicted by invoking the relevant historical data and information of the source case. In the early stage of an emergency, the main factors affecting the demand for emergency rescue resources include the number of affected passengers, the number of deaths, the number of injured, the number of derailment vehicles, the number of damaged vehicles, and the number of damaged locomotives [31]. According to previous investigation reports on railway emergency rescue, the emergency resources needed mainly include rescue food, rescue team, truck crane, railway repair materials, fire truck, and rescue vehicle [32].X1,X2,X3,X4,X5,andX6 are, respectively, the demand for rescue food, rescue team, truck crane, railway repair materials, fire truck, and rescue vehicle in similar cases. Then, the emergency resource demand prediction model of the target case is as follows:(12)Di=∑j=1mωjiXisimQjT,Qji=1,2,…,9.where Di is the demand for the ith emergency resource. Xi is the demand for the ith emergency resource in the similar case. When i=1,2,…,9, it corresponds to 9 kinds of emergency resources, including food, drinking water, medical supplies, rescue teams, rescue cranes, railway repair materials, railway maintenance equipment, fire trucks, and rescue vehicles. ωji is the influence weight of the jth attribute on the demand for the ith emergency resource, m is the attribute value selected from the target case and similar cases, QjT is the value of the jth attribute in the target case, and Qj is the value of the jth attribute in similar cases.


## 5. Empirical Analysis

There are five casesC=C1,C2,C3,C4,C5 in the known case base, containing China railway traffic accident that has occurred since 1978. And, the source cases are independent from each other. For example, the data in Case 1 comes from the “4.28 Jiao-Ji line major transportation accident” in China on April 28th, 2008, the data in Case 2 comes from the “7.9 Hengyang North derailment accident” in China on July 9th, 1999, the data in Case 3 comes from the “3.21 Zhejiang -Jiangxi Line WULIDUN transportation accident” in China on March 21st, 1992, the data in Case 4 comes from the “2.28 train No. 5807 in Nanjiang line transportation accident” in China on February 28th, 2007, and the data in Case 5 comes from the “7.23 Yong-Wen line major transportation accident” in China on July 23th, 2011. The target case T is summarized through the basic information of the accident site transmitted by the accident site personnel, and the 12 attributes with the highest weight are selected as shown in Table 2.Table 2
The weight values of attributes.
Sequence numberAttributeValue rangeCase IDThe target caseTWeightCase 1Case 2Case 3Case 4Case 51Number of passengers affected[0, 4000]21001980190011001630[1700, 2000]0.152Number of deaths[0, 100]71915340[14, 17]0.133Number injured[0, 500]416402534172[24, 29]0.14Number of vehicles derailed[0, 40]512011410.15Accident typeDerailmentDerailmentTrain crashDerailmentRear-end collisionTrain crash0.086Emergency response levelIIIIIIII0.087Derailment distance[0, 200]1201202520080[20, 50]0.088Railway damageEspecially seriousSeriousGeneral seriousSeriousGeneral seriousMissing0.089Vehicle damage[0, 40]14129112780.0710Locomotive damage[0, 8]1020220.0611Accident locationRailway curvesFork in bendingStation entranceMountain passViaductGround0.0512WeatherCloudy (in morning)Fine (in evening)Fine (in morning)Strong windsLightning strokeFine0.02As can be seen from the Table2, the missing damage degree of railway lines in the target case T is caused by the difficult access to information. All missing attributes need to be processed through formula (11).Data missing will affect the assurance, variation, and bias of CBR decision results. Reducing the number of valid cases available for analysis due to incomplete data may lead to a decrease in statistical confidence. The greater the missing information, the greater the decrease in confidence. In addition, those with incomplete data are more likely to have extreme values, and the missing of these incomplete data lead to underestimation of variation, thus artificially narrowing the confidence interval of CBR decision results. Missing information also lead to biassing conclusions about whether CBR has an effect and how big the effect is. Therefore, attribute information should be as complete as possible.According to the formulae by formulae (2) to (9), the similarity of each attribute between the target case and the case can be obtained, and the global similarity of the case can be calculated through formula (10). Considering the existence of attribute missing, the global similarity of attribute missing is calculated through formula (11), as shown in Table 3.Table 3
The similarity between the target case and the source case.
SimilarityCase 1Case 2Case 3Case 4Case 5Global similarity0.55710.60590.87220.48950.6498Global similarity when attributes are missing0.60550.65850.94810.53210.7063It can be seen from Table3 that Case 3 has the highest similarity with the current case T, which is 0.9481. The number of emergency resources in the target case T can be predicted according to the type and quantity of emergency resources in case 3.The expert scoring method has been widely used in the determination of attribute weight, experts are the main body of weight determination, and the importance of the quality of expert scoring goes without saying. To improve the quality of expert evaluation, on the one hand, it is necessary to select appropriate experts (such as to limit the title, position, and working life of the expert) for participating in the evaluation; on the other hand, increasing the number of scoring experts. In this paper, 100 experts with intermediate titles or above with more than 10 years of working experience were invited to score weight coefficient for an attribute corresponding to a certain emergency resource. According to the proportion of the votes of the evaluated attribute in a certain emergency resource to the total votes in the emergency resource, the weight coefficientωji can be obtained, as shown in Table 4:Table 4
Attribute weight coefficient table for emergency resources.
Number of passengers affectedNumber of deathsNumber injuredTrain derailment distanceNumber of derailment vehiclesNumber of damaged vehiclesNumber of damaged locomotivesFood0.230.050.220.100.110.150.14Drinking water0.250.070.210.090.100.140.14Medical supplies0.130.320.330.050.050.060.06Rescue team0.180.090.180.130.170.170.08Rescue crane0.060.060.110.150.240.220.16Railway repair materials0.070.080.090.210.210.210.13Railway repair equipment0.050.070.060.230.230.230.13Firetruck0.080.070.090.170.200.210.18Rescue vehicle0.180.160.240.120.120.10.08The demand for Case 3 emergency resources can be inquired by consulting the case database, as shown in Table5:Table 5
Types and quantity of emergency resources needed for case3.
X1X2X3X4X5X6X7X8X9Case 3100002000030040422450252According to formula (12), the emergency resource demand of the target case of this accident can be obtained, as shown in Table 6. For the convenience of comparison, in Table 6, CBR method in this paper is called Method A, and the traditional empirical method (the prediction of resource demand by managers at all levels according to their past work experience as well as the estimation of the change of target cases) is called Method B.Table 6
Predicted value of method A and method B, as well as actual usage in target cases.
X1X2X3X4X5X6X7X8X9Take time (second)Actual usage quantity86001700028035318040245Method AForecast quantity86251742528234318039247278.32Forecast error (%)0.29072.50.7143−2.857100−2.504.4444Method BForecast quantity100002000030040525050255687.48Forecast error (%)16.27917.6477.14314.28666.66738.88925022.222From the results in Table6, it can be seen that, compared with the traditional empirical method, the method in this paper proposed in this paper is closer to the actual use amount (the relative errors of demand forecasts for the 9 resources have been, respectively, reduced by 15.9884%, 15.1471%, 6.4286%, 17.1429%, 66.6667%, 38.8889%, 27.5%,0%, and 17.7778%), as well as more accurate and more quickly in the prediction of the emergency resource demand of the target case. Meanwhile, the prediction value of the CBR method is smaller than that of the traditional method, which can avoid the waste of resources.


## 6. Conclusions

The demand prediction of emergency resources is a prerequisite for the allocation and command decision of emergency resources in railway emergencies and an important basis for improving post-disaster rescue capabilities. The current emergency resource demand prediction of railway emergencies is based primarily on the experience and subjective judgment of decision-makers, which may lead to unreasonable allocation of resources and increase rescue costs. Therefore, this paper proposes the emergency resource demand prediction based on case-based reasoning and the principle of similar cases has similar solutions, and the main conclusions are as follows:(1)
According to the characteristics of railway emergency rescue, the case attributes of railway emergencies are divided into five types: enumeration, numerical, interval, character, and fuzzy type, and the similarity calculation method of each type of attribute is defined.(2)
In order to avoid the problem of missing attribute in the traditional nearest neighbor algorithm, a global case similarity calculation method based on structural similarity and attribute similarity is designed.(3)
The similarity between case 3 and target case in the case base is the highest, which is 94.81%. Calculated quantity of the proposed model is closer to the actual usage quantity and more accurate in the demand prediction of railway emergency resources, comparing with the traditional empirical method. The relative errors of demand forecasts for the 9 resources have been, respectively, reduced by 15.9884%, 15.1471%, 6.4286%, 17.1429%, 66.6667%, 38.8889%, 27.5%, 0%, and 17.7778%.CBR, as an important reasoning method in the field of artificial intelligence, has achieved practical results in the fields of legal case analysis, equipment fault diagnosis, auxiliary engineering design, auxiliary planning, and so on. But for now, there are still shortcomings in solving complex decision-making problems with bad structure, incomplete information, fuzziness, and strong uncertainty. And, the limitations of the research and future steps are as follows:(1)
Standardization research should be further strengthened for the determination of the value and value range of case attributes, and more accurate information processing methods should be established for uncertain and fuzzy data.(2)
The basis of CBR is the construction of the case base. However, China’s current basic data construction is not perfect, the data sharing system is not perfect, and the statistical data granularity of various departments is not unified, which makes the construction of the case base still has a certain complexity. The next step is tantamount to further strengthen the data integrity and expand the case base.With the increase of the richness and similarity of the case base, this method can effectively solve the problem of scientific prediction of emergency resource demand in railway emergencies and provide support and reference for the prediction of emergency resource demand in railway emergency rescue.



---

*Source: 6666631-2021-04-09.xml*