A method, device, computer equipment and storage medium for detecting a U-turn of a public bus

By combining satellite positioning and inertial measurement units to detect whether buses have arrived at the station in urban viaducts and other environments, the problem of reduced positioning accuracy caused by satellite positioning signal drift is solved, and accurate broadcast of bus arrival information is achieved.

CN113947761BActive Publication Date: 2024-09-13GUANGZHOU TONGDA AUTO ELECTRIC +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111223117.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-20
Publication Date
2024-09-13
Estimated Expiration
2041-10-20

AI Technical Summary

Technical Problem

In the existing technology, the satellite positioning signals of buses are prone to drift in places with dense buildings such as viaducts in urban areas, resulting in reduced positioning accuracy of the buses and the inability to accurately determine whether they have arrived at the site, causing errors in site information broadcast and causing inconvenience to passengers.

Method used

Combining the satellite positioning unit and the inertial measurement unit, by extracting the characteristic information of position and attitude, merging it into the target motion state, using the direction prediction network to detect whether the bus is making a U-turn in the target area, and broadcasting the arrival information, reducing the need to judge whether a U-turn has occurred. range to improve positioning accuracy.

Benefits of technology

It improves the accuracy of bus positioning in urban viaducts and other environments, ensures the accuracy of site information broadcast, and facilitates passenger travel.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113947761B
    Figure CN113947761B
Patent Text Reader

Abstract

The embodiment of the present invention provides a method, device, computer equipment and storage medium for detecting a U-turn of a bus. The method includes: determining a route of a bus, where multiple stations are set on the route; if the bus turns around along the route and arrives at a certain station, determining an area around the station as a target area; when the bus travels along the route, calling a satellite positioning unit to detect the position of the bus and calling an inertial measurement unit to detect the posture of the bus, respectively; when the bus travels to the target area, converting the position and posture into a variety of feature information; detecting the driving state of the bus in the target area based on the multiple feature information; if the driving state is a U-turn, broadcasting the arrival information for the stations in the target area; combining the satellite positioning unit and the inertial measurement unit can enrich the dimension of the perception data, thereby improving the accuracy of detecting the U-turn of the bus, ensuring that the station information of the station to be arrived at is accurately broadcast after the U-turn, and facilitating passengers' travel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the technical field of public transportation, and in particular to a method, device, computer equipment and storage medium for detecting a U-turn of a public transportation. Background Art

[0002] The bus is one of the public transportation means for users to travel. When the bus arrives at the set stop, it will broadcast the stop information to prompt users to prepare to get off.

[0003] Currently, judging whether a bus has arrived at a stop mainly relies on satellite positioning. However, the accuracy of satellite positioning itself is relatively low and is easily affected by the environment, especially in densely built areas such as urban viaducts. The satellite positioning signal will drift, further deteriorating the accuracy of satellite positioning.

[0004] In order to cover different streets in the city, the bus routes have turning back and forth. The bus may turn around in some areas before arriving at the station. At this time, due to the low accuracy of satellite positioning, the bus positioning is easily wrong, which is particularly obvious when encountering traffic jams such as traffic lights at bends. The bus starts and brakes frequently, and the moving distance may be very short, but the drift is large, which leads to errors in the broadcast of station information and brings inconvenience to passengers. Summary of the invention

[0005] The embodiment of the present invention proposes a bus U-turn detection method, device, computer equipment and storage medium to solve the problem of how to improve the positioning accuracy when the bus U-turns, so as to accurately broadcast the station information.

[0006] In a first aspect, an embodiment of the present invention provides a method for detecting a U-turn of a public bus, comprising:

[0007] Determine a route for the bus, where a plurality of stops are arranged on the route;

[0008] If the bus turns around along the route and arrives at a certain station, then the area surrounding the station is determined as the target area;

[0009] When the bus travels along the route, a satellite positioning unit is called to detect the position of the bus, and an inertial measurement unit is called to detect the posture of the bus;

[0010] When the bus travels to the target area, converting the position and the posture into a variety of feature information;

[0011] Detecting the driving status of the bus in the target area according to the plurality of characteristic information;

[0012] If the driving status is a U-turn, the arrival information is broadcasted to the station in the target area.

[0013] Optionally, if the bus travels along the route and turns around to arrive at a certain station, determining an area surrounding the station as a target area includes:

[0014] Acquire a plurality of original trajectories recorded when the bus travels along the route;

[0015] Calculate an average value of the multiple original trajectories as a target trajectory;

[0016] For each of the sites, a circular window is added with the point where the site is projected onto the target trajectory as the starting center of the circle;

[0017] Maintaining the center of the window on the target track, sliding the window in the opposite direction of the target track until the sliding distance exceeds a preset threshold;

[0018] In the process of sliding the window, determining a first target point and a second target point, wherein the first target point and the second target point are both points where the window intersects the target trajectory;

[0019] Calculate the distance between the first target point and the second target point, and the angle between the first target line segment and the second target line segment, wherein the first target line segment is a line segment formed between the first target point and the center of the circle, and the second target line segment is a line segment formed between the second target point and the center of the circle;

[0020] If the distance is less than a preset first threshold value and the angle is less than a preset second threshold value, it is determined that the bus turns around along the route and arrives at the station;

[0021] An area surrounding the site and covering the first target point and the second target point is set as a target area.

[0022] Optionally, the converting the position and the posture into a variety of feature information includes:

[0023] Loading the first feature extraction network, the second feature extraction network, and the third feature extraction network;

[0024] Inputting the position into the first feature extraction network to extract feature information representing the position as first target feature information;

[0025] Inputting the posture into the second feature extraction network to extract feature information representing the posture as second target feature information;

[0026] fusing the position and the posture into a target motion state;

[0027] The target motion state is input into the third feature extraction network to extract feature information representing fusion as third target feature information.

[0028] Optionally, the first feature extraction network includes multiple convolutional layers and a first fully connected layer, the second feature extraction network includes multiple long short-term memory networks and a second fully connected layer, and the third feature extraction network includes multiple temporal convolutional layers and a third fully connected layer;

[0029] The step of inputting the position into the first feature extraction network to extract feature information representing the position as first target feature information includes:

[0030] The positions are sequentially input into multiple layers of the convolutional layers for processing to extract spatial feature information;

[0031] Inputting the spatial feature information into the first fully connected layer and mapping it to a specified first dimension as first target feature information;

[0032] The step of inputting the posture into the second feature extraction network to extract feature information representing the posture as second target feature information includes:

[0033] Inputting the posture into the multi-layer long short-term memory network in sequence for processing to extract feature information in time sequence;

[0034] Input the time series feature information into the second fully connected layer and map it to a specified second dimension as second target feature information;

[0035] The step of inputting the target motion state into the third feature extraction network to extract feature information representing fusion as third target feature information comprises:

[0036] The target motion state is sequentially input into multiple layers of the temporal convolutional layer for processing to extract spatial and temporal feature information;

[0037] The spatial and temporal feature information is input into the third fully connected layer and mapped to a specified third dimension as third target feature information.

[0038] Optionally, fusing the position and the posture into a target motion state includes:

[0039] respectively querying a first frequency at which the satellite positioning unit detects the position and a second frequency at which the inertial measurement unit detects the attitude;

[0040] If the first frequency is greater than the second frequency, aligning the position with the posture using the posture as a reference;

[0041] If at least two of the positions are aligned with the same posture, merging the at least two positions into a new position;

[0042] After splicing the posture to the aligned position, a target motion state is obtained;

[0043] If the first frequency is less than the second frequency, aligning the posture with the position based on the position;

[0044] If at least two of the postures are aligned with the same position, merging the at least two postures into a new posture;

[0045] After splicing the position to the aligned posture, the target motion state is obtained.

[0046] Optionally, the feature information includes first target feature information representing the position, second target feature information representing the posture, and third target feature information representing the fusion of the position and the posture;

[0047] The detecting the driving state of the bus in the target area according to the plurality of characteristic information includes:

[0048] Loading direction prediction network;

[0049] Acquire fourth target feature information, wherein if the position is after the posture during fusion, the splicing order of the fourth target feature information is the second target feature information, the third target feature information, and the first target feature information; if the posture is after the position during fusion, the splicing order of the fourth target feature information is the first target feature information, the third target feature information, and the second target feature information;

[0050] Inputting the fourth target feature information into the direction prediction network to predict the first direction in which the bus travels in the target area;

[0051] If the first direction is opposite to the second direction recorded before the bus travels to the target area, it is determined that the travel state of the bus in the target area is a U-turn.

[0052] Optionally, the direction prediction network includes a residual link network, a bidirectional long short-term memory network, and a fourth fully connected layer;

[0053] The step of inputting the fourth target feature information into the direction prediction network to predict the first direction in which the bus travels in the target area includes:

[0054] Inputting the fourth feature information into the residual link network for processing, and outputting fifth feature information;

[0055] Inputting the fifth feature information into the bidirectional long short-term memory network for processing, and outputting sixth feature information;

[0056] The sixth feature information is input into the fourth fully connected layer for processing, and a first direction in which the bus travels in the target area is output.

[0057] In a second aspect, an embodiment of the present invention further provides a bus U-turn detection device, comprising:

[0058] A route determination module is used to determine a route for a bus, where a plurality of stops are arranged on the route;

[0059] A target area setting module, for determining an area surrounding the station as a target area if the bus turns around along the route and arrives at a station;

[0060] A sensing data acquisition module, used to call a satellite positioning unit to detect the position of the bus and call an inertial measurement unit to detect the posture of the bus when the bus travels along the route;

[0061] A feature information conversion module, used for converting the position and the posture into a variety of feature information when the bus travels to the target area;

[0062] A driving state detection module, used for detecting the driving state of the bus in the target area according to the plurality of characteristic information;

[0063] The station information broadcasting module is used to broadcast the arrival information of the station in the target area if the driving state is a U-turn.

[0064] Optionally, the target area setting module is further used for:

[0065] Acquire a plurality of original trajectories recorded when the bus travels along the route;

[0066] Calculate an average value of the multiple original trajectories as a target trajectory;

[0067] For each of the sites, a circular window is added with the point where the site is projected onto the target trajectory as the starting center of the circle;

[0068] Maintaining the center of the window on the target track, sliding the window in the opposite direction of the target track until the sliding distance exceeds a preset threshold;

[0069] In the process of sliding the window, determining a first target point and a second target point, wherein the first target point and the second target point are both points where the window intersects the target trajectory;

[0070] Calculate the distance between the first target point and the second target point, and the angle between the first target line segment and the second target line segment, wherein the first target line segment is a line segment formed between the first target point and the center of the circle, and the second target line segment is a line segment formed between the second target point and the center of the circle;

[0071] If the distance is less than a preset first threshold value and the angle is less than a preset second threshold value, it is determined that the bus turns around along the route and arrives at the station;

[0072] An area surrounding the site and covering the first target point and the second target point is set as a target area.

[0073] Optionally, the feature information conversion module is further used to:

[0074] Loading the first feature extraction network, the second feature extraction network, and the third feature extraction network;

[0075] Inputting the position into the first feature extraction network to extract feature information representing the position as first target feature information;

[0076] Inputting the posture into the second feature extraction network to extract feature information representing the posture as second target feature information;

[0077] fusing the position and the posture into a target motion state;

[0078] The target motion state is input into the third feature extraction network to extract feature information representing fusion as third target feature information.

[0079] Optionally, the first feature extraction network includes multiple convolutional layers and a first fully connected layer, and the feature information conversion module is further used to:

[0080] The positions are sequentially input into multiple layers of the convolutional layers for processing to extract spatial feature information;

[0081] The spatial feature information is input into the first fully connected layer and mapped to a specified first dimension as first target feature information.

[0082] Optionally, the second feature extraction network includes a multi-layer long short-term memory network and a second fully connected layer, and the feature information conversion module is further used for:

[0083] Inputting the posture into the multi-layer long short-term memory network in sequence for processing to extract feature information in time sequence;

[0084] The time-series feature information is input into the second fully connected layer and mapped to a specified second dimension as second target feature information.

[0085] Optionally, the third feature extraction network includes multiple layers of temporal convolution layers and a third fully connected layer, and the feature information conversion module is further used to:

[0086] The target motion state is sequentially input into multiple layers of the temporal convolution layer for processing to extract spatial and temporal feature information;

[0087] The spatial and temporal feature information is input into the third fully connected layer and mapped to a specified third dimension as third target feature information.

[0088] Optionally, the feature information conversion module is further used to:

[0089] respectively querying a first frequency at which the satellite positioning unit detects the position and a second frequency at which the inertial measurement unit detects the attitude;

[0090] If the first frequency is greater than the second frequency, aligning the position with the posture using the posture as a reference;

[0091] If at least two of the positions are aligned with the same posture, merging the at least two positions into a new position;

[0092] After splicing the posture to the aligned position, a target motion state is obtained;

[0093] If the first frequency is less than the second frequency, aligning the posture with the position based on the position;

[0094] If at least two of the postures are aligned with the same position, merging the at least two postures into a new posture;

[0095] After splicing the position to the aligned posture, the target motion state is obtained.

[0096] Optionally, the feature information includes first target feature information representing the position, second target feature information representing the posture, and third target feature information representing the fusion of the position and the posture;

[0097] The driving state detection module is also used for:

[0098] Loading direction prediction network;

[0099] Acquire fourth target feature information, wherein if the position is after the posture during fusion, the splicing order of the fourth target feature information is the second target feature information, the third target feature information, and the first target feature information; if the posture is after the position during fusion, the splicing order of the fourth target feature information is the first target feature information, the third target feature information, and the second target feature information;

[0100] Inputting the fourth target feature information into the direction prediction network to predict the first direction in which the bus travels in the target area;

[0101] If the first direction is opposite to the second direction recorded before the bus travels to the target area, it is determined that the travel state of the bus in the target area is a U-turn.

[0102] Optionally, the direction prediction network includes a residual link network, a bidirectional long short-term memory network, and a fourth fully connected layer;

[0103] The driving state detection module is also used for:

[0104] Inputting the fourth feature information into the residual link network for processing, and outputting fifth feature information;

[0105] Inputting the fifth feature information into the bidirectional long short-term memory network for processing, and outputting sixth feature information;

[0106] The sixth feature information is input into the fourth fully connected layer for processing, and a first direction in which the bus travels in the target area is output.

[0107] In a third aspect, an embodiment of the present invention further provides a computer device, the computer device comprising:

[0108] one or more processors;

[0109] a memory for storing one or more programs,

[0110] When the one or more programs are executed by the one or more processors, the one or more processors implement the bus U-turn detection method as described in the first aspect.

[0111] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method for detecting a U-turn of a public bus as described in the first aspect is implemented.

[0112] In this embodiment, the route of the bus is determined, and multiple stations are set on the route. If the bus turns around along the route and arrives at a certain station, the area around the station is determined as the target area. When the bus travels along the route, the satellite positioning unit is called to detect the position of the bus and the inertial measurement unit is called to detect the posture of the bus. When the bus travels to the target area, the position and posture are converted into a variety of feature information. The driving state of the bus in the target area is detected based on the multiple feature information. If the driving state is a U-turn, the arrival information is broadcast to the stations in the target area. This embodiment selects the target area for the bus route, reduces the range of judging the U-turn at the station, and reduces the amount of calculation. The inertial measurement unit does not rely on satellites and can provide stable perception data. The combined satellite positioning unit and the inertial measurement unit can enrich the dimension of the perception data and provide more accurate perception data, thereby improving the accuracy of detecting bus U-turns and ensuring that the station information of the upcoming station is accurately broadcast after the U-turn, so as to facilitate passengers' travel. BRIEF DESCRIPTION OF THE DRAWINGS

[0113] Figure 1 A flowchart of a method for detecting a U-turn of a public bus provided in Embodiment 1 of the present invention;

[0114] Figure 2 An example diagram of a target area provided in the first embodiment of the present invention;

[0115] Figure 3 This is a schematic diagram of the structure of a network for detecting bus directions provided by the first embodiment of the present invention;

[0116] Figure 4 A schematic diagram of the structure of a bus U-turn detection device provided in Embodiment 2 of the present invention;

[0117] Figure 5 A schematic diagram of the structure of a computer device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0118] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0119] Embodiment 1

[0120] Figure 1This is a flow chart of a bus U-turn detection method provided in Embodiment 1 of the present invention. This embodiment is applicable to the case where a satellite positioning unit is combined with an inertial measurement unit to detect whether a bus has made a U-turn, thereby broadcasting station information. The method can be executed by a bus U-turn detection device, which can be implemented by software and / or hardware and can be configured in a computer device, and specifically includes the following steps:

[0121] Step 101: Determine the route of the bus.

[0122] A bus (also called a bus or a public bus) is a motor vehicle that runs on a fixed route on a city road. It has multiple stops on the route, with or without fixed departure times, and has a dedicated route number (such as No. 960, No. 195A, No. 35, etc.). It stops at stops to let passengers get on and off, and carries passengers on their trips. It is generally square in shape, has windows, and is equipped with seats.

[0123] In urban areas, buses generally travel at speeds of 25-50 km / h, while in suburban areas, buses can travel at speeds of up to 80 km / h.

[0124] In this embodiment, the bus is assigned one or more route numbers, which usually do not change. Therefore, a relationship between the bus (indicated by a number or other identifier) ​​and the route number can be established in the server. After the bus starts traveling, it can query the server for the currently used route number, thereby querying the route corresponding to the route number as the route the bus is currently traveling.

[0125] Step 102: If the bus turns around along the route and arrives at a certain station, the area around the station is determined as the target area.

[0126] In this embodiment, the route can be analyzed in combination with the geographical location of each station to find the station that the bus arrives at after turning around. At this time, an area of ​​appropriate size can be set in the range around the station and recorded as the target area.

[0127] Of course, except for the station that the bus arrives at after turning around, there is no obvious problem of incorrect station information broadcasting due to low positioning accuracy at other stations, so other stations can be ignored.

[0128] The bus route is generally a sequence of multiple stops arranged in order. For example, if the bus route is Stop A → Stop B → Stop C..., it means that the bus first arrives at Stop A, then Stop B, and finally Stop C. It can be seen that the bus route is not the actual route of the bus.

[0129] In this regard, a plurality of original tracks recorded when the bus travels along the route may be obtained from the data recorded when the bus travels along the route in history.

[0130] Each original trajectory may be represented by a plurality of discrete positions, or may be represented by a polynomial function, which is not limited in this embodiment.

[0131] The average value of multiple original trajectories is calculated as the target trajectory, which is the trajectory with higher confidence for the bus to travel on this route, to facilitate subsequent calculations.

[0132] like Figure 2 As shown, for each station K, a circular window 220 is added with the point where the station is projected to the target track 210 in the vertical direction as the starting center point O.

[0133] The movement of the bus is directional, so the original trajectory is also directional. The directionality of the target trajectory is the same as that of the original trajectory. The center of the window is maintained on the target trajectory, and the window is slid in the opposite direction of the target trajectory (i.e., the opposite direction of the forward direction of the bus) until the sliding distance exceeds the preset threshold.

[0134] In the process of sliding the window, the first target point I and the second target point J are continuously determined. The first target point I and the second target point J are both points where the window 220 intersects the target trajectory 210 .

[0135] Calculate the distance between the first target point I and the second target point J, and the angle between the first target line segment OI and the second target line segment OJ, wherein the first target line segment OI is the line segment formed by the first target point I and the center O of the circle, and the second target line segment OJ is the line segment formed by the second target point J and the center O of the circle.

[0136] If the distance is less than the preset first threshold and the angle is less than the preset second threshold, it means that the distance between the first target point I and the second target point J is small, and the angle between the first target line segment OI and the second target line segment OJ is small. At this time, the bus turns greatly when traveling from the first target point I to the second target point J along the target trajectory 210. It can be determined that the bus turns around along the route and arrives at the station, so that the area surrounding the station and covering the first target point I and the second target point J is set as the target area 203.

[0137] Step 103: When the bus travels along the route, the satellite positioning unit is called to detect the position of the bus, and the inertial measurement unit is called to detect the posture of the bus.

[0138] In this embodiment, a satellite positioning unit and an inertial measurement unit (IMU) are installed on the bus.

[0139] Among them, the satellite positioning unit is a high-precision radio navigation positioning system based on artificial satellites. It can provide accurate geographic location, speed and precise time information in many places around the world and in near-Earth space. The satellite positioning unit can include GPS (Global Positioning System), Beidou Satellite Navigation System, and so on.

[0140] An inertial measurement unit is a sensor or a collection of sensors that measures the data (i.e., inertial data) generated when a carrier moves. The inertial measurement unit includes the following types:

[0141] 1. Three-axis inertial measurement unit

[0142] The three-axis inertial measurement unit is equipped with a three-axis gyroscope, which can sense the carrier's pitch (rotation around the X-axis, also called the pitch angle), yaw (rotation around the Y-axis, also called the yaw angle), and roll (rotation around the Z-axis, also called the roll angle), a total of three degrees of freedom.

[0143] 2. Six-axis inertial measurement unit

[0144] The six-axis inertial measurement unit is equipped with a three-axis gyroscope and a three-axis accelerometer. In addition to being able to sense the carrier's three-degree-of-freedom attitude angles of pitch, yaw, and roll, it can also sense the carrier's three-degree-of-freedom acceleration.

[0145] 3. Nine-axis inertial measurement unit

[0146] The nine-axis inertial measurement unit is equipped with a three-axis gyroscope, a three-axis accelerometer, and a three-axis magnetometer. In addition to being able to sense the carrier's pitch, yaw, and roll attitude angles and three degrees of freedom, and the acceleration of three degrees of freedom, it can also sense the carrier's three degrees of freedom magnetic field strength.

[0147] Since the number of data dimensions collected by the nine-axis inertial measurement unit is greater than the number of data dimensions collected by the three-axis inertial measurement unit and the six-axis inertial measurement unit, the accuracy of mapping the bus motion using the nine-axis inertial measurement unit is higher than the accuracy of mapping the bus motion using the three-axis inertial measurement unit and the six-axis inertial measurement unit. Therefore, the nine-axis inertial measurement unit can be selected to map the bus motion. Of course, in order to reduce the amount of data processing and increase the response speed, the three-axis inertial measurement unit and the six-axis inertial measurement unit can also be selected to map the bus motion. This embodiment does not limit this.

[0148] While the bus is traveling along the route, on the one hand, the satellite positioning unit can be called in real time to detect the position of the bus, forming a time sequence, and on the other hand, the inertial measurement unit can be called in real time to detect the posture of the bus, forming another time sequence.

[0149] Step 104: When the bus reaches the target area, the position and posture are converted into a variety of feature information.

[0150] Given a target area, the relationship between the bus's position and the target area can be detected in real time through geometric operations. When it is determined that the bus's position is within the target area, it means that the bus has traveled to the target area. At this time, feature information can be extracted independently and / or in combination from the position and posture to form a variety of feature information.

[0151] In one embodiment of the present invention, step 104 may include the following steps:

[0152] Step 1041: load the first feature extraction network, the second feature extraction network, and the third feature extraction network.

[0153] In this embodiment, the data of the historical travel records of the bus along the current route can be used as samples in advance to train the first feature extraction network, the second feature extraction network, and the third feature extraction network.

[0154] When detecting the driving status of the bus in real time, the first feature extraction network, the second feature extraction network, and the third feature extraction network can be loaded into the memory for operation.

[0155] Step 1042: Input the position into a first feature extraction network to extract feature information representing the position as first target feature information.

[0156] The first feature extraction network is trained for the position to extract feature information of the position. The position is input into the first feature extraction network for processing, thereby extracting feature information representing the position as the first target feature information.

[0157] The location of the bus is spatial information, so the location of the bus can be input into the first feature extraction network to extract feature information representing the location as the first target feature information.

[0158] For example, Figure 3 As shown, the first feature extraction network includes multiple convolutional layers (Convolutional layer) 311 and the first fully connected layers (fully connected layers, FC) 312.

[0159] In this example, the location of the bus focuses more on spatial information, so the location of the bus 301 is sequentially input into the multi-layer convolutional layer 311 for processing to extract spatial feature information.

[0160] The spatial feature information is input into the first fully connected layer 312 and mapped to the specified first dimension as the first target feature information.

[0161] Step 1043: Input the posture into a second feature extraction network to extract feature information representing the posture as second target feature information.

[0162] The second feature extraction network is trained for posture to extract feature information of the posture. The posture is input into the second feature extraction network for processing, so as to extract feature information representing the posture as the second target feature information.

[0163] For example, Figure 3 As shown, the second feature extraction network includes a multi-layer long short-term memory network (Long Short Term Memory networks, LSTM) 321 and a second fully connected layer FC 322.

[0164] In this example, the posture 302 of the bus focuses more on the information in terms of time series. Therefore, the posture 302 of the bus can be sequentially input into the multi-layer long short-term memory network 321 for processing to extract the characteristic information in terms of time series.

[0165] The time-series feature information is input into the second fully connected layer 322 and mapped to the specified second dimension as the second target feature information.

[0166] Step 1044: merge the position and posture into the target motion state.

[0167] In this embodiment, if Figure 3 As shown, the time series of position 301 and the time series of posture 302 may be fused 303 to obtain a new time series as the target motion state.

[0168] In a specific implementation, the first frequency of the satellite positioning unit for detecting the position and the second frequency of the inertial measurement unit for detecting the attitude can be queried separately. Due to the different hardware characteristics of the satellite positioning unit and the inertial measurement unit, the first frequency and the second frequency are generally not the same, so that the position and attitude cannot be directly aligned.

[0169] At this time, the first frequency and the second frequency may be compared.

[0170] If the first frequency is greater than the second frequency, and the number of positions is greater than the number of postures within the same period of time, the posture can be used as a reference to align the position with the posture, that is, the posture remains unchanged, and the position is attached to the most recent posture, which can be attached to the posture ranked before the position or the posture ranked after the position.

[0171] In some cases, one position is aligned to one pose, and in some cases, at least two positions are aligned to the same pose.

[0172] To facilitate the fusion of posture and position, if at least two positions are aligned with the same posture, the at least two positions can be fused into a new position by averaging, interpolation, weighted summation, etc., and the new position is attached to one posture.

[0173] If the alignment is completed, that is, each posture is aligned to a position, then the posture can be spliced ​​to the aligned position to obtain the target motion state.

[0174] If the first frequency is less than the second frequency, and the number of positions is less than the number of postures in the same time, the position can be used as a reference to align the postures with the positions, that is, the position remains unchanged, and the posture is attached to the nearest position, which can be attached to the position that is ranked before the posture or the position that is ranked after the posture.

[0175] In some cases, one posture is aligned to one position, and in some cases, at least two postures are aligned to the same position.

[0176] To facilitate the fusion of posture and position, if at least two postures are aligned with the same position, the at least two postures can be fused into a new posture by averaging, interpolation, weighted summation, etc., and the new posture is attached to one position.

[0177] If the alignment is complete, that is, each position is aligned to a posture, then the position can be spliced ​​to the aligned posture to obtain the target motion state.

[0178] Step 1045: Input the target motion state into the third feature extraction network to extract feature information representing the fusion as the third target feature information.

[0179] The second feature extraction network is trained for the fused position and posture to extract feature information of the fused position and posture, and the target motion state is input into the third feature extraction network for processing, thereby extracting feature information representing the fused position and posture as the third target feature information.

[0180] For example, Figure 3 As shown, the third feature extraction network includes multiple layers of temporal convolution layers (Temporal Convolution Networks, TCN) 331 and a third fully connected layer FC 332.

[0181] In this example, the fused position and posture (target motion state) of the bus has both spatial and temporal information. Therefore, the position can be sequentially input into the multi-layer temporal convolution layer 331 for processing to extract spatial and temporal feature information.

[0182] The spatial and temporal feature information is input into the third fully connected layer 332 and mapped to a specified third dimension as the third target feature information.

[0183] Step 105: Detect the driving status of the bus in the target area based on various feature information.

[0184] With the support of multiple feature information, the driving status of the bus in the target area can be detected to determine whether the bus is traveling in the original direction or in the opposite direction (i.e., turning around).

[0185] In one embodiment of the present invention, the feature information includes first target feature information representing the position, second target feature information representing the posture, and third target feature information representing the fusion of the position and the posture. In this embodiment, step 105 may include the following steps:

[0186] Step 1051: Load the direction prediction network.

[0187] In this embodiment, a direction prediction network may be pre-trained for a bus, and the direction prediction network is used to predict the direction in which the bus travels.

[0188] When detecting the driving status of the bus in real time, the direction prediction network can be loaded into the memory and run.

[0189] Step 1052: Obtain fourth target feature information.

[0190] like Figure 3 As shown, the first target feature information, the second target feature information and the third target feature information are concatenated 340 a certain number of times to obtain fourth target feature information.

[0191] Among them, if the position is after the posture during fusion, the splicing order of the fourth target feature information is the second target feature information, the third target feature information, and the first target feature information.

[0192] If the posture is after the position during fusion, the splicing order of the fourth target feature information is the first target feature information, the third target feature information, and the second target feature information.

[0193] This splicing method can make the transition between position and posture more natural and facilitate subsequent calculations.

[0194] If the number of dimensions of the first target feature information is the first dimension, the number of dimensions of the second target feature information is the second dimension, and the number of dimensions of the third target feature information is the third dimension, then the number of dimensions of the fourth target feature information is the fourth dimension, and the fourth dimension is the sum of the first dimension, the second dimension, and the third dimension.

[0195] Step 1053: input the fourth target feature information into the direction prediction network to predict the first direction of the bus traveling in the target area.

[0196] The input of the direction prediction network is the fourth target feature information of the bus, and the output is the direction in which the bus is traveling. In this embodiment, the direction in which the bus is traveling is recorded as the first direction in which the bus is traveling in the target area.

[0197] For example, Figure 3 As shown, the direction prediction network includes a residual connection network (Residual Connections) 341, a bidirectional long short-term memory network (Bi-directional Long Short-Term Memory, BiLSTM) 342, and a fourth fully connected layer FC 343.

[0198] In this example, the fourth feature information is input into the residual link network 341 for processing, and the fifth feature information is output.

[0199] The fifth feature information is input into the bidirectional long short-term memory network 342 for processing, and the sixth feature information is output. In this example, the BiLSTM is composed of a forward LSTM and a backward LSTM, which can better capture the bidirectional semantic (posture, position) dependency, and can ensure more accurate extraction of vehicle driving features, thereby ensuring accurate identification of the direction of the bus.

[0200] The sixth feature information is input into the fourth fully connected layer 343 for processing, and the first direction of the bus traveling in the target area is output.

[0201] Step 1054: If the first direction is opposite to the second direction recorded before the bus travels to the target area, it is determined that the travel state of the bus in the target area is a U-turn.

[0202] In this embodiment, the direction of the bus's travel may be continuously recorded. The direction may be directly read from a satellite positioning unit or calculated through multiple locations, which is not limited in this embodiment.

[0203] The direction of the bus before it reaches the target area is extracted and recorded as the second direction.

[0204] The first direction and the second direction are projected to the horizontal direction or the vertical direction. If the first direction after projection is opposite to the second direction, it can be confirmed that the driving state of the bus in the target area is a U-turn.

[0205] Step 106: If the driving status is a U-turn, the arrival information is broadcast to the stations in the target area.

[0206] If it is detected that the vehicle has made a U-turn in the target area, it means that the vehicle is about to arrive at the station. At this time, the speaker can be driven to broadcast the arrival information to the station in the target area, prompting the user that he is about to arrive at the station and allowing the user to prepare to get off.

[0207] In this embodiment, the route of the bus is determined, and multiple stations are set on the route. If the bus turns around along the route and arrives at a certain station, the area around the station is determined as the target area. When the bus travels along the route, the satellite positioning unit is called to detect the position of the bus and the inertial measurement unit is called to detect the posture of the bus. When the bus travels to the target area, the position and posture are converted into a variety of feature information. The driving state of the bus in the target area is detected based on the multiple feature information. If the driving state is a U-turn, the arrival information is broadcast to the stations in the target area. This embodiment selects the target area for the bus route, reduces the range of judging the U-turn at the station, and reduces the amount of calculation. The inertial measurement unit does not rely on satellites and can provide stable perception data. The combined satellite positioning unit and the inertial measurement unit can enrich the dimension of the perception data and provide more accurate perception data, thereby improving the accuracy of detecting bus U-turns and ensuring that the station information of the upcoming station is accurately broadcast after the U-turn, so as to facilitate passengers' travel.

[0208] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0209] Embodiment 2

[0210] Figure 4 The structural block diagram of a bus U-turn detection device provided in the second embodiment of the present invention may specifically include the following modules:

[0211] A route determination module 401 is used to determine a route for a bus, where a plurality of stops are arranged on the route;

[0212] A target area setting module 402 is used to determine the area around the station as the target area if the bus turns around along the route and arrives at a station;

[0213] The sensing data acquisition module 403 is used to call a satellite positioning unit to detect the position of the bus and call an inertial measurement unit to detect the posture of the bus when the bus travels along the route;

[0214] A feature information conversion module 404 is used to convert the position and the posture into a variety of feature information when the bus travels to the target area;

[0215] A driving state detection module 405, configured to detect the driving state of the bus in the target area according to the plurality of feature information;

[0216] The station information broadcasting module 406 is used to broadcast the arrival information of the station in the target area if the driving status is a U-turn.

[0217] In one embodiment of the present invention, the target area setting module 402 is further used to:

[0218] Acquire a plurality of original trajectories recorded when the bus travels along the route;

[0219] Calculate an average value of the multiple original trajectories as a target trajectory;

[0220] For each of the sites, a circular window is added with the point where the site is projected onto the target trajectory as the starting center of the circle;

[0221] Maintaining the center of the window on the target track, sliding the window in the opposite direction of the target track until the sliding distance exceeds a preset threshold;

[0222] In the process of sliding the window, determining a first target point and a second target point, wherein the first target point and the second target point are both points where the window intersects the target trajectory;

[0223] Calculate the distance between the first target point and the second target point, and the angle between the first target line segment and the second target line segment, wherein the first target line segment is a line segment formed between the first target point and the center of the circle, and the second target line segment is a line segment formed between the second target point and the center of the circle;

[0224] If the distance is less than a preset first threshold value and the angle is less than a preset second threshold value, it is determined that the bus turns around along the route and arrives at the station;

[0225] An area surrounding the site and covering the first target point and the second target point is set as a target area.

[0226] In one embodiment of the present invention, the feature information conversion module 404 is further used to:

[0227] Loading the first feature extraction network, the second feature extraction network, and the third feature extraction network;

[0228] Inputting the position into the first feature extraction network to extract feature information representing the position as first target feature information;

[0229] Inputting the posture into the second feature extraction network to extract feature information representing the posture as second target feature information;

[0230] fusing the position and the posture into a target motion state;

[0231] The target motion state is input into the third feature extraction network to extract feature information representing fusion as third target feature information.

[0232] In one embodiment of the present invention, the first feature extraction network includes multiple convolutional layers and a first fully connected layer, and the feature information conversion module 404 is further used to:

[0233] The positions are sequentially input into multiple layers of the convolutional layers for processing to extract spatial feature information;

[0234] The spatial feature information is input into the first fully connected layer and mapped to a specified first dimension as first target feature information.

[0235] In one embodiment of the present invention, the second feature extraction network includes a multi-layer long short-term memory network and a second fully connected layer, and the feature information conversion module 404 is further used to:

[0236] Inputting the posture into the multi-layer long short-term memory network in sequence for processing to extract feature information in time sequence;

[0237] The time-series feature information is input into the second fully connected layer and mapped to a specified second dimension as second target feature information.

[0238] In one embodiment of the present invention, the third feature extraction network includes multiple layers of temporal convolution layers and a third fully connected layer, and the feature information conversion module 404 is further used to:

[0239] The target motion state is sequentially input into multiple layers of the temporal convolution layer for processing to extract spatial and temporal feature information;

[0240] The spatial and temporal feature information is input into the third fully connected layer and mapped to a specified third dimension as third target feature information.

[0241] In one embodiment of the present invention, the feature information conversion module 404 is further used to:

[0242] respectively querying a first frequency at which the satellite positioning unit detects the position and a second frequency at which the inertial measurement unit detects the attitude;

[0243] If the first frequency is greater than the second frequency, aligning the position with the posture using the posture as a reference;

[0244] If at least two of the positions are aligned with the same posture, merging the at least two positions into a new position;

[0245] After splicing the posture to the aligned position, a target motion state is obtained;

[0246] If the first frequency is less than the second frequency, aligning the posture with the position based on the position;

[0247] If at least two of the postures are aligned with the same position, merging the at least two postures into a new posture;

[0248] After splicing the position to the aligned posture, the target motion state is obtained.

[0249] In one embodiment of the present invention, the feature information includes first target feature information representing the position, second target feature information representing the posture, and third target feature information representing the fusion of the position and the posture;

[0250] The driving state detection module 405 is also used for:

[0251] Loading direction prediction network;

[0252] Acquire fourth target feature information, wherein if the position is after the posture during fusion, the splicing order of the fourth target feature information is the second target feature information, the third target feature information, and the first target feature information; if the posture is after the position during fusion, the splicing order of the fourth target feature information is the first target feature information, the third target feature information, and the second target feature information;

[0253] Inputting the fourth target feature information into the direction prediction network to predict the first direction in which the bus travels in the target area;

[0254] If the first direction is opposite to the second direction recorded before the bus travels to the target area, it is determined that the travel state of the bus in the target area is a U-turn.

[0255] In one embodiment of the present invention, the direction prediction network includes a residual link network, a bidirectional long short-term memory network, and a fourth fully connected layer;

[0256] The driving state detection module 405 is also used for:

[0257] Inputting the fourth feature information into the residual link network for processing, and outputting fifth feature information;

[0258] Inputting the fifth feature information into the bidirectional long short-term memory network for processing, and outputting sixth feature information;

[0259] The sixth feature information is input into the fourth fully connected layer for processing, and a first direction in which the bus travels in the target area is output.

[0260] The bus U-turn detection device provided in the embodiment of the present invention can execute the bus U-turn detection method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0261] Embodiment 3

[0262] Figure 5 A schematic diagram of the structure of a computer device provided in Embodiment 3 of the present invention. Figure 5 A block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention is shown. Figure 5 The computer device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0263] like Figure 5 As shown, the computer device 12 is in the form of a general-purpose computing device. The components of the computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).

[0264] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0265] The computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 12, including volatile and non-volatile media, removable and non-removable media.

[0266] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5 not shown, usually called a "hard drive"). Although Figure 5 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.

[0267] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described herein.

[0268] The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), may communicate with one or more devices that enable a user to interact with the computer device 12, and / or may communicate with any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the computer device 12 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the computer device 12 via a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the computer device 12, including, but not limited to, microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0269] The processing unit 16 executes various functional applications and data processing by running the programs stored in the system memory 28, such as implementing the bus U-turn detection method provided in the embodiment of the present invention.

[0270] Embodiment 4

[0271] Embodiment 4 of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the above-mentioned bus U-turn detection method are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0272] Among them, computer-readable storage media may include, for example, but are not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device or device.

[0273] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A method for detecting a U-turn of a public bus, characterized in that: include: Determine a route for the bus, where a plurality of stops are arranged on the route; If the bus turns around along the route and arrives at a certain station, then the area surrounding the station is determined as the target area; When the bus travels along the route, a satellite positioning unit is called to detect the position of the bus, and an inertial measurement unit is called to detect the posture of the bus; When the bus travels to the target area, converting the position and the posture into a variety of feature information; Detecting the driving status of the bus in the target area according to the plurality of characteristic information; If the driving state is a U-turn, broadcasting the arrival information to the station in the target area; If the bus travels along the route and turns around to arrive at a certain station, determining the area surrounding the station as the target area includes: Acquire a plurality of original trajectories recorded when the bus travels along the route; Calculate an average value of the multiple original trajectories as a target trajectory; For each of the sites, a circular window is added with the point where the site is projected onto the target trajectory as the starting center of the circle; Maintaining the center of the window on the target track, sliding the window in the opposite direction of the target track until the sliding distance exceeds a preset threshold; In the process of sliding the window, determining a first target point and a second target point, wherein the first target point and the second target point are both points where the window intersects the target trajectory; Calculate the distance between the first target point and the second target point, and the angle between the first target line segment and the second target line segment, wherein the first target line segment is a line segment formed between the first target point and the center of the circle, and the second target line segment is a line segment formed between the second target point and the center of the circle; If the distance is less than a preset first threshold value and the angle is less than a preset second threshold value, it is determined that the bus turns around along the route and arrives at the station; An area surrounding the site and covering the first target point and the second target point is set as a target area.

2. The method according to claim 1, characterized in that The converting the position and the posture into a variety of feature information includes: Loading the first feature extraction network, the second feature extraction network, and the third feature extraction network; Inputting the position into the first feature extraction network to extract feature information representing the position as first target feature information; Inputting the posture into the second feature extraction network to extract feature information representing the posture as second target feature information; fusing the position and the posture into a target motion state; The target motion state is input into the third feature extraction network to extract feature information representing fusion as third target feature information.

3. The method according to claim 2, characterized in that The first feature extraction network includes multiple convolutional layers and a first fully connected layer, the second feature extraction network includes multiple long short-term memory networks and a second fully connected layer, and the third feature extraction network includes multiple temporal convolutional layers and a third fully connected layer; The step of inputting the position into the first feature extraction network to extract feature information representing the position as first target feature information includes: The positions are sequentially input into multiple layers of the convolutional layers for processing to extract spatial feature information; Inputting the spatial feature information into the first fully connected layer and mapping it to a specified first dimension as first target feature information; The step of inputting the posture into the second feature extraction network to extract feature information representing the posture as second target feature information includes: Inputting the posture into the multi-layer long short-term memory network in sequence for processing to extract feature information in time sequence; Input the time series feature information into the second fully connected layer and map it to a specified second dimension as second target feature information; The step of inputting the target motion state into the third feature extraction network to extract feature information representing fusion as third target feature information comprises: The target motion state is sequentially input into multiple layers of the temporal convolutional layer for processing to extract spatial and temporal feature information; The spatial and temporal feature information is input into the third fully connected layer and mapped to a specified third dimension as third target feature information.

4. The method according to claim 2, characterized in that: The step of fusing the position and the posture into a target motion state includes: respectively querying a first frequency at which the satellite positioning unit detects the position and a second frequency at which the inertial measurement unit detects the attitude; If the first frequency is greater than the second frequency, aligning the position with the posture using the posture as a reference; If at least two of the positions are aligned with the same posture, merging the at least two positions into a new position; After splicing the posture to the aligned position, a target motion state is obtained; If the first frequency is less than the second frequency, aligning the posture with the position based on the position; If at least two of the postures are aligned with the same position, merging the at least two postures into a new posture; After splicing the position to the aligned posture, the target motion state is obtained.

5. The method according to any one of claims 1 to 4, characterized in that The feature information includes first target feature information representing the position, second target feature information representing the posture, and third target feature information representing the fusion of the position and the posture; The detecting the driving state of the bus in the target area according to the plurality of characteristic information includes: Loading direction prediction network; Acquire fourth target feature information, wherein if the position is after the posture during fusion, the splicing order of the fourth target feature information is the second target feature information, the third target feature information, and the first target feature information; if the posture is after the position during fusion, the splicing order of the fourth target feature information is the first target feature information, the third target feature information, and the second target feature information; Inputting the fourth target feature information into the direction prediction network to predict the first direction in which the bus travels in the target area; If the first direction is opposite to the second direction recorded before the bus travels to the target area, it is determined that the travel state of the bus in the target area is a U-turn.

6. The method according to claim 5, characterized in that The direction prediction network includes a residual link network, a bidirectional long short-term memory network, and a fourth fully connected layer; The step of inputting the fourth target feature information into the direction prediction network to predict the first direction in which the bus travels in the target area includes: Inputting the fourth target feature information into the residual link network for processing, and outputting fifth feature information; Inputting the fifth feature information into the bidirectional long short-term memory network for processing, and outputting sixth feature information; The sixth feature information is input into the fourth fully connected layer for processing, and a first direction in which the bus travels in the target area is output.

7. A bus U-turn detection device, characterized in that: include: A route determination module is used to determine a route for a bus, where a plurality of stops are arranged on the route; A target area setting module, for determining an area surrounding the station as a target area if the bus turns around along the route and arrives at a station; A sensing data acquisition module, used to call a satellite positioning unit to detect the position of the bus and call an inertial measurement unit to detect the posture of the bus when the bus travels along the route; A feature information conversion module, used for converting the position and the posture into a variety of feature information when the bus travels to the target area; A driving state detection module, used for detecting the driving state of the bus in the target area according to the plurality of characteristic information; A station information broadcasting module is used to broadcast the arrival information of the station in the target area if the driving state is a U-turn; the target area setting module is also used to obtain a plurality of original tracks recorded when the bus travels along the route; Calculate an average value of the multiple original trajectories as a target trajectory; For each of the sites, a circular window is added with the point where the site is projected onto the target trajectory as the starting center of the circle; Maintaining the center of the window on the target track, sliding the window in the opposite direction of the target track until the sliding distance exceeds a preset threshold; In the process of sliding the window, determining a first target point and a second target point, wherein the first target point and the second target point are both points where the window intersects the target trajectory; Calculate the distance between the first target point and the second target point, and the angle between the first target line segment and the second target line segment, wherein the first target line segment is a line segment formed between the first target point and the center of the circle, and the second target line segment is a line segment formed between the second target point and the center of the circle; If the distance is less than a preset first threshold value and the angle is less than a preset second threshold value, it is determined that the bus turns around along the route and arrives at the station; An area surrounding the site and covering the first target point and the second target point is set as a target area.

8. A computer device, characterized in that: The computer device comprises: one or more processors; a memory for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method for detecting a U-turn of a public bus as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for detecting a U-turn of a public bus according to any one of claims 1 to 6 is implemented.