Method for determining gradient of train running route and electronic equipment

Through sliding window and dynamic threshold technology, the standard slope value of the line is calculated and adjusted, and the problem of inaccurate slope measurement in the existing technology is solved, the accuracy and efficiency of slope characteristics are improved, and the safety of train operation is ensured.

CN119022885APending Publication Date: 2024-11-26QINGDAO JIADU WEILIAN SIGNALING SYSTEM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410970091.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

In the prior art, the accuracy and efficiency of line slope measurement are low, which affects the operation of the train, and the selection of empirical thresholds is not accurate enough, resulting in the inaccurate division of slope characteristics.

Method used

Using sliding window and dynamic threshold technology, the standard slope value is calculated by obtaining mileage and elevation data, and adjusting according to the adjustment coefficient, the slope characteristics are determined, and finally curve fit is performed to describe the line slope characteristics.

Benefits of technology

It improves the accuracy and efficiency of the division of slope characteristics of each section of the line, and ensures the safe operation of the train.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119022885A_ABST
    Figure CN119022885A_ABST
Patent Text Reader

Abstract

The invention discloses a method for determining the gradient of a train operation line and electronic equipment. The method comprises the steps that N data pairs are acquired; each data pair comprises a mileage and a corresponding elevation; the N data pairs are processed by moving a sliding window with the target window size by using the target step length, and M groups of data pairs are obtained; each group of data pairs comprises at least one data pair; for each data pair included in each group of data pairs, calculating a standard slope value of the road section represented by the data pair of the group; adjusting the standard slope value by using the target adjustment coefficient to obtain a target standard slope value; determining a gradient characteristic of the data pair of the group based on the target standard gradient value; the gradient characteristics comprise uphill, downhill and flat slope; in the N data pairs, curve fitting is carried out on the data pairs with the same gradient characteristics; the fitted curve is used for describing the gradient characteristic of the target line. The accuracy and efficiency of dividing the gradient characteristics of all the road sections of the line are improved, and safe operation of a train is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of rail transit technology, and in particular to a method and electronic equipment for determining the slope of a train running line. Background Art

[0002] In existing railway reconstruction projects or new railway construction projects, accurate measurement of line slope is very important for guiding train operations.

[0003] In the related art, after obtaining the mileage and elevation data sequence, an empirical threshold is usually set manually, and the case where the slope value is greater than the threshold is determined as an uphill or downhill slope, and the case where the slope value is less than the threshold is determined as a flat slope.

[0004] However, whether the selection of the above-mentioned empirical values ​​is accurate seriously affects the accuracy and efficiency of the division of the slope characteristics of each section of the line, and further affects the train operation. Summary of the invention

[0005] In an exemplary embodiment of the present application, a method and electronic device for determining the slope of a train running line are provided to improve the accuracy and efficiency of dividing the slope characteristics of each section of the line, thereby ensuring the safe operation of the train.

[0006] According to a first aspect of an exemplary embodiment, a method for determining a slope of a train running line is provided, comprising:

[0007] Obtain N data pairs; each data pair includes a mileage and a corresponding elevation; N is greater than or equal to 2;

[0008] Apply a sliding window with a target step size and a target window size to process N data pairs to obtain M groups of data pairs; wherein each group of data pairs includes at least one data pair; M is less than N;

[0009] For each data pair included in each group of data pairs, the standard slope value of the road section represented by the data pair of the group is calculated; the standard slope value is adjusted by applying the target adjustment coefficient to obtain the target standard slope value; based on the target standard slope value, the slope characteristics of the data pair of the group are determined; wherein the slope characteristics include upslope, downslope and flat slope;

[0010] Among the N data pairs, curve fitting is performed for the data pairs with the same slope characteristics; wherein the fitted curve is used to describe the slope characteristics of the target line.

[0011] According to a second aspect of an exemplary embodiment, there is provided a device for determining the slope of a train running line, comprising:

[0012] The data acquisition unit is used to: acquire N data pairs; each data pair includes a mileage and a corresponding elevation; N is greater than or equal to 2;

[0013] A data processing unit is used to: process N data pairs using a sliding window with a target step size and a target window size to obtain M groups of data pairs; wherein each group of data pairs includes at least one data pair; and M is less than N;

[0014] The slope characteristic determination unit is used to: for each data pair included in each group of data pairs, calculate the standard slope value of the road section represented by the data pair of the group; adjust the standard slope value by applying the target adjustment coefficient to obtain a target standard slope value; based on the target standard slope value, determine the slope characteristic of the data pair of the group; wherein the slope characteristic includes uphill, downhill and flat slope;

[0015] The data fitting unit is used to: perform curve fitting on data pairs with the same slope characteristics among N data pairs; wherein the fitted curve is used to describe the slope characteristics of the target line.

[0016] According to a third aspect of an exemplary embodiment, there is provided an electronic device, including a processor and a memory:

[0017] The memory is configured to execute:

[0018] Store N data pairs; each data pair includes a mileage and a corresponding elevation; N is greater than or equal to 2;

[0019] The processor is configured to execute:

[0020] Obtain N data pairs; apply a sliding window with a target step size and a target window size to process the N data pairs to obtain M groups of data pairs; wherein each group of data pairs includes at least one data pair; M is less than N;

[0021] For each data pair included in each group of data pairs, the standard slope value of the road section represented by the data pair of the group is calculated; the standard slope value is adjusted by applying the target adjustment coefficient to obtain the target standard slope value; based on the target standard slope value, the slope characteristics of the data pair of the group are determined; wherein the slope characteristics include upslope, downslope and flat slope;

[0022] Among the N data pairs, curve fitting is performed for the data pairs with the same slope characteristics; wherein the fitted curve is used to describe the slope characteristics of the target line.

[0023] According to a fourth aspect of an exemplary implementation, a computer storage medium is provided, in which computer program instructions are stored. When the instructions are executed on a computer, the computer executes the method for determining the slope of a train running line as in the first aspect.

[0024] In an embodiment of the present application, a data sequence is first obtained, and the data sequence includes N data pairs, each data pair includes a mileage and a corresponding elevation; N is greater than or equal to 2. Secondly, a sliding window of a target window size is moved using a target step size to process the N data pairs to obtain M groups of data pairs; each group of data pairs includes at least one data pair. Then, for each data pair included in each group of data pairs, the standard slope value of the road section represented by the group's data pairs is calculated; the standard slope value is adjusted using a target adjustment coefficient to obtain a target standard slope value; based on the target standard slope value, the slope characteristics of the group's data pairs are determined; the slope characteristics include uphill, downhill, and flat slope. Such a design ensures that the target standard slope values ​​used for each group are different, and fully combines the characteristics of the data pairs of this group. Finally, among the N data pairs, curve fitting is performed for the data pairs with the same slope characteristics; the fitted curve is used to describe the slope characteristics of the target route. Therefore, the dynamic target standard slope value is adopted to make the segmentation result of the data pair more accurate, and thus the fitting effect is better, thereby improving the accuracy and efficiency of the division of the slope characteristics of each section of the line, and thus ensuring the safe operation of the train. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0026] Figure 1 A schematic diagram of simulating collected data into a curve in the related art is exemplarily shown;

[0027] Figure 2 A schematic diagram exemplarily shows a segmentation result in the related art;

[0028] Figure 3 A schematic diagram exemplarily shows another segmentation result in the related art;

[0029] Figure 4 A flowchart of a method for determining the slope of a train running line provided by an embodiment of the present application is exemplarily shown;

[0030] Figure 5 A schematic diagram of a sliding window provided in an embodiment of the present application is exemplarily shown;

[0031] Figure 6 A flowchart of a method for determining a slope characteristic of a data pair in a set of data pairs provided by an embodiment of the present application is exemplarily shown;

[0032] Figure 7 A schematic diagram of a dynamic threshold provided by an embodiment of the present application is exemplarily shown;

[0033] Figure 8 A schematic diagram of applying a dynamic threshold segmentation result provided by an embodiment of the present application is exemplarily shown;

[0034] Fig. 9 A schematic diagram of the structure of a device for determining the slope of a train running line provided in an embodiment of the present application is exemplarily shown;

[0035] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is exemplarily shown. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0037] For ease of understanding, the terms involved in the embodiments of the present application are explained below:

[0038] (1) Sliding window: It is a data processing technique used to perform local analysis on continuous data sequences. By defining a window of fixed size and moving it sequentially on the data sequence, each time moving a step, local information of the data sequence can be obtained. When the window size is large, the range of data contained in the window is wider, so the data changes in the window are relatively even and are less sensitive to changes in local details. On the contrary, when the window size is small, the range of data contained in the window is smaller, so it is easier to capture subtle local changes and is more sensitive to data changes.

[0039] In existing railway reconstruction projects or new railway construction projects, the measurement of line slope is essential. The measurement method is usually to measure the line elevation at a certain interval to obtain a mileage and elevation data sequence. After obtaining the data sequence, the data is usually segmented (determine which section is uphill, flat or downhill), and then a certain method is used to fit the segmented data until the fitting curve meets the design requirements.

[0040] At present, the methods for fitting segmented data include manually inputting the test slope to minimize the rise and fall, least square method and least square method, etc. However, the basis and key of these fitting methods lies in accurate segmentation. At present, the segmentation method of data usually relies on the experience of designers to judge the dividing point (slope change point), which is not efficient and not accurate enough.

[0041] To this end, the embodiment of the present application provides a method for determining the slope of a train running line, in which a sliding window and a dynamic threshold are used to adaptively adjust the threshold according to the characteristics of the data sequence, and then the slope characteristics are determined according to the corresponding threshold. This makes the segmentation more accurate, thereby ensuring a better data fitting effect, thereby improving efficiency and accuracy.

[0042] After introducing the design ideas of the embodiments of the present application, the following briefly introduces the application scenarios to which the technical solutions of the embodiments of the present application can be applied. It should be noted that the application scenarios introduced below are only used to illustrate the embodiments of the present application and are not limited. In specific implementation, the technical solutions provided by the embodiments of the present application can be flexibly applied according to actual needs.

[0043] refer to Figure 1 , shows a schematic diagram of simulating collected data into a curve in the related technology, where the horizontal axis is the relative mileage and the vertical axis is the relative elevation. For example, in the simulated collected data, the length of the flat slope is 1000m, the length of the uphill slope is 5‰, the length of the flat slope is 1000m, the length of the downhill slope is 3‰, the length of the flat slope is 1000m, the length of the uphill slope is 1‰, and the length of the flat slope is 1000m. It should be noted that Figure 1 The number of data pairs (collection points) in is only for illustration and does not constitute a specific limitation.

[0044] The obtained data sequence includes multiple slope sections. In the related art, a threshold is selected. If the absolute value of the slope value is greater than the threshold, it is an uphill or downhill slope. Then, whether it is an uphill or downhill slope is determined based on the positive or negative value of the slope value; if the absolute value of the slope value is less than the threshold, it is a flat slope. However, this method has defects. When the data contains many slopes and the slope values ​​vary greatly, it is difficult to find a suitable threshold. If the threshold is large, both small slopes and downhill slopes will be identified as flat slopes; if the threshold is small, flat slopes will be identified as uphill and downhill slopes.

[0045] For example, if the threshold is 4‰, an uphill slope with a slope of 5‰ (data pair represented by ②) can be correctly identified, but a downhill slope with a slope of 3‰ (data pair represented by ④) and an uphill slope with a slope of 1‰ (data pair represented by ⑥) are both incorrectly identified as flat slopes. Figure 2 For example, if the threshold is 2‰, then an uphill slope with a slope of 5‰ (data pair represented by ②) and a downhill slope with a slope of 3‰ (data pair represented by ④) can be correctly identified, but an uphill slope with a slope of 1‰ (data pair represented by ⑥) is incorrectly identified as a flat slope, see Figure 3 .

[0046] To further illustrate the technical solution provided by the embodiment of the present application, this is described in detail below in conjunction with the accompanying drawings and specific implementation methods. Although the embodiment of the present application provides the method operation steps shown in the following embodiments or drawings, more or fewer operation steps may be included in the method based on routine or no creative labor. In the steps where there is no necessary causal relationship logically, the execution order of these steps is not limited to the execution order provided in the embodiment of the present application.

[0047] Combine the following Figure 1 The application scenario shown is shown in Figure 4 A flow chart of a method for determining the slope of a train running line is shown to illustrate the technical solution provided in an embodiment of the present application.

[0048] S401: Obtain N data pairs.

[0049] Each data pair includes a mileage and a corresponding elevation; N is greater than or equal to 2.

[0050] S402: Apply a sliding window of a target window size with a target step size to process N data pairs to obtain M groups of data pairs.

[0051] Each group of data pairs includes at least one data pair; and M is less than N.

[0052] S403: For each data pair in the M groups of data pairs, calculate the standard slope value of the road section represented by the data pair in the group; adjust the standard slope value using the target adjustment coefficient to obtain the target standard slope value; based on the target standard slope value, determine the slope characteristics of the group's data pairs.

[0053] Among them, the slope characteristics include upslope, downslope and flat slope.

[0054] S404: among the N data pairs, curve fitting is performed for the data pairs with the same slope characteristics.

[0055] The fitted curve is used to describe the slope characteristics of the target line.

[0056] In an embodiment of the present application, a data sequence is first obtained, and the data sequence includes N data pairs, each data pair includes a mileage and a corresponding elevation; N is greater than or equal to 2. Secondly, a sliding window of a target window size is moved using a target step size to process the N data pairs to obtain M groups of data pairs; each group of data pairs includes at least one data pair. Then, for each data pair included in each group of data pairs, the standard slope value of the road section represented by the group's data pairs is calculated; the standard slope value is adjusted using a target adjustment coefficient to obtain a target standard slope value; based on the target standard slope value, the slope characteristics of the group's data pairs are determined; the slope characteristics include uphill, downhill, and flat slope. Such a design ensures that the target standard slope values ​​used for each group are different, and fully combines the characteristics of the data pairs of this group. Finally, among the N data pairs, curve fitting is performed for the data pairs with the same slope characteristics; the fitted curve is used to describe the slope characteristics of the target route. Therefore, the dynamic target standard slope value is adopted to make the segmentation result of the data pair more accurate, and thus the fitting effect is better, thereby improving the accuracy and efficiency of the division of the slope characteristics of each section of the line, and thus ensuring the safe operation of the train.

[0057] In relation to S401, N data pairs can be obtained through steps A1-A2:

[0058] A1: Measure the target route according to the mileage sampling interval.

[0059] The mileage sampling interval refers to the sampling interval in the mileage dimension, and for example, the mileage sampling interval in the embodiment of the present application may be 20 meters. Measuring the target line refers to measuring the elevation of the target line.

[0060] A2: Obtain N mileages and corresponding N elevations to form N data pairs.

[0061] Optionally, after the measurement is completed, data pairs of mileage and elevation can be obtained. For example, N data pairs include N mileages and corresponding N elevations, and the N data pairs constitute a data sequence.

[0062] For example, to obtain the mileage x and elevation y data sequence {(x 1 ,y 1 ),(x 2 ,y 2 ),(x 3 ,y 3 )…(x n ,y n )}, the value of n is N.

[0063] In S402, a sliding window technique is used to process N data pairs by moving a sliding window of a target window size with a target step size to obtain M groups of data pairs.

[0064] In order to identify slopes with different characteristics, the local characteristics of each slope can be used for identification. Therefore, a sliding window can be used to achieve better identification results. Here, a window with a length equal to the target window size can be defined first. The target window size can be adjusted according to the actual situation. The sliding window can be started from the starting position of the data sequence (the first data pair) and moved backward in sequence, each time moving a target step size. The target step size can be adjusted according to the actual situation, for example, it can be matched with the mileage sampling interval.

[0065] Exemplarily, the target step size and the target window size are determined by steps B1-B2:

[0066] B1: Determine the target step length based on the mileage sampling interval when acquiring N data pairs and the change in the slope value represented by N-1 slope values.

[0067] Among them, the target step size is the first multiple of the mileage sampling interval. If the mileage sampling interval is small, the target step size is also correspondingly small, which can ensure that subtle slope changes can be captured; if the slope changes frequently, a smaller target step size can provide more detailed analysis, thereby more accurately identifying the slope change points. On the contrary, if the slope changes more gently or the frequency of change is low, a larger target step size is more appropriate, and a smaller target step size will process more windows and increase the amount of calculation. When resources are limited, it may be necessary to increase the target step size to improve computational efficiency. In practical applications, it may be necessary to determine the optimal target step size through experiments. By comparing the results under different target step size settings, the optimal target step size setting can be found. For example, if the first multiple is 1, the target step size is equal to the mileage sampling interval, which is 20m.

[0068] B2: Determine the target window size as the second multiple of the mileage sampling interval.

[0069] In addition, the ratio of the target step size to the target window size is also important. The target window size determines the scope of the local analysis, while the target step size determines the density of the analysis. A larger target window size may require a smaller target step size to maintain data continuity and reduce the amount of calculation. For example, the target window size is the second multiple of the mileage sampling interval, where the second multiple is greater than the first multiple and can be 10.

[0070] For example, the target window size is 200 meters, the target step size is 20 meters, N is 100, and M is 91. By sliding the window, the first group of data pairs is data pair 1 to data pair 10, the second group of data pairs is data pair 2 to data pair 11, and the 91st group of data pairs is data pair 91 to data pair 100.

[0071] Figure 5 A schematic diagram of a sliding window provided in an embodiment of the present application, Figure 5 In the example, the target window size of the sliding window can be represented by m, for example, 200 meters.

[0072] For each data pair in the M data pairs, refer to Figure 6 , describes the process of determining the slope characteristics of a set of data pairs, Figure 6 Includes steps S403-1 to S403-3.

[0073] S403-1: Calculate the standard slope value of the road section represented by the data pair of this group.

[0074] The standard slope value of the road section represented by the data pair of the calculation group is determined by steps C1-C2:

[0075] C1: Based on any two adjacent data pairs in the group of data pairs, calculate the slope value of the road section represented by any two adjacent data pairs.

[0076] Among them, the data pair (x n-1 ,y n-1 ) and data pairs (x n ,y n )The calculated slope kn=(y n -y n-1 ) / (x n -x n-1 ), therefore, it can be determined that the slope value of the road section represented by these two data pairs is kn.

[0077] C2: Calculate the standard deviation of each slope value and use the standard deviation as the standard slope value of the road segment represented by the group of data pairs.

[0078] After calculating multiple slope values, the standard deviation of each slope value can be calculated, and the standard deviation is used as the standard slope value of the road section represented by the group of data pairs. The standard slope value can indicate the degree of dispersion of the group of data pairs.

[0079] After calculating the standard slope value of a group, by processing the sliding window and moving it backward, the same method can be applied to gradually obtain the discrete degree of the entire data sequence, so as to better identify the changing trend of the slope.

[0080] S403-2: Apply the target adjustment coefficient to adjust the standard slope value to obtain the target standard slope value.

[0081] The adjustment may be to multiply the adjustment coefficient by the standard slope value. The adjustment coefficient has no unit and indicates the sensitivity to the change of the slope data. The larger the adjustment coefficient, the lower the sensitivity to the change of the slope data. It can be adjusted according to the actual situation.

[0082] Exemplarily, the target adjustment coefficient is determined through steps D1-D2:

[0083] D1: Based on any two adjacent data pairs among the N data pairs, N-1 slope values ​​are calculated.

[0084] The obtained N-1 slope values ​​can indicate the slope change. In a specific example, the slope value can be the slope of any two adjacent data pairs.

[0085] D2: Determine the target adjustment coefficient based on N-1 slope values, set data noise, and whether the target line is located in the critical area

[0086] Among them, the slope change amplitude can be determined according to N-1 slope values. When the slope change amplitude is small, that is, relatively gentle, it is usually necessary to increase the sensitivity, that is, reduce the size of the target adjustment coefficient, in order to capture these subtle changes; when the slope change amplitude is large, usually too high sensitivity is not required to identify the slope change, so the target adjustment coefficient can be increased to avoid being overly sensitive to small fluctuations.

[0087] In addition, if the target adjustment factor is set too small when the data noise is high, it may lead to oversensitivity to the noise, thus erroneously identifying many unnecessary slope changes. The level of data noise is usually related to the measurement tool used. Therefore, in actual application, the data noise can be set.

[0088] In addition, according to the specific needs of engineering design, it is possible to accurately identify the slope changes in certain key areas. At this time, the target adjustment coefficient can be reduced to increase sensitivity; in non-critical areas, the target adjustment coefficient can be increased to simplify data processing.

[0089] Taking the above factors into consideration, if data processing is required under limited computing resources, a trade-off may need to be made between sensitivity and computing efficiency. Increasing sensitivity may increase the amount of calculation, so it may be necessary to determine the target adjustment coefficient based on actual conditions to balance the two.

[0090] Alternatively, the coefficients can be adjusted based on past experience feedback. If it is found that certain slope changes are often misidentified or missed, the coefficients can be adjusted based on this feedback to optimize the recognition effect.

[0091] In this way, the target standard slope value of each group is obtained, which can also be called a dynamic threshold. Each group corresponds to a sliding window, and each sliding window obtains a dynamic threshold.

[0092] Figure 7 A schematic diagram of a dynamic threshold provided in an embodiment of the present application, through Figure 6It can be seen that each point is a dynamic threshold obtained by applying a sliding window to process a set of data pairs.

[0093] In S403-3, based on the target standard slope value, the slope characteristics of the data pair of the group are determined.

[0094] Since the calculated slope value's positive or negative sign and size all affect the judgment of uphill, downhill or flat slope, the slope characteristics of the group's data pair can be determined based on the target standard slope value, including the following three situations:

[0095] Case 1: If the slope value calculated based on any two adjacent data pairs among the N data pairs is a positive number and is greater than the target standard slope value, it is determined that the road section represented by the any two adjacent data pairs is uphill.

[0096] Case 2: If the slope value calculated based on any two adjacent data pairs among the N data pairs is a negative number and is greater than the target standard slope value, it is determined that the road section represented by the any two adjacent data pairs is a downhill section.

[0097] Case 3: If the absolute value of the slope value calculated based on any two adjacent data pairs among the N data pairs is less than or equal to the target standard slope value, it is determined that the road section represented by any two adjacent data pairs is a flat slope.

[0098] In addition, the slope dividing point can also be obtained, for example, the dividing point from an uphill slope to a flat slope or a downhill slope.

[0099] In S404, through the above embodiment, the slope characteristics of each group of data pairs can be determined, that is, the slope characteristics of each data pair in the N data pairs can be obtained. In the actual application process, the data pairs can be used as the granularity to perform curve fitting for the data pairs with the same slope characteristics; or the group data pairs can be used as the granularity to perform curve fitting for the group data pairs with the same slope characteristics.

[0100] Exemplarily, the least square method can be used for fitting and the correlation coefficient can be calculated. If the correlation coefficient is greater than the set correlation coefficient threshold, it can be determined that the fitted curve can be used to describe the slope characteristics of the target line. Considering that the slope demarcation point is not necessarily the optimal solution and there may be errors, therefore, if the obtained correlation coefficient is less than the set correlation coefficient threshold, the method of the embodiment of the present application can be repeatedly executed until the obtained correlation coefficient is greater than or equal to the set related technical threshold. The fitted curve is used to describe the slope characteristics of the target line.

[0101] In addition, in practical applications, the error between the fitted curve and N data pairs can be calculated, and then the target step size and the target adjustment coefficient can be adjusted according to the error, so as to achieve a better fitting effect.

[0102] Figure 8 This is a schematic diagram of the application of dynamic threshold segmentation results provided in an embodiment of the present application, wherein the dynamic threshold is the target standard slope value, and it can be seen that the uphill point (data pair represented by ② and ⑥), the downhill point (data pair represented by ④), the flat slope point (data pair represented by ①③⑤⑦) and the dividing point. Figure 8 As an example, it can be seen that the initial threshold is 0, that is, the data in the window is not discrete, which means that the window data only contains flat slopes; as the window gradually moves backward, the threshold gradually increases, which means that the window data contains data with a slope greater than 0; when the threshold reaches the maximum value, the window data is the most discrete, that is, it reaches the slope dividing point.

[0103] In the embodiment of the present application, in the slope data collection stage, the line elevation is measured at a certain interval by sampling characteristic points, thereby obtaining a mileage and elevation data sequence; in the segmentation stage of the slope data, a sliding window is used to identify uphill, downhill, flat slope and slope change point (dividing point) data; in the slope data fitting stage, after obtaining the slope stage and slope change point data, the segmentation data is fitted using the least squares method. The subjectivity and uncertainty in the manual segmentation method and the fixed value segmentation method are avoided, and an accurate and efficient slope calculation process can be achieved.

[0104] like Fig. 9 As shown, based on the same inventive concept, an embodiment of the present application provides a device for determining the slope of a train running line, including a data acquisition unit 91, a data processing unit 92, a slope characteristic determination unit 93 and a data fitting unit 94.

[0105] The data acquisition unit 91 is used to: acquire N data pairs; each data pair includes a mileage and a corresponding elevation; N is greater than or equal to 2;

[0106] The data processing unit 92 is used to: process the N data pairs using a sliding window with a target step size and a target window size to obtain M groups of data pairs; wherein each group of data pairs includes at least one data pair; and M is less than N;

[0107] The slope characteristic determination unit 93 is used to: for each data pair included in each group of data pairs, calculate the standard slope value of the road section represented by the data pair of the group; adjust the standard slope value by applying the target adjustment coefficient to obtain a target standard slope value; and determine the slope characteristic of the data pair of the group based on the target standard slope value; wherein the slope characteristic includes uphill, downhill and flat slope;

[0108] The data fitting unit 94 is used to perform curve fitting on the data pairs with the same slope characteristics among the N data pairs; wherein the fitted curve is used to describe the slope characteristics of the target line.

[0109] In an optional implementation, the data processing unit 92 is further configured to:

[0110] According to any two adjacent data pairs among the N data pairs, N-1 slope values ​​are calculated;

[0111] The target adjustment coefficient is determined based on the N-1 slope values, the set data noise, and whether the target line is located in the critical area.

[0112] In an optional implementation, the data processing unit 92 is further configured to:

[0113] The target step length is determined according to the mileage sampling interval when the N data pairs are obtained and the change of the slope value represented by the N-1 slope values; wherein the target step length is the first multiple of the mileage sampling interval;

[0114] The target window size is determined to be the second multiple of the mileage sampling interval; wherein the second multiple is greater than the first multiple.

[0115] In an optional implementation manner, the slope characteristic determination unit 93 is specifically configured to:

[0116] According to any two adjacent data pairs in the data pairs of the group, the slope value of the road section represented by any two adjacent data pairs is calculated;

[0117] The standard deviation of each slope value is calculated and the standard deviation is used as the standard slope value of the road segment represented by the group of data pairs.

[0118] In an optional implementation manner, the slope characteristic determination unit 93 is specifically configured to:

[0119] If the slope value calculated based on any two adjacent data pairs among the N data pairs is a positive number and is greater than the target standard slope value, then it is determined that the road section represented by the any two adjacent data pairs is an uphill section;

[0120] If the slope value calculated based on any two adjacent data pairs among the N data pairs is a negative number and is greater than the target standard slope value, it is determined that the road section represented by the any two adjacent data pairs is a downhill slope;

[0121] If the absolute value of the slope value calculated based on any two adjacent data pairs among the N data pairs is less than or equal to the target standard slope value, it is determined that the road section represented by the any two adjacent data pairs is a flat slope.

[0122] In an optional implementation, the data acquisition unit 91 is specifically used to:

[0123] Measure the target route according to the mileage sampling interval;

[0124] The N mileages and the corresponding N elevations constitute N data pairs.

[0125] In an optional implementation, the data processing unit 92 is further configured to:

[0126] Calculate the error between the fitted curve and N data pairs;

[0127] Adjust the target step size and target adjustment factor based on the error.

[0128] Since the device is the device in the method in the embodiment of the present application, and the principle of solving the problem by the device is similar to that of the method, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0129] like Fig.10 As shown, based on the same inventive concept, an embodiment of the present application provides an electronic device, which includes a processor 101 and a memory 102.

[0130] The memory 102 is configured to execute:

[0131] Store N data pairs; each data pair includes a mileage and a corresponding elevation; N is greater than or equal to 2;

[0132] The processor 101 is configured to execute:

[0133] Obtain N data pairs; apply a sliding window with a target step size and a target window size to process the N data pairs to obtain M groups of data pairs; wherein each group of data pairs includes at least one data pair; M is less than N;

[0134] For each data pair included in each group of data pairs, the standard slope value of the road section represented by the data pair of the group is calculated; the standard slope value is adjusted by applying the target adjustment coefficient to obtain the target standard slope value; based on the target standard slope value, the slope characteristics of the data pair of the group are determined; wherein the slope characteristics include upslope, downslope and flat slope;

[0135] Among the N data pairs, curve fitting is performed for the data pairs with the same slope characteristics; wherein the fitted curve is used to describe the slope characteristics of the target line.

[0136] In an optional implementation, the processor 101 is further configured to:

[0137] According to any two adjacent data pairs among the N data pairs, N-1 slope values ​​are calculated;

[0138] The target adjustment coefficient is determined based on the N-1 slope values, the set data noise, and whether the target line is located in the critical area.

[0139] In an optional implementation, the processor 101 is further configured to:

[0140] The target step length is determined according to the mileage sampling interval when the N data pairs are obtained and the change of the slope value represented by the N-1 slope values; wherein the target step length is the first multiple of the mileage sampling interval;

[0141] The target window size is determined to be the second multiple of the mileage sampling interval; wherein the second multiple is greater than the first multiple.

[0142] In an optional implementation manner, the processor 101 is specifically configured to:

[0143] According to any two adjacent data pairs in the data pairs of the group, the slope value of the road section represented by any two adjacent data pairs is calculated;

[0144] The standard deviation of each slope value is calculated and the standard deviation is used as the standard slope value of the road segment represented by the group of data pairs.

[0145] In an optional implementation manner, the processor 101 is specifically configured to:

[0146] If the slope value calculated based on any two adjacent data pairs among the N data pairs is a positive number and is greater than the target standard slope value, then it is determined that the road section represented by the any two adjacent data pairs is an uphill section;

[0147] If the slope value calculated based on any two adjacent data pairs among the N data pairs is a negative number and is greater than the target standard slope value, it is determined that the road section represented by the any two adjacent data pairs is a downhill slope;

[0148] If the absolute value of the slope value calculated based on any two adjacent data pairs among the N data pairs is less than or equal to the target standard slope value, it is determined that the road section represented by the any two adjacent data pairs is a flat slope.

[0149] In an optional implementation manner, the processor 101 is specifically configured to:

[0150] Measure the target route according to the mileage sampling interval;

[0151] The N mileages and the corresponding N elevations constitute N data pairs.

[0152] In an optional implementation, the processor 101 is further configured to:

[0153] Calculate the error between the fitted curve and N data pairs;

[0154] Adjust the target step size and target adjustment factor based on the error.

[0155] An embodiment of the present application also provides a computer storage medium, in which computer program instructions are stored. When the instructions are executed on a computer, the computer executes the steps of the above-mentioned method for determining the slope of a train running line.

[0156] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0157] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0158] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0159] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0160] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for determining the slope of a train running line, characterized in that: include: Obtain N data pairs; each data pair includes a mileage and a corresponding elevation; N is greater than or equal to 2; Applying a sliding window with a target step size and a target window size to process the N data pairs to obtain M groups of data pairs; wherein each group of data pairs includes at least one data pair; M is less than N; For each data pair included in each group of data pairs, a standard slope value of a road section represented by the data pair of the group is calculated; the standard slope value is adjusted by applying a target adjustment coefficient to obtain a target standard slope value; based on the target standard slope value, a slope characteristic of the data pair of the group is determined; wherein the slope characteristic includes an uphill slope, a downhill slope, and a flat slope; Among the N data pairs, curve fitting is performed for data pairs with the same slope characteristics; wherein the fitted curve is used to describe the slope characteristics of the target line.

2. The method according to claim 1, characterized in that The method further comprises: According to any two adjacent data pairs among the N data pairs, N-1 slope values ​​are calculated; The target adjustment coefficient is determined according to the N-1 slope values, set data noise, and whether the target line is located in a critical area.

3. The method according to claim 2, characterized in that The method further comprises: Determining the target step length according to the mileage sampling interval when acquiring the N data pairs and the change in the slope value represented by the N-1 slope values; wherein the target step length is a first multiple of the mileage sampling interval; The target window size is determined to be a second multiple of the mileage sampling interval; wherein the second multiple is greater than the first multiple.

4. The method according to claim 1, characterized in that: The step of calculating the standard slope value of the road segment represented by the data pair of the group comprises: According to any two adjacent data pairs in the group of data pairs, calculating the slope value of the road section represented by the any two adjacent data pairs; The standard deviation of each slope value is calculated, and the standard deviation is used as the standard slope value of the road segment represented by the data pair of the group.

5. The method according to claim 1, characterized in that The step of determining the slope characteristics of the data pairs of the group based on the target standard slope value comprises: If the slope value calculated according to any two adjacent data pairs among the N data pairs is a positive number and is greater than the target standard slope value, it is determined that the road section represented by the any two adjacent data pairs is an uphill slope; If the slope value calculated according to any two adjacent data pairs among the N data pairs is a negative number and is greater than the target standard slope value, it is determined that the road section represented by the any two adjacent data pairs is a downhill slope; If the absolute value of the slope value calculated according to any two adjacent data pairs among the N data pairs is less than or equal to the target standard slope value, it is determined that the road section represented by the any two adjacent data pairs is a flat slope.

6. The method according to claim 1, characterized in that The obtaining of N data pairs includes: Measuring the target route according to the mileage sampling interval; The N mileages and the corresponding N elevations constitute N data pairs.

7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: Calculating the error between the fitted curve and the N data pairs; The target step size and the adjustment coefficient are adjusted according to the error.

8. An electronic device, characterized in that: Including processor and memory: The memory is configured to execute: Store N data pairs; each data pair includes a mileage and a corresponding elevation; N is greater than or equal to 2; The processor is configured to perform: Acquire the N data pairs; apply a sliding window with a target step size and a target window size to process the N data pairs to obtain M groups of data pairs; wherein each group of data pairs includes at least one data pair; and M is less than N; For each data pair included in each group of data pairs, a standard slope value of a road section represented by the data pair of the group is calculated; the standard slope value is adjusted by applying a target adjustment coefficient to obtain a target standard slope value; based on the target standard slope value, a slope characteristic of the data pair of the group is determined; wherein the slope characteristic includes an uphill slope, a downhill slope, and a flat slope; Among the N data pairs, curve fitting is performed for data pairs with the same slope characteristics; wherein the fitted curve is used to describe the slope characteristics of the target line.

9. The electronic device according to claim 8, characterized in that: The processor is further configured to: According to any two adjacent data pairs among the N data pairs, N-1 slope values ​​are calculated; The target adjustment coefficient is determined according to the N-1 slope values, set data noise, and whether the target line is located in a critical area.

10. The electronic device according to claim 9, characterized in that: The processor is further configured to: Determining the target step length according to the mileage sampling interval when acquiring the N data pairs and the change in the slope value represented by the N-1 slope values; wherein the target step length is a first multiple of the mileage sampling interval; The target window size is determined to be a second multiple of the mileage sampling interval; wherein the second multiple is greater than the first multiple.