CN110070719B - Traffic event detection method and device - Google Patents

Traffic event detection method and device Download PDF

Info

Publication number
CN110070719B
CN110070719B CN201910380454.9A CN201910380454A CN110070719B CN 110070719 B CN110070719 B CN 110070719B CN 201910380454 A CN201910380454 A CN 201910380454A CN 110070719 B CN110070719 B CN 110070719B
Authority
CN
China
Prior art keywords
message
passing
acceleration
event
received
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910380454.9A
Other languages
Chinese (zh)
Other versions
CN110070719A (en
Inventor
吕辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201910380454.9A priority Critical patent/CN110070719B/en
Publication of CN110070719A publication Critical patent/CN110070719A/en
Application granted granted Critical
Publication of CN110070719B publication Critical patent/CN110070719B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/052Detecting movement of traffic to be counted or controlled with provision for determining speed or overspeed

Abstract

The embodiment of the application provides a traffic event detection method and a device, which relate to the technical field of information detection, wherein the method comprises the following steps: receiving a passing message sent by a terminal; detecting the acceleration included in the received passing message according to the message receiving sequence; when the first type of acceleration is detected, detecting whether an upward passing event occurs in equipment carrying the terminal according to a passing message received after the first passing message is received; after the device generates an upward passing event, if a second type of acceleration is detected, detecting whether the device generates a downward passing event according to a passing message received after the second passing message is received; and after the device generates a downward traffic event, judging that the device generates an upstream-downstream traffic event. By applying the scheme provided by the embodiment of the application to detecting the traffic event, the detection accuracy is improved.

Description

Traffic event detection method and device
Technical Field
The present application relates to the field of information detection technologies, and in particular, to a method and an apparatus for detecting a traffic event.
Background
With the wide application of electric bicycles, traffic incidents such as red light running, retrograde motion and running on a viaduct are more and more common. The viaduct is mainly constructed for facilitating the passing of automobiles, and if the electric bicycle passes through the automobiles running on the viaduct, traffic accidents may be caused by the fact that the automobiles avoid the electric bicycle. For this reason, it is necessary to detect a traffic event in which the electric bicycle travels on the overpass.
In the prior art, when detecting a traffic event that an electric bicycle runs on an overpass, the traffic event can be generally implemented based on NB-IoT (Narrow Band Internet of Things). In this case, the NB (Narrow Band) terminal mounted on the electric bicycle can transmit GPS (Global Positioning System) information to the management platform at regular time. The management platform can calculate the height difference of the position of the NB terminal within the preset time according to the received GPS information. Since the NB terminal is mounted on the electric bicycle, the calculated height difference is the height difference of the electric bicycle during the driving process. When the height difference reaches the height of the overpass, it is considered that the electric bicycle has a traffic event of traveling on the overpass.
Although the detection of the traffic event that the electric bicycle runs on the viaduct can be realized by applying the above method, the detection accuracy is low because the sensitivity of the GPS signal to the change of the height direction is poor and the height of the viaduct is not too high in general, and therefore, when the traffic event is detected by applying the above method, the phenomena of missing detection, error detection and the like may exist.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method and an apparatus for detecting a traffic event, so as to improve detection accuracy. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a traffic event detection method, where the method includes:
receiving a pass message sent by a terminal, wherein the pass message comprises: acceleration of the terminal motion;
detecting the acceleration included in the received passing message according to the message receiving sequence;
when a first type of acceleration is detected, detecting whether an upward passing event occurs in equipment carrying the terminal according to a passing message received after the first passing message is received, wherein the first type of acceleration is as follows: an acceleration having a component in a vertically upward direction, the first pass message being: detecting a passing message where the first type of acceleration is located;
after the device has an upward passing event, if a second type of acceleration is detected, detecting whether the device has a downward passing event according to a passing message received after the second passing message is received, wherein the second type of acceleration is as follows: an acceleration having a component in a vertically downward direction, the second pass message being: the passing message where the second type of acceleration is detected;
and after the device generates a downward traffic event, judging that the device generates an upstream-downstream traffic event.
In an embodiment of the present application, the pass packet is: the terminal generates a message containing the acceleration of the terminal motion after detecting the following conditions:
the acceleration component in the vertical direction changes from a non-zero value to zero; or
The acceleration component in the vertical direction changes from zero to a non-zero value.
In an embodiment of the present application, the detecting, according to a passage message received after receiving a first passage message, whether an upward passage event occurs in a device carrying the terminal includes:
if a third type of acceleration is detected in a pass message received after the first pass message is received, judging whether a message generation time difference between the first pass message and the third pass message is greater than a first preset time length, if so, judging that an upward pass event occurs to equipment carrying the terminal, wherein the third type of acceleration is as follows: the acceleration with the component of zero in the vertical direction, the third communication message is: the passing message where the third type of acceleration is detected;
and/or
And judging whether the number of the received passing messages in a second preset time length after the first passing message is received is greater than the preset number, if so, judging that the equipment has an upward passing event.
In an embodiment of the present application, the pass packet further includes: the location of the terminal;
the method further comprises the following steps:
after the device generates an uplink traffic event, determining a first generation time and a first generation position of the uplink traffic event according to at least one of the following messages:
the first pass message, the third pass message and a pass message received after the first pass message and before the third pass message are received;
after the device generates a downlink traffic event, determining a second occurrence time and a second occurrence position of the downlink traffic event according to at least one of the following messages:
the second pass message, the fourth pass message, and the pass message received after receiving the second pass message and before the fourth pass message, wherein the fourth pass message is: and the received messages after the second passing message is received comprise the third type acceleration messages.
In one embodiment of the present application, after the downward passage event occurs, the method further includes:
calculating a passing distance according to the first occurrence position and the second occurrence position;
calculating the passing time according to the first generation time and the second generation time;
calculating the average passing speed according to the passing distance and the passing time;
judging whether the average passing speed is greater than a preset speed threshold value or not;
and if so, executing the step of judging that the equipment generates an upstream-downstream traffic event.
In one embodiment of the present application, the method further comprises:
obtaining the movement speed of the equipment when a passing message sent by the terminal is received;
after the device has a downward passage event, the method further comprises the following steps:
determining the moment with the zero motion speed in the [ the first generation time and the second generation time ] as the moment to be detected according to the obtained motion speed;
obtaining the number of positions to be detected within a preset position range, wherein the positions to be detected are as follows: the position included in the passing message received at the moment to be detected;
and if the number is larger than a preset number threshold, executing the step of judging that the equipment has an upstream-downstream traffic event.
In one embodiment of the present application, the method further comprises:
receiving a positioning message sent by the terminal according to a preset period, wherein the positioning message comprises: the location of the terminal;
after the device has a downward passage event, the method further comprises the following steps:
calculating the passing height according to the position included in the received positioning message in the [ the first occurrence time and the second occurrence time ];
judging whether the passing height is greater than a preset height threshold value or not;
and if so, executing the step of judging that the equipment generates an upstream-downstream traffic event.
In an embodiment of the application, the determining that the device has an uplink-first and downlink-second traffic event includes:
determining that an upstream-downstream traffic event has occurred for the device when at least one of the following conditions is met:
the first generating position and the second generating position are both within a preset range;
the first inclination degree aiming at the uplink traffic event and the second inclination degree aiming at the downlink traffic event are both larger than the preset inclination degree, wherein the first inclination degree is as follows: determining the inclination degree of the traffic path according to the positions included in the first traffic message and the third traffic message, wherein the second inclination degree is as follows: determining the inclination degree of a passing path according to the positions included in the second passing message and the fourth passing message;
judging that a first passing height for an uplink passing event and a second passing height for a downlink passing event are both greater than a preset height, wherein the first passing height is as follows: determining the height of a passing path according to the positions included in the first passing message and the third passing message, wherein the second passing height is as follows: and determining the height of the passing path according to the positions included in the second passing message and the fourth passing message.
In a second aspect, an embodiment of the present application provides a traffic event detection device, where the device includes:
the passage message receiving module is used for receiving a passage message sent by a terminal, wherein the passage message comprises: acceleration of the terminal motion;
the acceleration detection module is used for detecting the acceleration included in the received passing message according to the message receiving sequence;
a first event detection module, configured to detect, when a first type of acceleration is detected, whether an upward passage event occurs in a device that carries the terminal according to a passage message received after a first passage message is received, where the first type of acceleration is: an acceleration having a component in a vertically upward direction, the first pass message being: detecting a passing message where the first type of acceleration is located;
a second event detection module, configured to detect, if a second type of acceleration is detected after an upward passage event occurs in the device, according to a passage message received after the second passage message is received, whether a downward passage event occurs in the device, where the second type of acceleration is: an acceleration having a component in a vertically downward direction, the second pass message being: the passing message where the second type of acceleration is detected;
and the event judging module is used for judging that the equipment generates an upstream and downstream traffic event after the equipment generates a downstream traffic event.
In an embodiment of the present application, the pass packet is: the terminal generates a message containing the acceleration of the terminal motion after detecting the following conditions:
the acceleration component in the vertical direction changes from a non-zero value to zero; or
The acceleration component in the vertical direction changes from zero to a non-zero value.
In an embodiment of the application, the first event detecting module is specifically configured to:
if a third type of acceleration is detected in a pass message received after the first pass message is received, judging whether a message generation time difference between the first pass message and the third pass message is greater than a first preset time length, if so, judging that an upward pass event occurs to equipment carrying the terminal, wherein the third type of acceleration is as follows: the acceleration with the component of zero in the vertical direction, the third communication message is: the passing message where the third type of acceleration is detected;
and/or
And judging whether the number of the received passing messages in a second preset time length after the first passing message is received is greater than the preset number, if so, judging that the equipment has an upward passing event.
In an embodiment of the present application, the pass packet further includes: the location of the terminal;
the device further comprises:
an information determining module, configured to determine, after an uplink traffic event occurs in the device, a first occurrence time and a first occurrence location of the uplink traffic event according to at least one of the following messages:
the first pass message, the third pass message and a pass message received after the first pass message and before the third pass message are received;
after the device generates a downlink traffic event, determining a second occurrence time and a second occurrence position of the downlink traffic event according to at least one of the following messages:
the second pass message, the fourth pass message, and the pass message received after receiving the second pass message and before the fourth pass message, wherein the fourth pass message is: and the received messages after the second passing message is received comprise the third type acceleration messages.
In one embodiment of the present application, the apparatus further comprises:
the speed judging module is used for calculating a passing distance according to the first occurrence position and the second occurrence position after the device generates a downward passing event; calculating the passing time according to the first generation time and the second generation time; calculating the average passing speed according to the passing distance and the passing time; judging whether the average passing speed is greater than a preset speed threshold value or not; if yes, triggering the event judgment module.
In one embodiment of the present application, the apparatus further comprises:
the speed obtaining module is used for obtaining the movement speed of the equipment when the passing message sent by the terminal is received;
the quantity judgment module is used for determining the moment with the movement speed being zero in the [ first generation time and the second generation time ] as the moment to be detected according to the obtained movement speed after the downward passing event occurs to the equipment; obtaining the number of positions to be detected within a preset position range, wherein the positions to be detected are as follows: the position included in the passing message received at the moment to be detected; and if the number is larger than a preset number threshold, triggering the event judgment module.
In one embodiment of the present application, the apparatus further comprises:
a positioning message receiving module, configured to receive a positioning message sent by the terminal according to a preset period, where the positioning message includes: the location of the terminal;
the height judging module is used for calculating the passing height according to the position included in the received positioning message in the [ the first occurrence time and the second occurrence time ] after the downward passing event occurs to the equipment; judging whether the passing height is greater than a preset height threshold value or not; if yes, the event judgment module is triggered.
In an embodiment of the application, the event determining module is specifically configured to determine that an upstream-to-downstream traffic event occurs in the device when at least one of the following conditions is met:
the first generating position and the second generating position are both within a preset range;
the first inclination degree aiming at the uplink traffic event and the second inclination degree aiming at the downlink traffic event are both larger than the preset inclination degree, wherein the first inclination degree is as follows: determining the inclination degree of the traffic path according to the positions included in the first traffic message and the third traffic message, wherein the second inclination degree is as follows: determining the inclination degree of a passing path according to the positions included in the second passing message and the fourth passing message;
judging that a first passing height for an uplink passing event and a second passing height for a downlink passing event are both greater than a preset height, wherein the first passing height is as follows: determining the height of a passing path according to the positions included in the first passing message and the third passing message, wherein the second passing height is as follows: and determining the height of the passing path according to the positions included in the second passing message and the fourth passing message.
In a third aspect, embodiments provide an electronic device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: the method steps of the first aspect are carried out.
In a fourth aspect, embodiments of the present application provide a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to: the method steps of the first aspect are carried out.
As can be seen from the above, when the scheme provided by the embodiment of the present application is applied to detect a passage event, the detection is performed by detecting an acceleration included in a passage message. First, it is determined whether the device has an upward passage event by detecting whether the acceleration included in the passage message has a component in the vertically upward direction. And in the case of the upward passing event, determining whether the downward passing event occurs to the equipment by detecting whether the speed included in the passing message has a component in the vertical downward direction. If a downward traffic event also occurs, the device may be considered to have an upstream-to-downstream traffic event. For example, a traffic event occurs in which the electric bicycle travels up the overpass first and then down the overpass, that is, a traffic event in which the electric bicycle travels on the overpass occurs. Because the acceleration of the terminal motion can reflect the motion condition of the terminal, and the GPRS information is not considered when the traffic event detection is carried out, compared with the prior art, the detection accuracy can be improved when the scheme provided by the embodiment of the application is applied to the traffic event detection.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a traffic event detection method according to an embodiment of the present application;
fig. 2a is a schematic view of a traffic event according to an embodiment of the present application;
FIG. 2b is a schematic diagram of another traffic event provided in the embodiment of the present application;
fig. 3 is a schematic structural diagram of a traffic event detection device according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The concepts involved in the embodiments of the present application are described below.
1. Terminal device
The terminal referred to in the embodiments of the present application includes a motion sensor. The motion sensor can obtain the acceleration of the terminal at each moment in the motion process.
In addition, the terminal may further include a GPS sensor. The GPS sensor can obtain GPS information of the location of the terminal.
The terminal can transmit the pass message to a management platform, and therefore, the terminal also has a data transmission function. For example, the terminal may be an NB (Narrow Band) terminal.
2. Device
The device according to the embodiment of the present application is equipped with the terminal, and the device is movable. For example, the above-mentioned device may be an electric bicycle, an automobile, an unmanned aerial vehicle, or the like.
3. Upward passage event
An event indicating a pass to the upper side of the position of the moving object itself. The upper side may be directly above the position of the moving object itself, or may be obliquely above the position of the moving object itself. For example, the moving object may be the terminal or the device.
In addition, the traffic mentioned in the embodiments of the present application may pass through a certain area in a manner of traveling on the ground, or may pass through a certain area in a manner of flying in the air. This is not a limitation of the present application.
For example, the upward passing event may be a passing event that a moving object such as an electric bicycle runs along an ascending road of an overpass, that is, the overpass on the electric bicycle, or a passing event that a moving object such as an unmanned aerial vehicle takes off in an oblique upward direction, that is, the unmanned aerial vehicle takes off, and the like.
4. Downward passage event
An event indicating a passage to the lower side of the position of the moving object itself. The lower side may be directly below the position of the moving object itself, or may be obliquely below the position of the moving object itself.
For example, the downward passing event may be a passing event that the moving object of the electric bicycle runs along a downward slope of the viaduct, that is, the moving object of the electric bicycle runs down the viaduct, or may be a passing event that the moving object of the unmanned aerial vehicle lands in an oblique downward direction, that is, the unmanned aerial vehicle lands, and the like.
5. First uplink and then downlink traffic events
An event showing that a moving object passes first to the upper side and then to the lower side.
For example, the above-mentioned line-up and line-down traffic event may be an event that the moving object of the electric bicycle first goes up the viaduct and then goes down the viaduct, that is, a traffic event that the electric bicycle runs on the viaduct, or an event that the moving object of the unmanned aerial vehicle first takes off and then lands.
The following describes a traffic event detection method provided in the embodiment of the present application with a specific embodiment.
Fig. 1 is a schematic flow chart of a traffic event detection method according to an embodiment of the present application, where the method includes:
s101: and receiving the pass message sent by the terminal.
The pass message includes: acceleration of terminal motion.
Since the terminal may have an acceleration component in a horizontal direction when moving on a horizontal plane, but may not have an acceleration component in a vertical direction, the terminal may have an acceleration component in a vertical direction as well as a horizontal direction when moving off a horizontal plane, for example, moving obliquely upward to the horizontal plane, moving obliquely downward to the horizontal plane, or the like. In view of this, in an embodiment of the present application, the pass message may be: the terminal generates a message containing the acceleration of the terminal motion after detecting the following first condition or second condition.
In the first case: the acceleration component in the vertical direction changes from a non-zero value to zero. This case illustrates that the acceleration movement of the terminal in the vertical direction is finished, and specifically, the acceleration movement of the terminal to the upper side of its own position is finished, and the acceleration movement of the terminal to the lower side of its own position is finished.
In the second case: the acceleration component in the vertical direction changes from zero to a non-zero value. This case illustrates that the terminal starts to accelerate in the vertical direction, and specifically, the terminal may accelerate to the upper side of its own position, or the terminal may accelerate to the lower side of its own position.
In another embodiment of the present application, the pass message may include, in addition to the acceleration, at least one of the following information:
the identifier of the terminal, the identifier of the device carrying the terminal, the GPS information of the current position of the terminal, the current time, and the like.
S102: and detecting the acceleration included in the received passing message according to the message receiving sequence.
The inventor has found through observation in the experimental process that when a moving object moves to the upper side of the position of the moving object, such as ascending slope, take-off and the like, the moving object generally accelerates to the upper side of the moving object to ensure smooth ascending slope or smooth take-off, and in this case, the moving object has acceleration in the vertically upward direction. As shown in fig. 2a, the moving object "car" moves on the horizontal plane when it does not move to the ascending road of the overpass, and the acceleration component of the "car" in the vertical direction is zero. When the "vehicle" is traveling on the viaduct, that is, traveling on an uphill road of the viaduct, in order to ensure smooth uphill acceleration, the acceleration component of the "vehicle" in the vertically upward direction is changed from zero to a nonzero value, that is, has an acceleration in the vertically upward direction. When a "car" travels on a overpass deck, the acceleration component of the "car" in the vertical direction changes from a non-zero value to zero, since the deck is generally horizontal.
In addition, when the moving object moves to the lower side of its own position on a downhill, a fall, or the like, the moving object generally accelerates to the lower side thereof due to inertia, and in this case, the moving object has an acceleration in a vertically downward direction. As shown in fig. 2b, when the moving object "car" travels on the deck of the viaduct, the acceleration component of the "car" in the vertical direction is zero since the deck is generally horizontal. And when the "car" is off the overpass, that is, traveling on a downhill road of the overpass, the acceleration component of the "car" in the vertically downward direction due to inertia changes from zero to a nonzero value, that is, has an acceleration in the vertically downward direction. After the vehicle successfully gets on the viaduct, the running road surface is a horizontal plane, and the acceleration component of the vehicle in the vertical direction is changed from a nonzero value to zero.
In view of the above-mentioned idea, the following steps S103 to S105 are adopted in the embodiment of the present application to detect a traffic event.
S103: when the first type of acceleration is detected, whether an upward passing event occurs in the equipment carrying the terminal is detected according to a passing message received after the first passing message is received.
Wherein the first type of acceleration is: acceleration having a component in the vertically upward direction. The first pass message is: and detecting the passing message of the first type of acceleration.
Specifically, whether the device has an upward passing event may be detected according to at least one of the following first and second modes.
The first mode is as follows: if the third type of acceleration is detected in the pass message received after the first pass message is received, judging whether the message generation time difference between the first pass message and the third pass message is greater than a first preset time length, and if so, judging that the device carrying the terminal generates an upward pass event.
Wherein the third type of acceleration is: the acceleration with zero component in the vertical direction. The third communication message is: and detecting the passing message of the third type of acceleration in the passing messages received after the first passing message is received.
After receiving the first pass message, multiple pass messages may be received in succession, and the third pass message may be the first pass message received after receiving the first pass message and including the acceleration of the third type.
Of course, if a plurality of passage messages including the acceleration of the third type of acceleration are continuously received within a certain time period after the first passage message is received, the third passage message may also be the last passage message including the acceleration of the third type of acceleration.
The above-mentioned certain time period may be determined by the developer according to the average speed of the moving object, the length of the slope, and other factors. For example, the above-mentioned certain period of time may be 1 minute, 2 minutes, or the like.
In addition, the first preset time period may be 0.3 second, 0.5 second, and the like.
Under the condition that the first preset time length is set to be shorter, if the message generation time difference between the first passing message and the third passing message is smaller than the first preset time length, the acceleration of the terminal movement is adjusted from the acceleration movement to the upper side of the horizontal plane to the direction along the horizontal plane in a short time. And the time of accelerating to the upper side of the horizontal plane is longer in the upward passing events such as viaducts, climbing, takeoff and the like, so that the time difference of message generation is less than or equal to the first preset time, the terminal can be considered to be subjected to small vibration in the moving process instead of the upward passing event. When the message generation time difference is greater than a first preset time, it may be considered that an upward traffic event may be experienced by the terminal in the moving process.
Specifically, the message generation time difference may be calculated by using time included in the first pass message and time included in the third pass message. In addition, the time for receiving the first pass message and the time for receiving the third pass message can be calculated. The embodiments of the present application do not limit this.
The second mode is as follows: and judging whether the number of the received passing messages in a second preset time length after the first passing message is received is greater than the preset number, if so, judging that the equipment has an upward passing event.
Because the ranges of the height of the viaduct, the height of a common slope, the takeoff height of the unmanned aerial vehicle and the like are limited, the time of accelerating to the upper side of the horizontal plane in the upward traffic event can not be continued without limitation, generally, the time can be within a certain range, and the range can be obtained through experience values. In view of this situation, if no pass message is received within a second preset time after the first pass message is received, or the number of received pass messages is small, it cannot be considered that an upward pass event occurs.
For example, the preset number may be: 1, etc. The second preset time period may be 1 second, 2 seconds, and the like.
In addition, the second preset time period may be determined according to factors such as an average speed of the device and a length of a slope, which are counted in advance.
S104: and after the device generates an upward passing event, if the second type of acceleration is detected, receiving a passing message after receiving the second passing message, and detecting whether the device generates a downward passing event.
Wherein the second type of acceleration is: acceleration having a component in the vertically downward direction. The second pass message is: and detecting the passing message of the second type of acceleration.
Similarly to the determination of whether the device has an upward passage event in S103, at least one of the following third and fourth methods similar to the first and second methods may be adopted to detect whether the device has a downward passage event.
The third mode is as follows: if the third type of acceleration is detected in the pass message received after the second pass message is received, judging whether the message generation time difference between the second pass message and the fourth pass message is greater than a first preset time length, and if so, judging that the equipment carrying the terminal generates a downward pass event.
The fourth parallel message is: and detecting the passing message of the third type of acceleration in the passing message received after the second passing message is received.
After receiving the second pass message, multiple pass messages may be further received successively, and the fourth pass message may be a pass message whose acceleration included in the first pass message is the third type of acceleration, which is received after receiving the second pass message.
Of course, if a plurality of passage messages including the acceleration of the third type of acceleration are continuously received within a certain time period after the second passage message is received, the fourth passage message may also be the last passage message including the acceleration of the third type of acceleration.
The fourth mode is that: and judging whether the number of the received passing messages in a second preset time length after the second passing message is received is greater than the preset number, if so, judging that the equipment has a downward passing event.
S105: and after the equipment generates the downward traffic event, judging that the equipment generates an upstream-downstream traffic event.
As can be seen from the above, when the scheme provided by this embodiment is applied to detect a traffic event, the detection is performed by detecting an acceleration included in a traffic message. First, it is determined whether the device has an upward passage event by detecting whether the acceleration included in the passage message has a component in the vertically upward direction. And in the case of the upward passing event, determining whether the downward passing event occurs to the equipment by detecting whether the speed included in the passing message has a component in the vertical downward direction. If a downward traffic event also occurs, the device may be considered to have an upstream-to-downstream traffic event. For example, a traffic event occurs in which the electric bicycle travels up the overpass first and then down the overpass, that is, a traffic event in which the electric bicycle travels on the overpass occurs. Because the acceleration of the terminal motion can reflect the motion condition of the terminal, and the GPRS information is not considered when the traffic event detection is carried out, compared with the prior art, the detection accuracy can be improved when the scheme provided by the embodiment is applied to the traffic event detection.
In an embodiment of the application, the pass packet may further include: the location of the terminal.
On the basis, the traffic event detection method provided in the embodiment of the present application may further include:
after the device generates an uplink traffic event, determining a first generation time and a first generation position of the uplink traffic event according to at least one of the following messages:
the first pass message, the third pass message, and the pass message received after the first pass message and before the third pass message are received.
Specifically, the first occurrence time may be determined according to time included in the first pass packet, the third pass packet, and the pass packet received after the first pass packet and before the third pass packet is received. For example, the time included in one of the pass messages may be directly determined as the first occurrence time, and the average time of the times included in a plurality of pass messages in the pass message may be determined as the first occurrence time.
In addition, the first occurrence time may also be determined according to the first pass message, the third pass message, and the reception time of the pass message received after the first pass message is received and before the third pass message is received. For example, the receiving time of one pass message may be directly determined as the first occurrence time, or an average time of receiving times of a plurality of pass messages in the pass message may be determined as the first occurrence time.
Similar to the determination method of the first occurrence time, in an implementation manner of the present application, a position included in one of the pass messages may be directly determined as the first occurrence position, or an average value of positions included in a plurality of pass messages in the pass message may be determined as the first occurrence position.
In addition, the traffic event detection method may further include:
after the device generates the downlink traffic event, determining a second occurrence time and a second occurrence position of the downlink traffic event according to at least one of the following messages:
the second pass message, the fourth pass message, and the pass message received after the second pass message is received and before the fourth pass message is received, wherein the fourth pass message is: and after receiving the second pass message, the received message comprises a message of the third type of acceleration.
It should be noted that the manner of determining the second occurrence time and the second occurrence position is similar to the manner of determining the first occurrence time and the first occurrence position, and is not described herein again.
After the device generates the uplink traffic event and the downlink traffic event, the occurrence time and the occurrence position are determined, and the exact information when the traffic event occurs can be clarified. In addition, the first occurrence time, the first occurrence position, the second occurrence time, and the second occurrence position may be recorded.
In order to prevent detection errors and improve the detection accuracy of the traffic event, after the upward traffic event and the downward traffic event are detected, other information can be detected, so that whether the equipment has the first uplink traffic event and the second downlink traffic event is effectively detected. Four specific examples are described below.
Example 1
After the device has a downward passage event, the following steps A-D can be executed:
step A: and calculating the passing distance according to the first generation position and the second generation position.
Specifically, the distance between the first occurrence position and the second occurrence position may be calculated according to a formula of the distance between two points, and the calculated distance may be used as the passing distance.
In addition, the distance between the first occurrence position and the second occurrence position may be obtained as the travel distance by using existing map software.
And B: and calculating the passing time according to the first generation time and the second generation time.
For example, the difference between the second occurrence time and the first occurrence time may be directly used as the transit time.
Of course, the product of the difference and a preset coefficient may be used as the transit time.
And C: and calculating the average passing speed according to the passing distance and the passing time.
Step D: and judging whether the average passing speed is greater than a preset speed threshold value, if so, executing the step S105.
For example, the preset speed threshold may be determined according to a specific application scenario, and for example, the preset speed threshold may be 40 km/h.
Take the above-mentioned apparatus as an example of an electric bicycle. During the passing event that the electric bicycle runs on the viaduct, the running speed of the electric bicycle is generally higher than that of the electric bicycle on a common road because the viaduct is not crowded and traffic lights are not available. If the average running speed of the electric bicycle on the ordinary road is 40km/h, the average speed can be used as the preset speed threshold, and if the average running speed is 50km/h and is greater than 40km/h through the calculation, it can be determined that the electric bicycle runs on the viaduct in an upstream-downstream passing event. If the average passing speed is 30km/h, it can be determined that the electric bicycle does not go up and down on the overpass.
Example 2
The traffic event detection method may further include the following step E:
step E: and obtaining the movement speed of the equipment when the passing message sent by the terminal is received.
The motion speed of the above device can be obtained according to the speed identification mode of the moving object in the prior art, and will not be described herein again.
In an embodiment of the present application, the GPS information fed back by the terminal according to a preset time interval may be received, and then the movement speed of the terminal when the pass packet is received may be calculated according to the time interval and the received GPS information. Since the terminal is mounted on the terminal, the movement speed of the terminal is reflected in the movement speed of the device, and thus, after the movement speed of the terminal is calculated, the calculated speed can be directly used as the movement speed of the device.
In addition, after the downward passing event occurs in the device, the following steps F and G can be executed:
step F: and determining the moment with the movement speed being zero in the [ first generation time and the second generation time ] as the moment to be detected according to the obtained movement speed.
The time when the moving speed is zero may be considered as the time when the terminal stops moving, that is, the time when the device stops moving.
Step G: and obtaining the number of the positions to be detected within the preset position range, and if the obtained number is greater than a preset number threshold, executing the step S105.
Wherein, the position to be detected is: and detecting the position included by the passing message received at the moment to be detected.
For example, the preset number threshold may be 2, 3, and so on.
The preset position range may have different meanings for different application scenarios. For example, for a scene of detecting whether the electric bicycle runs on the viaduct, the preset position range may be an electronic fence area corresponding to a known traffic light intersection. In this case, when the speed is zero, that is, when the terminal stops moving, the terminal is in the electric fence area corresponding to the traffic light, it is determined that the electric bicycle equipped with the terminal has a high probability of waiting for the traffic light. And if the terminal stays in the electronic fence area corresponding to the traffic light for many times in the movement process of the terminal, on the premise that no traffic light exists on the viaduct or the number of the traffic lights is small, the situation that the electric bicycle does not go up and down in the case that the electric bicycle runs on the viaduct is shown.
Example 3
The traffic event detection method may further include the following step H:
step H: and receiving the positioning message sent by the terminal according to a preset period.
Wherein, the positioning message includes: the location of the terminal. Specifically, the location may be GPS information.
In addition, after the downward passing event occurs in the device, the following steps I and J can be executed:
step I: and calculating the passing height according to the positions included in the received positioning messages in the [ first generation time and the second generation time ].
Specifically, an average value of positions included in the received positioning packet in the time period [ the first occurrence time, the second occurrence time ] may be calculated, and the calculated average value may be used as the transit height.
In addition, the position included in the received positioning message in the time period [ the first occurrence time, the second occurrence time ] may be weighted, and the result of the weighted calculation may be used as the transit height. When performing the weighting calculation, the weighting coefficient of the position included in the positioning packet received from the first occurrence time to the second occurrence time may be set to be larger and larger.
Step J: and judging whether the passing height is greater than a preset height threshold value, if so, executing the step of judging that the equipment has an upstream-downstream passing event.
Specifically, the height threshold may be determined according to a specific application scenario. For example, when the traffic event that the electric bicycle is driven on the viaduct is detected, the height threshold may be obtained according to the statistical data of the viaduct height. When the application scenario is a passage event that whether the unmanned aerial vehicle flies in the air or not is detected, the altitude threshold value can be obtained according to statistical data of the general flying altitude of the unmanned aerial vehicle.
Example 4
The device may be determined that an upstream-downstream traffic event occurs when at least one of the following conditions is met:
the first condition is as follows: the first generating position and the second generating position are both within a preset range.
For different application scenarios, the preset range may correspond to different contents.
For example, in a scenario of a traffic event that it is detected whether the electric bicycle runs on the viaduct, the preset range may be an exit of the viaduct and a range in which the exit is located.
When the passing event that the unmanned aerial vehicle flies in the air is detected, the preset range can be the range of the takeoff position and the landing position of the designated unmanned aerial vehicle.
Case two: the first degree of incline for an up traffic event and the second degree of incline for a down traffic event are both greater than a preset degree of incline.
Wherein, the first inclination degree is: and determining the inclination degree of the traffic path according to the positions included in the first traffic message and the third traffic message. The second degree of inclination is: and determining the inclination degree of the traffic path according to the positions included in the second traffic message and the fourth traffic message.
Specifically, the position included in the first passing message and the position included in the third passing message may be regarded as a point in space, and the two points determine a straight line, and the determined straight line may be regarded as a passing path of the terminal, that is, a passing path of the device. Then, the inclination of the traffic path is set as the first inclination.
For example, the ratio of h to w may be used as the first inclination degree.
H1-h2, h1 represents a component of the third passing message in the vertical direction, and h2 represents a component of the first passing message in the vertical direction.
w is 1-w2, w1 represents the component of the third passing message in the horizontal direction, and w2 represents the component of the first passing message in the horizontal direction.
It should be noted that the second inclination degree is similar to the first inclination degree, and is not described in detail here.
For example, the preset inclination degree may be: 0.1, etc.
Case three: and judging that the first passing height aiming at the uplink passing event and the second passing height aiming at the downlink passing event are both larger than the preset height.
Wherein, first traffic height is: and determining the height of the passing path according to the positions included in the first passing message and the third passing message. The second pass height is: and determining the height of the passing path according to the positions included in the second passing message and the fourth passing message.
Specifically, the first passing height may be: the difference between the component of the position of the third pass message in the vertical direction and the component of the position of the first pass message in the vertical direction.
The third passing height may be: the difference between the component of the position included in the fourth pass message in the vertical direction and the component of the position included in the second pass message in the vertical direction.
For example, the preset height may be 60 meters, etc.
It can be seen from the above four embodiments that, when a traffic event is detected, the detection result of the upward traffic event and the downward traffic event is not only relied on, but also the average traffic speed, the number of positions to be detected, the traffic height, the position of the traffic event occurrence place, the inclination degree of the traffic path, the height of the traffic path and other information can be combined for judgment, so that the information on which the traffic event is detected is enriched, and the accuracy of the detection of the traffic event is improved.
Corresponding to the traffic event detection method, the embodiment of the application also provides a traffic event detection device.
Fig. 3 is a schematic structural diagram of a traffic event detection device according to an embodiment of the present application, where the device includes:
a passing message receiving module 301, configured to receive a passing message sent by a terminal, where the passing message includes: acceleration of the terminal motion;
an acceleration detection module 302, configured to detect an acceleration included in a received passing message according to a message receiving sequence;
a first event detecting module 303, configured to detect, when a first type of acceleration is detected, according to a passage message received after a first passage message is received, whether an upward passage event occurs in a device that carries the terminal, where the first type of acceleration is: an acceleration having a component in a vertically upward direction, the first pass message being: detecting a passing message where the first type of acceleration is located;
a second event detecting module 304, configured to detect, after the device has an upward passing event, if a second type of acceleration is detected, according to a passing message received after the second passing message is received, whether the device has a downward passing event, where the second type of acceleration is: an acceleration having a component in a vertically downward direction, the second pass message being: the passing message where the second type of acceleration is detected;
an event determining module 305, configured to determine that an upstream-to-downstream traffic event occurs in the device after a downstream traffic event occurs in the device.
In an embodiment of the present application, the pass packet is: the terminal generates a message containing the acceleration of the terminal motion after detecting the following conditions:
the acceleration component in the vertical direction changes from a non-zero value to zero; or
The acceleration component in the vertical direction changes from zero to a non-zero value.
In an embodiment of the application, the first event detecting module is specifically configured to:
if a third type of acceleration is detected in a pass message received after the first pass message is received, judging whether a message generation time difference between the first pass message and the third pass message is greater than a first preset time length, if so, judging that an upward pass event occurs to equipment carrying the terminal, wherein the third type of acceleration is as follows: the acceleration with the component of zero in the vertical direction, the third communication message is: the passing message where the third type of acceleration is detected;
and/or
And judging whether the number of the received passing messages in a second preset time length after the first passing message is received is greater than the preset number, if so, judging that the equipment has an upward passing event.
In an embodiment of the present application, the pass packet further includes: the location of the terminal;
the device further comprises:
an information determining module, configured to determine, after an uplink traffic event occurs in the device, a first occurrence time and a first occurrence location of the uplink traffic event according to at least one of the following messages:
the first pass message, the third pass message and a pass message received after the first pass message and before the third pass message are received;
after the device generates a downlink traffic event, determining a second occurrence time and a second occurrence position of the downlink traffic event according to at least one of the following messages:
the second pass message, the fourth pass message, and the pass message received after receiving the second pass message and before the fourth pass message, wherein the fourth pass message is: and the received message after the second passing message is received comprises the third type acceleration message.
In one embodiment of the present application, the apparatus further comprises:
the speed judging module is used for calculating a passing distance according to the first occurrence position and the second occurrence position after the device generates a downward passing event; calculating the passing time according to the first generation time and the second generation time; calculating the average passing speed according to the passing distance and the passing time; judging whether the average passing speed is greater than a preset speed threshold value or not; if yes, triggering the event judgment module.
In one embodiment of the present application, the apparatus further comprises:
the speed obtaining module is used for obtaining the movement speed of the equipment when the passing message sent by the terminal is received;
the quantity judgment module is used for determining the moment with the movement speed being zero in the [ first generation time and the second generation time ] as the moment to be detected according to the obtained movement speed after the downward passing event occurs to the equipment; obtaining the number of positions to be detected within a preset position range, wherein the positions to be detected are as follows: the position included in the passing message received at the moment to be detected; and if the number is larger than a preset number threshold, triggering the event judgment module.
In one embodiment of the present application, the apparatus further comprises:
a positioning message receiving module, configured to receive a positioning message sent by the terminal according to a preset period, where the positioning message includes: the location of the terminal;
the height judging module is used for calculating the passing height according to the position included in the received positioning message in the [ the first occurrence time and the second occurrence time ] after the downward passing event occurs to the equipment; judging whether the passing height is greater than a preset height threshold value or not; if yes, the event judgment module is triggered.
In an embodiment of the application, the event determining module is specifically configured to determine that an upstream-to-downstream traffic event occurs in the device when at least one of the following conditions is met:
the first generating position and the second generating position are both within a preset range;
the first inclination degree aiming at the uplink traffic event and the second inclination degree aiming at the downlink traffic event are both larger than the preset inclination degree, wherein the first inclination degree is as follows: determining the inclination degree of the traffic path according to the positions included in the first traffic message and the third traffic message, wherein the second inclination degree is as follows: determining the inclination degree of a passing path according to the positions included in the second passing message and the fourth passing message;
judging that a first passing height for an uplink passing event and a second passing height for a downlink passing event are both greater than a preset height, wherein the first passing height is as follows: determining the height of a passing path according to the positions included in the first passing message and the third passing message, wherein the second passing height is as follows: and determining the height of the passing path according to the positions included in the second passing message and the fourth passing message.
As can be seen from the above, when the scheme provided by each of the above embodiments is applied to detect a traffic event, the detection is realized by detecting the acceleration included in the traffic message. First, it is determined whether the device has an upward passage event by detecting whether the acceleration included in the passage message has a component in the vertically upward direction. And in the case of the upward passing event, determining whether the downward passing event occurs to the equipment by detecting whether the speed included in the passing message has a component in the vertical downward direction. If a downward traffic event also occurs, the device may be considered to have an upstream-to-downstream traffic event. For example, a traffic event occurs in which the electric bicycle travels up the overpass first and then down the overpass, that is, a traffic event in which the electric bicycle travels on the overpass occurs. Because the acceleration of the terminal motion can reflect the motion condition of the terminal, and the GPRS information is not considered when the traffic event detection is carried out, compared with the prior art, the detection accuracy can be improved when the scheme provided by each embodiment is applied to the traffic event detection.
Corresponding to the traffic event detection method, the embodiment of the application also provides the electronic equipment.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application, where the electronic device includes: a processor 401 and a machine-readable storage medium 402, the machine-readable storage medium 402 storing machine-executable instructions executable by the processor 401, the processor 401 being caused by the machine-executable instructions to: the traffic event detection method provided by the embodiment of the application is realized.
In one embodiment of the present application, a traffic event detection method is provided, which includes:
receiving a pass message sent by a terminal, wherein the pass message comprises: acceleration of the terminal motion;
detecting the acceleration included in the received passing message according to the message receiving sequence;
when a first type of acceleration is detected, detecting whether an upward passing event occurs in equipment carrying the terminal according to a passing message received after the first passing message is received, wherein the first type of acceleration is as follows: an acceleration having a component in a vertically upward direction, the first pass message being: detecting a passing message where the first type of acceleration is located;
after the device has an upward passing event, if a second type of acceleration is detected, detecting whether the device has a downward passing event according to a passing message received after the second passing message is received, wherein the second type of acceleration is as follows: an acceleration having a component in a vertically downward direction, the second pass message being: the passing message where the second type of acceleration is detected;
and after the device generates a downward traffic event, judging that the device generates an upstream-downstream traffic event.
It should be noted that other embodiments of the above-mentioned traffic event detection method, which are caused by the processor 401 by machine-executable instructions, are the same as the embodiments mentioned in the previous embodiment of the method, and are not described herein again.
As can be seen from the above, when the electronic device provided in this embodiment is used to detect a traffic event, the electronic device is implemented by detecting an acceleration included in a traffic message. First, it is determined whether the device has an upward passage event by detecting whether the acceleration included in the passage message has a component in the vertically upward direction. And in the case of the upward passing event, determining whether the downward passing event occurs to the equipment by detecting whether the speed included in the passing message has a component in the vertical downward direction. If a downward traffic event also occurs, the device may be considered to have an upstream-to-downstream traffic event. For example, a traffic event occurs in which the electric bicycle travels up the overpass first and then down the overpass, that is, a traffic event in which the electric bicycle travels on the overpass occurs. Because the acceleration of the terminal motion can reflect the motion condition of the terminal, and the GPRS information is not considered when the passage event detection is carried out, compared with the prior art, the detection accuracy can be improved when the electronic equipment provided by the embodiment is applied to the passage event detection.
Corresponding to the above-mentioned passage event detection method, an embodiment of the present application further provides a machine-readable storage medium storing machine-executable instructions, which, when invoked and executed by a processor, cause the processor to: the traffic event detection method provided by the embodiment of the application is realized.
In one embodiment of the present application, a traffic event detection method is provided, which includes:
receiving a pass message sent by a terminal, wherein the pass message comprises: acceleration of the terminal motion;
detecting the acceleration included in the received passing message according to the message receiving sequence;
when a first type of acceleration is detected, detecting whether an upward passing event occurs in equipment carrying the terminal according to a passing message received after the first passing message is received, wherein the first type of acceleration is as follows: an acceleration having a component in a vertically upward direction, the first pass message being: detecting a passing message where the first type of acceleration is located;
after the device has an upward passing event, if a second type of acceleration is detected, detecting whether the device has a downward passing event according to a passing message received after the second passing message is received, wherein the second type of acceleration is as follows: an acceleration having a component in a vertically downward direction, the second pass message being: the passing message where the second type of acceleration is detected;
and after the device generates a downward traffic event, judging that the device generates an upstream-downstream traffic event.
It should be noted that other embodiments of the method for detecting a passage event, which are implemented by the processor through the machine executable instructions, are the same as the embodiments mentioned in the foregoing method embodiment section, and are not described again here.
As can be seen from the above, the execution of the machine-executable instructions stored in the machine-readable storage medium provided in this embodiment to detect a traffic event is implemented by detecting an acceleration included in a traffic message. First, it is determined whether the device has an upward passage event by detecting whether the acceleration included in the passage message has a component in the vertically upward direction. And in the case of the upward passing event, determining whether the downward passing event occurs to the equipment by detecting whether the speed included in the passing message has a component in the vertical downward direction. If a downward traffic event also occurs, the device may be considered to have an upstream-to-downstream traffic event. For example, a traffic event occurs in which the electric bicycle travels up the overpass first and then down the overpass, that is, a traffic event in which the electric bicycle travels on the overpass occurs. Because the acceleration of the terminal motion can reflect the motion condition of the terminal, and the GPRS information is not considered when the traffic event detection is carried out, compared with the prior art, the detection accuracy can be improved when the scheme provided by the embodiment is applied to the traffic event detection.
The machine-readable storage medium may include a Random Access Memory (RAM) and a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the machine-readable storage medium may be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus, electronic device, and machine-readable storage medium embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant points.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (16)

1. A method of traffic event detection, the method comprising:
receiving a pass message sent by a terminal, wherein the pass message comprises: acceleration of the terminal motion;
detecting the acceleration included in the received passing message according to the message receiving sequence;
when a first type of acceleration is detected, detecting whether an upward passing event occurs in equipment carrying the terminal according to a passing message received after the first passing message is received, wherein the first type of acceleration is as follows: an acceleration having a component in a vertically upward direction, the first pass message being: detecting a passing message where the first type of acceleration is located;
after the device has an upward passing event, if a second type of acceleration is detected, detecting whether the device has a downward passing event according to a passing message received after the second passing message is received, wherein the second type of acceleration is as follows: an acceleration having a component in a vertically downward direction, the second pass message being: the passing message where the second type of acceleration is detected;
after the device generates a downward traffic event, judging that the device generates an upstream-downstream traffic event;
the detecting whether the device carrying the terminal generates an upward passing event according to the passing message received after the first passing message is received includes:
if a third type of acceleration is detected in a pass message received after the first pass message is received, judging whether a message generation time difference between the first pass message and the third pass message is greater than a first preset time length, if so, judging that an upward pass event occurs to equipment carrying the terminal, wherein the third type of acceleration is as follows: the acceleration with the component of zero in the vertical direction, the third communication message is: the passing message where the third type of acceleration is detected;
and/or
And judging whether the number of the received passing messages in a second preset time length after the first passing message is received is greater than the preset number, if so, judging that the equipment has an upward passing event.
2. The method of claim 1, wherein the pass message is: the terminal generates a message containing the acceleration of the terminal motion after detecting the following conditions:
the acceleration component in the vertical direction changes from a non-zero value to zero; or
The acceleration component in the vertical direction changes from zero to a non-zero value.
3. The method of claim 1, wherein the pass message further comprises: the location of the terminal;
the method further comprises the following steps:
after the device generates an uplink traffic event, determining a first generation time and a first generation position of the uplink traffic event according to at least one of the following messages:
the first pass message, the third pass message and a pass message received after the first pass message and before the third pass message are received;
after the device generates a downlink traffic event, determining a second occurrence time and a second occurrence position of the downlink traffic event according to at least one of the following messages:
the second pass message, the fourth pass message, and the pass message received after receiving the second pass message and before the fourth pass message, wherein the fourth pass message is: and the received messages after the second passing message is received comprise the third type acceleration messages.
4. The method of claim 3, further comprising, after the downward pass event has occurred at the device:
calculating a passing distance according to the first occurrence position and the second occurrence position;
calculating the passing time according to the first generation time and the second generation time;
calculating the average passing speed according to the passing distance and the passing time;
judging whether the average passing speed is greater than a preset speed threshold value or not;
and if so, executing the step of judging that the equipment generates an upstream-downstream traffic event.
5. The method of claim 3, further comprising:
obtaining the movement speed of the equipment when a passing message sent by the terminal is received;
after the device has a downward passage event, the method further comprises the following steps:
determining the moment with the zero motion speed in the [ the first generation time and the second generation time ] as the moment to be detected according to the obtained motion speed;
obtaining the number of positions to be detected within a preset position range, wherein the positions to be detected are as follows: the position included in the passing message received at the moment to be detected;
and if the number is larger than a preset number threshold, executing the step of judging that the equipment has an upstream-downstream traffic event.
6. The method of claim 3, further comprising:
receiving a positioning message sent by the terminal according to a preset period, wherein the positioning message comprises: the location of the terminal;
after the device has a downward passage event, the method further comprises the following steps:
calculating the passing height according to the position included in the received positioning message in the [ the first occurrence time and the second occurrence time ];
judging whether the passing height is greater than a preset height threshold value or not;
and if so, executing the step of judging that the equipment generates an upstream-downstream traffic event.
7. The method of claim 3, wherein determining that an upstream-then-downstream traffic event has occurred at the device comprises:
determining that an upstream-downstream traffic event has occurred for the device when at least one of the following conditions is met:
the first generating position and the second generating position are both within a preset range;
the first inclination degree aiming at the uplink traffic event and the second inclination degree aiming at the downlink traffic event are both larger than the preset inclination degree, wherein the first inclination degree is as follows: determining the inclination degree of the traffic path according to the positions included in the first traffic message and the third traffic message, wherein the second inclination degree is as follows: determining the inclination degree of a passing path according to the positions included in the second passing message and the fourth passing message;
judging that a first passing height for an uplink passing event and a second passing height for a downlink passing event are both greater than a preset height, wherein the first passing height is as follows: determining the height of a passing path according to the positions included in the first passing message and the third passing message, wherein the second passing height is as follows: and determining the height of the passing path according to the positions included in the second passing message and the fourth passing message.
8. A traffic event detection device, the device comprising:
the passage message receiving module is used for receiving a passage message sent by a terminal, wherein the passage message comprises: acceleration of the terminal motion;
the acceleration detection module is used for detecting the acceleration included in the received passing message according to the message receiving sequence;
a first event detection module, configured to detect, when a first type of acceleration is detected, whether an upward passage event occurs in a device that carries the terminal according to a passage message received after a first passage message is received, where the first type of acceleration is: an acceleration having a component in a vertically upward direction, the first pass message being: detecting a passing message where the first type of acceleration is located;
a second event detection module, configured to detect, if a second type of acceleration is detected after an upward passage event occurs in the device, according to a passage message received after the second passage message is received, whether a downward passage event occurs in the device, where the second type of acceleration is: an acceleration having a component in a vertically downward direction, the second pass message being: the passing message where the second type of acceleration is detected;
the event judging module is used for judging that the equipment generates an upstream-downstream traffic event after a downstream traffic event occurs;
the first event detection module is specifically configured to: if a third type of acceleration is detected in a pass message received after the first pass message is received, judging whether a message generation time difference between the first pass message and the third pass message is greater than a first preset time length, if so, judging that an upward pass event occurs to equipment carrying the terminal, wherein the third type of acceleration is as follows: the acceleration with the component of zero in the vertical direction, the third communication message is: the passing message where the third type of acceleration is detected;
and/or
And judging whether the number of the received passing messages in a second preset time length after the first passing message is received is greater than the preset number, if so, judging that the equipment has an upward passing event.
9. The apparatus of claim 8, wherein the pass message is: the terminal generates a message containing the acceleration of the terminal motion after detecting the following conditions:
the acceleration component in the vertical direction changes from a non-zero value to zero; or
The acceleration component in the vertical direction changes from zero to a non-zero value.
10. The apparatus of claim 9, wherein the pass message further comprises: the location of the terminal;
the device further comprises:
an information determining module, configured to determine, after an uplink traffic event occurs in the device, a first occurrence time and a first occurrence location of the uplink traffic event according to at least one of the following messages:
the first pass message, the third pass message and a pass message received after the first pass message and before the third pass message are received;
after the device generates a downlink traffic event, determining a second occurrence time and a second occurrence position of the downlink traffic event according to at least one of the following messages:
the second pass message, the fourth pass message, and the pass message received after receiving the second pass message and before the fourth pass message, wherein the fourth pass message is: and the received messages after the second passing message is received comprise the third type acceleration messages.
11. The apparatus of claim 10, further comprising:
the speed judging module is used for calculating a passing distance according to the first occurrence position and the second occurrence position after the device generates a downward passing event; calculating the passing time according to the first generation time and the second generation time; calculating the average passing speed according to the passing distance and the passing time; judging whether the average passing speed is greater than a preset speed threshold value or not; if yes, triggering the event judgment module.
12. The apparatus of claim 10, further comprising:
the speed obtaining module is used for obtaining the movement speed of the equipment when the passing message sent by the terminal is received;
the quantity judgment module is used for determining the moment with the movement speed being zero in the [ first generation time and the second generation time ] as the moment to be detected according to the obtained movement speed after the downward passing event occurs to the equipment; obtaining the number of positions to be detected within a preset position range, wherein the positions to be detected are as follows: the position included in the passing message received at the moment to be detected; and if the number is larger than a preset number threshold, triggering the event judgment module.
13. The apparatus of claim 10, further comprising:
a positioning message receiving module, configured to receive a positioning message sent by the terminal according to a preset period, where the positioning message includes: the location of the terminal;
the height judging module is used for calculating the passing height according to the position included in the received positioning message in the [ the first occurrence time and the second occurrence time ] after the downward passing event occurs to the equipment; judging whether the passing height is greater than a preset height threshold value or not; if yes, the event judgment module is triggered.
14. The apparatus according to claim 10, wherein the event determining module is specifically configured to determine that the device has an upstream-to-downstream traffic event when at least one of the following conditions is met:
the first generating position and the second generating position are both within a preset range;
the first inclination degree aiming at the uplink traffic event and the second inclination degree aiming at the downlink traffic event are both larger than the preset inclination degree, wherein the first inclination degree is as follows: determining the inclination degree of the traffic path according to the positions included in the first traffic message and the third traffic message, wherein the second inclination degree is as follows: determining the inclination degree of a passing path according to the positions included in the second passing message and the fourth passing message;
judging that a first passing height for an uplink passing event and a second passing height for a downlink passing event are both greater than a preset height, wherein the first passing height is as follows: determining the height of a passing path according to the positions included in the first passing message and the third passing message, wherein the second passing height is as follows: and determining the height of the passing path according to the positions included in the second passing message and the fourth passing message.
15. An electronic device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: carrying out the method steps of any one of claims 1 to 7.
16. A machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to: carrying out the method steps of any one of claims 1 to 7.
CN201910380454.9A 2019-05-08 2019-05-08 Traffic event detection method and device Active CN110070719B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910380454.9A CN110070719B (en) 2019-05-08 2019-05-08 Traffic event detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910380454.9A CN110070719B (en) 2019-05-08 2019-05-08 Traffic event detection method and device

Publications (2)

Publication Number Publication Date
CN110070719A CN110070719A (en) 2019-07-30
CN110070719B true CN110070719B (en) 2021-01-08

Family

ID=67370322

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910380454.9A Active CN110070719B (en) 2019-05-08 2019-05-08 Traffic event detection method and device

Country Status (1)

Country Link
CN (1) CN110070719B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101762275A (en) * 2008-12-25 2010-06-30 佛山市顺德区顺达电脑厂有限公司 Vehicle-mounted navigation system and method
CN104240527A (en) * 2014-09-09 2014-12-24 广东欧珀移动通信有限公司 Road condition early warning method and device
CN104787349A (en) * 2015-04-21 2015-07-22 深圳一电科技有限公司 Aircraft safety take-off control method and device
CN106032985A (en) * 2015-03-13 2016-10-19 厦门歌乐电子企业有限公司 Vehicle positioning device
CN106989743A (en) * 2017-03-31 2017-07-28 上海电机学院 A kind of energy automatic sensing passes in and out the apparatus for vehicle navigation of overpass information
CN107462911A (en) * 2016-06-03 2017-12-12 千寻位置网络有限公司 Overhead detection method and its device above and below automobile
KR20180025563A (en) * 2016-09-01 2018-03-09 주식회사 만도 Apparatus and method for improving fuel efficiency on operation of SCC system in vehicle

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101762275A (en) * 2008-12-25 2010-06-30 佛山市顺德区顺达电脑厂有限公司 Vehicle-mounted navigation system and method
CN104240527A (en) * 2014-09-09 2014-12-24 广东欧珀移动通信有限公司 Road condition early warning method and device
CN106032985A (en) * 2015-03-13 2016-10-19 厦门歌乐电子企业有限公司 Vehicle positioning device
CN104787349A (en) * 2015-04-21 2015-07-22 深圳一电科技有限公司 Aircraft safety take-off control method and device
CN107462911A (en) * 2016-06-03 2017-12-12 千寻位置网络有限公司 Overhead detection method and its device above and below automobile
KR20180025563A (en) * 2016-09-01 2018-03-09 주식회사 만도 Apparatus and method for improving fuel efficiency on operation of SCC system in vehicle
CN106989743A (en) * 2017-03-31 2017-07-28 上海电机学院 A kind of energy automatic sensing passes in and out the apparatus for vehicle navigation of overpass information

Also Published As

Publication number Publication date
CN110070719A (en) 2019-07-30

Similar Documents

Publication Publication Date Title
US11847908B2 (en) Data processing for connected and autonomous vehicles
JP7047089B2 (en) Cellular network-based driving support method and traffic control unit
US9341487B2 (en) Automatic geofence determination
US11100794B2 (en) Autonomous driving and slowdown patterns
CN104217601B (en) Vehicle control prompting method and vehicle control prompting system based on high-precision positioning
JP4710896B2 (en) Driving evaluation device, driving evaluation system, computer program, and driving evaluation method
EP3118079A1 (en) Road surface submergence estimation device
CN109074728A (en) Travel speed is recommended to provide program, running support system, vehicle control apparatus and automatic running vehicle
US11295615B2 (en) Slowdown events
CN103531038B (en) A kind of public transport vehicle-mounted terminal automatic reporting station method
JP2017146279A (en) Estimation device, estimation method, and estimation program
CN104751678B (en) A kind of method and apparatus being monitored to the traffic conflict that fault car triggers
JP2011022649A (en) Link travel time calculation device and program
US20230019164A1 (en) Image Processing Method and Apparatus
CN104952258B (en) Traffic event influence range calculation method based on traffic scene radar
CN104376729A (en) Expressway opposite-direction lane congestion prompting method based on vehicle-vehicle communication
Anya et al. Application of AIMSUN microsimulation model to estimate emissions on signalized arterial corridors
US20200234578A1 (en) Prioritized vehicle messaging
JP2020154958A (en) Abnormal traffic flow detection device, abnormal traffic flow detection method, and abnormal traffic flow detection program
CN104952250B (en) Traffic organization method under traffic event condition on basis of traffic scene radar
CN110070719B (en) Traffic event detection method and device
JP2012221168A (en) Travel information calculation device, navigation system and travel information calculation method
US11928962B2 (en) Location risk determination and ranking based on vehicle events and/or an accident database
CN112622921B (en) Method and device for detecting abnormal driving behavior of driver and electronic equipment
TWI722647B (en) System for driver estimation and method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant