Identification method and device, electronic device and computer-readable storage medium
By preprocessing the flight parameters and pre-judging the intersection, the aircraft's circling segment is identified, which solves the problems of misidentification and low calculation efficiency in the existing technology, and achieves efficient and accurate identification of the circling segment.
Patent Information
- Application Number
- CN202111313154.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-08
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-11-08
AI Technical Summary
The existing technology has misidentification problems when identifying aircraft circling segments, and the calculation efficiency is low, making it difficult to find a balance between ensuring accuracy and improving efficiency.
By first preprocessing the flight parameters in the flight segment to narrow the data range, the line segment pairs that require complete intersection judgment are screened out, and the longitude and latitude coordinates are used to perform intersection pre-judgment to reduce the amount of subsequent calculations to identify the circling segment.
On the premise of ensuring recognition accuracy, the calculation efficiency is significantly improved and the probability of misidentification of the circling flight segment is reduced.
Smart Images

Figure CN114241293B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of aviation technology, and in particular to an identification method and device thereof, an electronic device and a computer-readable storage medium. Background Art
[0002] When an airplane arrives at the destination airport, it often needs to circle before landing for some reason. The circling segment is very important for the fuel consumption analysis and flight operation analysis of the entire flight process. Therefore, it is necessary to identify the circling segment during the flight.
[0003] In the related art, there may be misidentification of the circling segment, and the calculation efficiency is relatively low while ensuring accuracy. Summary of the invention
[0004] In view of this, the present invention aims to solve one of the problems in the related art at least to a certain extent. To this end, the purpose of the present application is to provide an identification method and device thereof, an electronic device and a computer-readable storage medium.
[0005] The present application provides a method for identifying a circling segment. The identification method comprises: performing a first preprocessing on the flight parameters in the acquired flight segment to narrow the data range for the circling judgment; performing a second preprocessing on the narrowed data range to find a line segment pair that needs to be completely intersected; and identifying the circling segment according to the line segment pair.
[0006] In some embodiments, the flight parameters include an aircraft bank angle and a heading, and the first preprocessing of the acquired flight parameters in the flight segment to narrow the data range for performing the circling judgment includes: screening the aircraft bank angle and the heading according to preset conditions to narrow the data range for performing the circling judgment.
[0007] In some embodiments, the filtering process of the bank angle and heading of the aircraft according to the preset conditions to narrow the data range for the hovering judgment includes: filtering sampling points whose absolute value of the bank angle is greater than a predetermined angle in the flight parameters; filtering out a plurality of turning segments formed by continuous turning points in the same direction from the sampling points to form a first turning segment set; in the first turning segment set, if the time interval between every two adjacent turning segments is less than a predetermined time length and the turning directions are the same, merging processing is performed to form a second turning segment set after merging processing; judging the heading change amount for each turning segment in the second turning segment set, eliminating the turning segments whose heading change amount is less than or equal to a predetermined degree, so as to form a third turning segment combination after elimination processing; in the third turning segment set, if there is no straight flight segment greater than or equal to a predetermined time length between every two adjacent turning segments, merging processing is performed to form a fourth turning segment set after merging processing; performing boundary extension processing on each turning segment in the fourth turning segment set; merging the turning segments that overlap after the extension processing to form a fifth turning segment set after merging processing.
[0008] In some embodiments, the second preprocessing of the narrowed data range to find the line segment pairs that need to be fully intersected includes: performing a pre-intersection judgment on the fifth turning segment set using longitude and latitude coordinates to find the line segment pairs that need to be fully intersected in each turning segment.
[0009] In some embodiments, the pre-intersection judgment of the fifth turning segment set using longitude and latitude coordinates to find the line segment pairs that need to be fully judged in each turning segment includes: using longitude and latitude coordinates to perform the pre-intersection judgment on every 2 non-adjacent line segments in each turning segment in the fifth turning segment set.
[0010] In some embodiments, the pre-judgment of the intersection of each two non-adjacent line segments in each turning segment in the fifth turning segment set using longitude and latitude coordinates includes: obtaining the longitude of the starting point of the first line segment, the latitude of the starting point of the first line segment, the longitude of the end point of the first line segment, and the latitude of the end point of the first line segment, as well as the longitude of the starting point of the second line segment, the latitude of the starting point of the second line segment, the longitude of the end point of the second line segment, and the latitude of the end point of the second line segment; arranging the longitude of the starting point, the latitude of the starting point, the longitude of the end point, and the latitude of the end point of each line segment in ascending order based on the longitude and latitude to obtain To the smaller longitude value of the first line segment, the larger longitude value of the first line segment, the smaller latitude value of the first line segment, the larger latitude value of the first line segment, the smaller longitude value of the second line segment, the larger longitude value of the second line segment, the smaller latitude value of the second line segment, and the larger latitude value of the second line segment; according to the smaller longitude value of the first line segment, the larger longitude value of the first line segment, the smaller latitude value of the first line segment, the larger latitude value of the first line segment, the smaller longitude value of the second line segment, the larger longitude value of the second line segment, the smaller latitude value of the second line segment, and the larger latitude value of the second line segment, determine whether the two non-adjacent line segments have the possibility of intersection.
[0011] In some embodiments, the determination of whether the two non-adjacent line segments intersect based on the smaller longitude value of the first line segment, the larger longitude value of the first line segment, the smaller latitude value of the first line segment, the larger latitude value of the first line segment, the smaller longitude value of the second line segment, the larger longitude value of the second line segment, the smaller latitude value of the second line segment, and the larger latitude value of the second line segment may include: the smaller latitude value of the second line segment is less than or equal to the larger latitude value of the first line segment, and the larger latitude value of the second line segment is greater than or equal to the smaller latitude value of the first line segment, and the smaller longitude value of the second line segment is less than or equal to the larger longitude value of the first line segment, and the larger longitude value of the second line segment is greater than or equal to the smaller longitude value of the first line segment, then it is confirmed that the first line segment and the second line segment may intersect, and a complete intersection judgment needs to be performed.
[0012] The present application also provides a device for identifying a circling segment. The identification device includes: a first preprocessing module, a second preprocessing module and an identification module. The first preprocessing module is used to perform a first preprocessing on the acquired flight parameters in the flight segment to narrow the data range used for the circling judgment; the second preprocessing module is used to perform a second preprocessing on the narrowed data range to find out the line segment pairs that need to be completely intersected; the identification module is used to identify the circling segment according to the line segment pairs.
[0013] The present application also provides an electronic device, which includes a processor and a memory, wherein the memory is used to store a computer program, and when the processor executes the computer program, the processor implements any one of the identification methods described in the above embodiments.
[0014] The present application also provides a non-volatile computer-readable storage medium containing a computer program. When the computer program is executed by one or more processors, the identification method described in any one of the above embodiments is implemented.
[0015] The identification method and its device, electronic device and computer-readable storage medium of the present application can greatly reduce the amount of calculation for subsequent complete intersection judgment by performing a first preprocessing on the flight parameters in the acquired flight segment to narrow the data range of the circling judgment, thereby improving the calculation efficiency while ensuring accuracy, and reducing the probability of misidentification of the circling segment.
[0016] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0018] Figure 1 is a flowchart of a method for identifying a circling segment in certain embodiments of the present application;
[0019] Figure 2 It is a schematic diagram of the structure of a device for identifying a circling segment in some embodiments of the present application;
[0020] Figure 3 is a schematic diagram of a scenario of a method for identifying a circling segment in certain embodiments of the present application;
[0021] Figure 4 is a flowchart of a method for identifying a circling segment in certain embodiments of the present application;
[0022] Figure 5 is a flowchart of a method for identifying a circling segment in certain embodiments of the present application;
[0023] Figure 6 is a schematic diagram of the structure of a first pre-processing module in a device for identifying a circling segment in certain embodiments of the present application;
[0024] Figure 7 is a schematic diagram of a straight flight segment in a method for identifying a circling flight segment in certain embodiments of the present application;
[0025] Figure 8 is a flowchart of a method for identifying a circling segment in certain embodiments of the present application;
[0026] Fig. 9 is a flowchart of a method for identifying a circling segment in certain embodiments of the present application;
[0027] Fig.10 is a flowchart of a method for identifying a circling segment in certain embodiments of the present application;
[0028] Fig.11 is a schematic diagram of the structure of a second pre-processing module in a device for identifying a circling segment in certain embodiments of the present application;
[0029] Fig.12 is a flowchart of a method for identifying a circling segment in certain embodiments of the present application;
[0030] Fig.13 is a schematic diagram of the structure of an electronic device according to some embodiments of the present application;
[0031] Fig.14 It is a schematic diagram of the structure of a computer-readable storage medium of certain embodiments of the present application. DETAILED DESCRIPTION
[0032] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.
[0033] In the description of the present application, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance, or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0034] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, and can be fixedly connected, detachably connected, or integrally connected; can be mechanically connected, electrically connected, or can communicate with each other; can be directly connected, or indirectly connected through an intermediate medium, can be the internal connection of two elements, or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0035] The disclosure below provides many different embodiments or examples to realize the different structures of the present application. In order to simplify the disclosure of the present application, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present application. In addition, the present application can repeat reference numbers and / or reference letters in different examples, and this repetition is for the purpose of simplification and clarity, which itself does not indicate the relationship between the various embodiments and / or settings discussed.
[0036] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.
[0037] The relevant identification process for determining whether a flight has a circling segment is as follows:
[0038] (1) Take a 2-hour flight as an example. There is one sampling point per second, totaling 7200 points. Every two adjacent sampling points form a line segment, totaling 7199 line segments. Each line segment needs to be judged once for "intersection" with all the subsequent non-adjacent line segments. The total number of judgments required is:
[0039] 7197+7196+…+1=25902003
[0040] (2) Expanding the above calculation scale to any flight of N hours, the number of judgments required is:
[0041] (3600N-3)+(3600N-4)+…+1=6480000N 2 -9000N+3
[0042] (3) Each “intersection” judgment operation also requires about 14 steps of basic arithmetic operations.
[0043] (4) In the above two steps, regardless of whether the flight has a circling segment, it needs to go through the same number of calculations and consume the same amount of time. The calculation time for each flight can be as short as a few minutes or as long as more than ten minutes. This kind of calculation performance will seriously affect production efficiency in large-scale batch flight calculations. The advantage of this method is high accuracy, and the biggest disadvantage is that the calculation efficiency is relatively low.
[0044] In view of this, please refer to Figure 1 , the present application provides a method for identifying a circling segment. The identification method includes:
[0045] 01: performing a first preprocessing on the acquired flight parameters in the flight segment to narrow the data range for hovering judgment;
[0046] 02: Perform a second preprocessing on the reduced data range to find the line segment pairs that need to be completely intersected;
[0047] 03: Identify the circling segment based on the line segment pair.
[0048] Please combine Figure 2 The present application also provides a device 10 for identifying a circling segment. The identification device 10 includes a first preprocessing module 11 , a second preprocessing module 12 and an identification module 13 .
[0049] Step 11 can be implemented by the first preprocessing module 11, step 12 can be implemented by the second preprocessing module 12, and step 13 can be implemented by the identification module 13. That is, the first preprocessing module 11 is used to perform a first preprocessing on the acquired flight parameters in the flight segment to narrow the data range for circling judgment; the second preprocessing module 12 is used to perform a second preprocessing on the narrowed data range to find the line segment pairs that need to be completely intersected; the identification module 13 is used to identify the circling segment according to the line segment pairs.
[0050] Specifically, the flight parameters in the flight segment refer to the three parameters of "flight altitude (ALTITUDE), bank angle (ROLL), and linear heading (HEADING_LINEAR)", that is, Figure 3 Shown are the obtained variation curves of the three flight parameters for the entire flight segment.
[0051] The method for identifying the circling segment of the present application first performs a first preprocessing based on the above-mentioned flight parameters to narrow the data range used for circling judgment, then performs a second preprocessing on the narrowed data range to find the line segment pairs that need to be fully intersected. Finally, the circling segment is identified based on the line segment pairs, which can greatly reduce the amount of calculation required for subsequent complete intersection judgment, thereby improving calculation efficiency while ensuring recognition accuracy, and can reduce the probability of misidentification of the circling segment.
[0052] See also Figure 4 In some embodiments, step 01 includes:
[0053] 011: Filter the aircraft bank angle and heading according to preset conditions to narrow the data range for circling judgment.
[0054] Please combine Figure 2 Step 011 can be implemented by the first preprocessing module 11, which is used to filter the aircraft bank angle and heading according to preset conditions to narrow the data range for circling judgment.
[0055] It is understandable that, since the aircraft will definitely turn during the circling process, and the turn is small, there will definitely be a bank angle of more than 10 degrees. Each time the aircraft turns during the circling process, the aircraft's heading change will definitely exceed 180 degrees. Therefore, the aircraft's bank angle and heading can be used to perform a first pre-processing on the flight parameters to narrow the data range for circling judgment.
[0056] Specifically, the preset condition refers to screening sampling points of a portion where bank angle and heading change greatly.
[0057] Therefore, in the step of "using the aircraft bank angle and heading to narrow the data range", Figure 3 Most of the sampling points on the left side have relatively stable "bank angle and heading", and only some sampling points between the two dotted lines on the right side need to be judged for self-intersection.
[0058] See also Figure 5 In some embodiments, step 011 includes:
[0059] 0111: Filter the sampling points whose absolute value of the slope angle is greater than the preset angle in the flight parameters;
[0060] 0112: Filter out a plurality of turning segments formed by continuous turning points in the same direction from the sampling points to form a first turning segment set;
[0061] 0113: In the first turning segment set, if the time interval between every two adjacent turning segments is less than a predetermined time length and the turning directions are the same, a merging process is performed to form a second turning segment set after the merging process;
[0062] 0114: determining the heading change amount for each turning segment in the second turning segment set, and eliminating the turning segments whose heading change amount is less than or equal to a predetermined degree, so as to form a third turning segment combination after the elimination process;
[0063] 0115: In the third turning segment set, if there is no straight flight segment greater than or equal to the predetermined duration between every two adjacent turning segments, a merging process is performed to form a fourth turning segment set after the merging process;
[0064] 0116: Perform boundary extension processing on each turning segment in the fourth turning set segment;
[0065] 0117: The overlapping turning segments after the extension process are merged to form a fifth turning segment set after the merging process.
[0066] Please combine Figure 6The first preprocessing module 11 includes a first screening unit 111, a second screening unit 112, a first merging unit 113, a eliminating unit 114, a second merging unit 115, an extending processing unit 116 and a third merging unit 117.
[0067] Step 0111 can be implemented by the first screening unit 111, step 0112 can be implemented by the second screening unit 112, step 0113 can be implemented by the first merging unit 113, step 0114 can be implemented by the elimination unit 114, step 0115 can be implemented by the second merging unit 115, step 0116 can be implemented by the extension processing unit 116, and step 0117 can be implemented by the third merging unit 117.
[0068] Specifically, for example, the above steps may include the following steps:
[0069] (1) Find all sampling points where the absolute value of the bank angle is greater than 10 degrees while the aircraft is in the air; take the predetermined angle of 10 degrees as an example.
[0070] (2) Continuous turning points in the same direction form a turning segment, which is recorded as the first turning segment set; the so-called "same direction" means that the positive and negative signs of the slope angles are the same.
[0071] (3) If the time interval between two adjacent turning segments is less than 3 minutes, and the turning directions of two adjacent turning segments are the same, the two adjacent turning segments can be merged into one turning segment; after completing this round of merging, the remaining turning segments are recorded as the second turning segment set. Here, the predetermined time length is 3 minutes as an example for explanation, that is, the predetermined time length can also be other values, which are not limited here.
[0072] It should be noted that if the turning directions between every two adjacent turning segments are different, they cannot be merged, because this will cause the subsequent heading change to exceed 180 degrees, which will invalidate the logic.
[0073] (4) Determine the heading change amount for each turning segment in the second turning segment set. If the heading difference between the first and last points of a turning segment is less than or equal to 180 degrees, remove the turning segment. The remaining turning segments are recorded as the third turning segment set. The predetermined degree of 180 degrees is used as an example for explanation.
[0074] (5) In the third turn segment set, if there is no straight flight segment greater than or equal to 3 minutes between every two adjacent turn segments, they are merged. After this round of processing is completed, the remaining turn segments are recorded as the fourth turn segment set. Here, the predetermined duration of 3 minutes is used as an example for explanation. The predetermined duration may also be other values. The value of 3 minutes is for reference only.
[0075] The straight flight segment is as follows: Figure 7As shown, the flight made an alternate landing after passing point A, and the aircraft turned back and intersected with the incoming trajectory at point A. Therefore, although point A is a self-intersecting point, it is not a self-intersecting point formed by circling, and the self-enclosed segment (the part on the right side of point A) it constitutes contains a straight flight segment.
[0076] (6) For each turning segment in the fourth turning segment set, the left and right boundaries are extended outward by 420 seconds respectively. The reason for the boundary extension process is that because the self-intersection points of some circling segments occur in the straight flight stage, in order to prevent missed judgments, extension is required. Among them, the extended flight time of 420 seconds is an empirical value based on big data analysis. The left and right boundaries are extended outward by 420 seconds respectively, which is neither too small to cause missed judgments nor too large, reducing the probability of misidentification of the circling segment.
[0077] (7) After the extension, the turning segments may overlap partially. Therefore, all the overlapping turning segments can be merged into one turning segment. The merged turning segments are recorded as the fifth turning segment set.
[0078] The total number of sampling points in the original flight phase was 7321. According to the previous related algorithm, the number of operations required for self-intersection judgment was 3.473e 14 Second-rate.
[0079] The circling segment identification method of the present application can eliminate the problem of Figure 3 Most of the "bank angle and heading" on the left side are relatively stable, and only the part between the two dotted lines on the right side needs to be self-intersected. The number of sampling points in this part is reduced to 1724. The number of operations required is 1.926e 13 , only 1 / 18 of the original.
[0080] See also Figure 8 In some embodiments, step 02 includes:
[0081] 021: Perform a preliminary intersection judgment on the fifth turning segment set using the longitude and latitude coordinates to find the line segment pairs that need to be fully judged in each turning segment.
[0082] Please combine Figure 2 Step 021 can be implemented by the second preprocessing module 12, that is, the second preprocessing module 12 is used to perform a preliminary intersection judgment on the fifth turning segment set using the longitude and latitude coordinates to find the line segment pairs that need to be fully judged in each turning segment.
[0083] Specifically, see Fig. 9 , step 021 may also include:
[0084] 0211: Use the longitude and latitude coordinates to pre-judge the intersection of every two non-adjacent line segments in each turning segment in the fifth turning segment set.
[0085] Please combine Figure 2 Step 0211 may also be implemented by the second preprocessing module 12, that is, the second preprocessing module 12 is used to use the longitude and latitude coordinates to pre-judge the intersection of every two non-adjacent line segments in each turning segment in the fifth turning segment set.
[0086] That is, for each turning segment in the fifth turning segment set obtained in step 01, for every two non-adjacent turning segment line segments, the longitude and latitude coordinates can be used to perform "pre-intersection judgment" to find out the line segment pairs that need to perform a complete "intersection judgment".
[0087] For further information, see Fig.10 , step 0211 includes:
[0088] 02111: Get the longitude of the starting point of the first line segment, the latitude of the starting point of the first line segment, the longitude of the ending point of the first line segment and the latitude of the ending point of the first line segment, as well as the longitude of the starting point of the second line segment, the latitude of the starting point of the second line segment, the longitude of the ending point of the second line segment and the latitude of the ending point of the second line segment;
[0089] 02112: Arrange the starting longitude, starting latitude, end longitude and end latitude of each line segment from small to large based on longitude and latitude to obtain the first line segment longitude smaller value, the first line segment longitude larger value, the first line segment latitude smaller value, the first line segment latitude larger value, the second line segment longitude smaller value, the second line segment longitude larger value, the second line segment latitude smaller value, the second line segment latitude larger value;
[0090] 02113: Determine whether two non-adjacent line segments may intersect based on the smaller value of the first line segment's longitude, the larger value of the first line segment's longitude, the smaller value of the first line segment's latitude, the larger value of the first line segment's latitude, the smaller value of the second line segment's longitude, the larger value of the second line segment's longitude, the smaller value of the second line segment's latitude, and the larger value of the second line segment's latitude.
[0091] Please combine Fig.11 The second preprocessing module 12 includes an acquisition unit 121 , an arrangement unit 122 and a pre-intersection judgment unit 123 .
[0092] Step 02111 can be implemented by the acquisition unit 121, step 02112 can be implemented by the arrangement unit 122, and step 02113 can be implemented by the pre-intersection judgment unit 123. That is to say, the acquisition unit 121 is used to obtain the longitude of the starting point of the first line segment, the latitude of the starting point of the first line segment, the longitude of the end point of the first line segment, and the latitude of the end point of the first line segment, as well as the longitude of the starting point of the second line segment, the latitude of the starting point of the second line segment, the longitude of the end point of the second line segment, and the latitude of the end point of the second line segment; the arrangement unit 122 is used to arrange the longitude of the starting point, the latitude of the starting point, the longitude of the end point, and the latitude of the end point of each line segment based on the longitude and latitude of each line segment. Arrange from small to large to obtain the smaller value of the longitude of the first line segment, the larger value of the longitude of the first line segment, the smaller value of the latitude of the first line segment, the larger value of the latitude of the first line segment, the smaller value of the longitude of the second line segment, the larger value of the longitude of the second line segment, the smaller value of the latitude of the second line segment, and the larger value of the latitude of the second line segment; the pre-intersection judgment unit 123 is used to determine whether two non-adjacent line segments have the possibility of intersection according to the smaller value of the longitude of the first line segment, the larger value of the longitude of the first line segment, the smaller value of the latitude of the first line segment, the larger value of the latitude of the first line segment, the smaller value of the longitude of the second line segment, the larger value of the longitude of the second line segment, the smaller value of the latitude of the second line segment, and the larger value of the latitude of the second line segment.
[0093] For further information, see Fig.12 , wherein step 02113 comprises:
[0094] 021131: If the smaller value of the latitude of the second line segment is less than or equal to the larger value of the latitude of the first line segment, and the larger value of the latitude of the second line segment is greater than or equal to the smaller value of the latitude of the first line segment, and the smaller value of the longitude of the second line segment is less than or equal to the larger value of the longitude of the first line segment, and the larger value of the longitude of the second line segment is greater than or equal to the smaller value of the longitude of the first line segment, then it is confirmed that the first line segment and the second line segment may intersect, and a complete intersection judgment is required.
[0095] Please combine Fig.11 , step 021131 can be implemented by the pre-intersection judgment unit 123. That is to say, the pre-intersection judgment unit 123 is used to confirm that the first line segment and the second line segment may intersect, and a complete intersection judgment needs to be performed if the smaller value of the second line segment latitude is less than or equal to the larger value of the first line segment latitude, and the larger value of the second line segment latitude is greater than or equal to the smaller value of the first line segment latitude, and the smaller value of the second line segment longitude is less than or equal to the larger value of the first line segment longitude, and the larger value of the second line segment longitude is greater than or equal to the smaller value of the first line segment longitude.
[0096] Specifically, the process of pre-judgment of intersection is described in detail below by way of example:
[0097] First, describe any set of line segments that need to be pre-intersected using the following 8 longitude and latitude numbers (as shown in the table below):
[0098]
[0099] Based on the above 8 numbers, perform intersection pre-judgment as follows:
[0100] 1) The longitude and latitude of each segment are arranged from small to large, and the 8 numbers become:
[0101]
[0102] 2) Perform the following four judgments:
[0103]
[0104] 3) For a line segment combination where all the above four judgment results are correct (True), it is necessary to further perform the "intersection" judgment; on the contrary, if any judgment result is wrong (False), it means that there is no possibility of intersection between the two line segments.
[0105] The recognition method of the present application can find out the line segment pairs that need intersection judgment through the "intersection pre-judgment" in the second preprocessing, which greatly reduces the calculation amount of the complete "intersection judgment" and further improves the speed of the circling segment recognition method.
[0106] In addition, in the "intersection pre-judgment" and "intersection judgment" processes of the present application, matrix algorithms can be used to achieve parallel computing. In a computer program, using a specially optimized matrix algorithm will be much faster than using a simple loop algorithm. The intersection pre-judgment process and the intersection judgment process of the present application both use matrix algorithms instead of loop algorithms, which can greatly improve the calculation speed in the intersection pre-judgment process and the intersection judgment process.
[0107] For example, the use of matrix algorithm instead of loop algorithm in the process of "pre-intersection judgment" is used as an example to illustrate, where each matrix involved in the operation has N rows and N columns:
[0108] (1) First, construct the following four segment 1 matrices. The characteristics of the segment 1 matrix are "each row is the same, and columns 1 to N are the specific longitude and latitude values of segments 1 to N respectively";
[0109]
[0110]
[0111]
[0112]
[0113] (2) Construct the following four segment 2 matrices. The characteristics of the segment 2 matrix are "each column is the same, and rows 1 to N are the specific longitude and latitude values of segments 1 to N respectively";
[0114]
[0115]
[0116]
[0117]
[0118] (3) Through the corresponding point size judgment operation, the following four judgment matrices are obtained, and the elements of the judgment matrix are correct (True) or wrong (False);
[0119] Judgment Matrix 1: Segment 1 has a larger latitude matrix > Segment 2 has a smaller latitude matrix
[0120] Judgment Matrix 2: Segment 1 has a smaller latitude matrix < Segment 2 has a larger latitude matrix
[0121] Judgment Matrix 3: Segment 1 has a larger longitude matrix > Segment 2 has a smaller longitude matrix
[0122] Judgment Matrix 4: Segment 1 has smaller longitude matrix < Segment 2 has larger longitude matrix
[0123] (4) The above four judgment matrices are combined by taking “and” at corresponding points to obtain a comprehensive judgment matrix. Only the positions that are correct (True) in all four matrices will be correct (True). For example, the value of the Lth row and the Mth column is correct (True), indicating that segments L and M may intersect.
[0124]
[0125] (5) For the above comprehensive judgment matrix, take the upper triangular matrix starting from the 4th diagonal. Because the inter-segment relationships expressed by the upper and lower triangular matrices are repeated, only one set needs to be retained. In addition, it should be noted that the reason for starting from the 4th diagonal is that the intersection segment should not occur between adjacent segments or segments separated by 1 segment.
[0126] (6) Take the positions where all values in the upper triangular matrix are correct (True) and determine whether these line segment pairs intersect.
[0127] In summary, the recognition method of the present application is further accelerated by intersection pre-judgment and matrix operation. Figure 3 The total computational time for identifying the circling segment of the flight is only 247 milliseconds.
[0128] See also Fig.13The present application also provides an electronic device 100. The electronic device 100 includes a processor 110 and a memory 120, the memory 120 is used to store a computer program 121, and the processor 110 implements any one of the identification methods described in the above embodiments when executing the computer program 121. The electronic device 100 of the present application can be a mobile phone, an iPad, a computer or other device.
[0129] The electronic device 100 of the present application first performs a first preprocessing based on the flight parameters in the acquired flight segment to narrow the data range used for circling judgment, and then performs a second preprocessing on the narrowed data range to find the line segment pairs that need to be fully intersected. Finally, the circling segment is identified based on the line segment pairs, which can greatly reduce the amount of calculation for subsequent complete intersection judgment, thereby improving calculation efficiency while ensuring recognition accuracy, and can reduce the probability of misidentification of the circling segment.
[0130] See also Fig.14 The present application also provides a computer-readable storage medium 200, which includes a computer program 210 and a processor 220. When the computer program 210 is executed by one or more processors 220, the identification method of any one of the above embodiments is implemented.
[0131] The computer-readable storage medium 200 of the present application first performs a first preprocessing based on the flight parameters in the acquired flight segment to narrow the data range used for circling judgment, and then performs a second preprocessing on the narrowed data range to find the line segment pairs that need to be fully intersected. Finally, the circling segment is identified based on the line segment pairs, which can greatly reduce the amount of calculation required for subsequent full intersection judgment, thereby improving calculation efficiency while ensuring recognition accuracy, and reducing the probability of misidentification of the circling segment.
[0132] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for identifying a circling segment, characterized in that: The identification method comprises: The first preprocessing is performed on the flight parameters in the acquired flight segment to narrow the data range for the identification and judgment of the circling segment; the flight parameters include the bank angle and heading of the aircraft, and the first preprocessing is performed on the flight parameters in the acquired flight segment to narrow the data range for the identification and judgment of the circling segment, including: screening the bank angle and heading of the aircraft according to preset conditions to narrow the data range for the identification and judgment of the circling segment; the screening is performed on the bank angle and heading of the aircraft according to preset conditions to narrow the data range for the identification and judgment of the circling segment, including: screening the sampling points whose absolute value of the bank angle is greater than a predetermined angle in the flight parameters; screening a plurality of turning segments formed by continuous turning points in the same direction in the sampling points to form a first turning segment set merge; in the first turn segment set, if the time interval between every two adjacent turn segments is less than a predetermined time length and the turn directions are the same, then merge processing is performed to form a second turn segment set after the merge processing; a heading change amount is judged for each turn segment in the second turn segment set, and the turn segments with a heading change amount less than or equal to a predetermined degree are eliminated to form a third turn segment set after the elimination processing; in the third turn segment set, if there is no straight flight segment with a time length greater than or equal to a predetermined time length between every two adjacent turn segments, then merge processing is performed to form a fourth turn segment set after the merge processing; a boundary extension processing is performed on each turn segment in the fourth turn segment set; the turn segments that overlap after the extension processing are merged to form a fifth turn segment set after the merging processing; The second preprocessing is performed on the reduced data range to find out the line segment pairs that need to be fully intersected. The second preprocessing is performed on the reduced data range to find out the line segment pairs that need to be fully intersected, including: performing intersection pre-judgment on the fifth turning segment set using longitude and latitude coordinates to find out the line segment pairs that need to be fully intersected in each turning segment. The circling segment is identified based on the line segment pair.
2. The identification method according to claim 1, characterized in that: The step of performing a pre-intersection judgment on the fifth set of turning segments using the longitude and latitude coordinates to find a pair of line segments that need to be fully judged in each turning segment includes: The intersection pre-judgment is performed on every two non-adjacent line segments in each turning segment in the fifth turning segment set using the longitude and latitude coordinates.
3. The identification method according to claim 2, characterized in that: The pre-judgment of the intersection of each two non-adjacent line segments in each turning segment in the fifth turning segment set by using the longitude and latitude coordinates includes: Obtain the longitude of the starting point of the first line segment, the latitude of the starting point of the first line segment, the longitude of the ending point of the first line segment and the latitude of the ending point of the first line segment, as well as the longitude of the starting point of the second line segment, the latitude of the starting point of the second line segment, the longitude of the ending point of the second line segment and the latitude of the ending point of the second line segment; Arrange the starting longitude, starting latitude, end longitude and end latitude of each line segment from small to large based on the longitude and latitude to obtain the first line segment longitude smaller value, the first line segment longitude larger value, the first line segment latitude smaller value, the first line segment latitude larger value, the second line segment longitude smaller value, the second line segment longitude larger value, the second line segment latitude smaller value, the second line segment latitude larger value; Determine whether the two non-adjacent line segments may intersect based on the smaller value of the first line segment longitude, the larger value of the first line segment longitude, the smaller value of the first line segment latitude, the larger value of the first line segment latitude, the smaller value of the second line segment longitude, the larger value of the second line segment longitude, the smaller value of the second line segment latitude, and the larger value of the second line segment latitude.
4. The identification method according to claim 3, characterized in that: Determining whether the two non-adjacent line segments intersect according to the smaller value of the first line segment longitude, the larger value of the first line segment longitude, the smaller value of the first line segment latitude, the larger value of the first line segment latitude, the smaller value of the second line segment longitude, the larger value of the second line segment longitude, the smaller value of the second line segment latitude, and the larger value of the second line segment latitude may include: If the smaller value of the latitude of the second line segment is less than or equal to the larger value of the latitude of the first line segment, and the larger value of the latitude of the second line segment is greater than or equal to the smaller value of the latitude of the first line segment, and the smaller value of the longitude of the second line segment is less than or equal to the larger value of the longitude of the first line segment, and the larger value of the longitude of the second line segment is greater than or equal to the smaller value of the longitude of the first line segment, then it is confirmed that the first line segment and the second line segment may intersect, and a complete intersection judgment is required.
5. A device for identifying a circling segment, characterized in that: The identification device comprises: A first preprocessing module, the first preprocessing module is used to perform a first preprocessing on the flight parameters in the acquired flight segment to narrow the data range for the identification and judgment of the circling segment; the flight parameters include the aircraft bank angle and heading, the first preprocessing module is also used to: filter the aircraft bank angle and heading according to preset conditions to narrow the data range for the identification and judgment of the circling segment; and the first preprocessing module is used to: filter sampling points whose absolute value of the bank angle is greater than a predetermined angle in the flight parameters; filter out a plurality of turning segments formed by continuous same-direction turning points in the sampling points to form a first turning segment set; in the first turning segment set, between every two adjacent turning segments, if If the time interval is less than a predetermined time length and the turning directions are the same, a merging process is performed to form a second turning segment set after the merging process; a heading change amount is judged for each turning segment in the second turning segment set, and turning segments with heading change amounts less than or equal to a predetermined degree are eliminated to form a third turning segment set after the elimination process; in the third turning segment set, if there is no straight flight segment greater than or equal to a predetermined time length between every two adjacent turning segments, a merging process is performed to form a fourth turning segment set after the merging process; a boundary extension process is performed on each turning segment in the fourth turning segment set; and the turning segments that overlap after the extension process are merged to form a fifth turning segment set after the merging process; a second preprocessing module, the second preprocessing module being used to perform a second preprocessing on the reduced data range to find out the line segment pairs that need to be completely intersected; the second preprocessing module is also used to perform a pre-intersection judgment on the fifth turning segment set using the longitude and latitude coordinates to find out the line segment pairs that need to be completely intersected in each turning segment; An identification module is used to identify the circling segment according to the line segment pair.
6. An electronic device, characterized in that: The electronic device comprises a processor and a memory, the memory is used to store a computer program, and the processor implements the identification method according to any one of claims 1 to 4 when executing the computer program.
7. A non-volatile computer-readable storage medium containing a computer program, characterized in that: When the computer program is executed by one or more processors, the identification method according to any one of claims 1 to 4 is implemented.
