Collision detection method and device, storage medium and program product

By obtaining the terminal's speed change information and attitude information, determining the operating status of the vehicle, and triggering alarm operations, the problem of inability to detect collisions in the existing technology is solved, and user safety is improved.

CN120452218APending Publication Date: 2025-08-08XIAOMI EV TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510573084.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-30
Publication Date
2025-08-08

AI Technical Summary

Technical Problem

The prior art is difficult to effectively detect whether a vehicle has collided, resulting in the inability to provide rescue data in a timely manner, affecting the safety of end users.

Method used

By obtaining the terminal's speed change information, combining the attitude information and acceleration information, the operating status of the terminal's vehicle is determined, and an alarm operation is triggered to provide collision detection.

Benefits of technology

It realizes timely and effectively detects and provides rescue data when a vehicle collides, and improves the personal safety of end users when riding on a vehicle.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120452218A_ABST
    Figure CN120452218A_ABST
Patent Text Reader

Abstract

The invention relates to a collision detection method and device, a storage medium and a program product. The method comprises the following steps: acquiring speed change information of a terminal under the condition of determining that the terminal is in a vehicle taking state; according to the speed change information of the terminal, determining an operation state of a vehicle where the terminal is located; and triggering an alarm operation in response to the running state including a collision state. Through the method, whether the terminal is in the vehicle taking state or not can be determined, and whether the running state of the vehicle where the terminal is located is the collision state or not can be determined according to the speed change information of the terminal under the condition that the terminal is determined to be in the vehicle taking state; whether the vehicle is collided or not can be timely and effectively detected, so that a reliable data basis is provided for timely and effective rescue, and the personal safety of a terminal user taking the vehicle can be further guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of terminal technology, and in particular to a collision detection method, device, storage medium, and program product. Background Art

[0002] With the development of society and advancements in technology, transportation has become an integral part of people's daily lives. Riding public transportation not only improves travel efficiency but also, to a certain extent, satisfies people's pursuit of a better life. With the increasing popularity of public transportation, the probability of collisions has also increased. Improving the collision detection capabilities of mobile phones, tablets, and other terminals will not only improve the user experience but also effectively ensure the personal safety of end users while riding public transportation. Summary of the Invention

[0003] To overcome the problems existing in the related art, the present disclosure provides a collision detection method, device, storage medium and program product.

[0004] According to a first aspect of an embodiment of the present disclosure, a collision detection method is provided, the method comprising:

[0005] When it is determined that the terminal is in a transportation vehicle boarding state, obtaining speed change information of the terminal;

[0006] determining the operating state of the vehicle where the terminal is located according to the speed change information of the terminal;

[0007] In response to the operating state including a collision state, an alarm operation is triggered.

[0008] The above collision detection method can not only determine whether the terminal is in a state of riding a vehicle, but also determine whether the operating state of the vehicle where the terminal is located is a collision state based on the speed change information of the terminal when it is determined that the terminal is in a state of riding a vehicle. It can detect whether a vehicle has collided in a timely and effective manner, thereby providing a reliable data basis for timely and effective rescue, which is conducive to further protecting the personal safety of terminal users when riding in vehicles.

[0009] In some embodiments, determining that the terminal is in a transportation boarding state includes:

[0010] Acquiring mobile status information of the terminal;

[0011] When it is determined according to the movement status information that the terminal meets the preset boarding movement condition, obtaining the current positioning information of the terminal;

[0012] When the current positioning information does not belong to a preset area position, it is determined that the terminal is in a transportation boarding state.

[0013] This implementation can obtain the current positioning information of the terminal only when it is determined that the terminal meets the preset boarding movement conditions based on the movement status information, thereby avoiding continuous calling of the positioning device, which is beneficial to reducing the power consumption of the terminal; and it can also exclude the regional locations of places that are likely to interfere with the collision detection results, thereby effectively improving the accuracy of the detection results.

[0014] In some embodiments, the movement status information includes posture information and original acceleration information in the terminal coordinate system; determining that the terminal meets the preset boarding movement condition based on the movement status information includes:

[0015] Determining a target acceleration in an earth coordinate system according to the posture information and the original acceleration information;

[0016] determining a first ground acceleration in a first direction and a second ground acceleration in a second direction on a horizontal plane according to the target acceleration;

[0017] Determine a first velocity change in a first direction during each sampling interval based on the first ground acceleration, and determine a second velocity change in a second direction during each sampling interval based on the second ground acceleration;

[0018] It is determined whether the terminal meets a preset boarding movement condition according to the first speed change amount and the second speed change amount.

[0019] This implementation can determine whether the terminal meets the preset riding movement conditions based on the posture information and the original acceleration information in the terminal coordinate system, and can provide a reliable data basis for determining whether a collision occurs.

[0020] In some embodiments, determining whether the terminal meets a preset boarding movement condition based on the first speed change and the second speed change includes:

[0021] When the difference between the current moment and the first moment is greater than the preset time threshold, and the absolute value of the accumulated speed change at the current moment is greater than the preset accumulated value threshold, it is determined that the terminal meets the preset boarding movement condition;

[0022] Among them, the first moment is the moment when the target speed change and the speed change cumulative amount have different signs, the target speed change is the first speed change or the second speed change, when the target speed change is the first speed change, the speed change cumulative amount is the accumulated amount of speed change in the first direction, when the target speed change is the second speed change, the speed change cumulative amount is the accumulated amount of speed change in the second direction.

[0023] In some embodiments, determining the operating status of the vehicle where the terminal is located based on the speed change information of the terminal includes:

[0024] When it is determined that the current target acceleration of the terminal in the earth coordinate system is greater than a preset acceleration threshold, obtaining a maximum horizontal velocity change within a preset time period;

[0025] The operating state of the vehicle where the terminal is located is determined according to the maximum horizontal speed change.

[0026] This embodiment can effectively determine whether the running state of the vehicle where the terminal is located is a collision state through the maximum horizontal speed change within a preset time period.

[0027] In some embodiments, determining the operating state of the vehicle where the terminal is located according to the maximum horizontal speed change includes:

[0028] Determining a weightlessness duration of the terminal within the preset duration;

[0029] determining a third ground acceleration in a direction perpendicular to the ground according to the target acceleration;

[0030] determining a collision angle of the terminal according to the third ground acceleration and the target acceleration;

[0031] The operating state of the vehicle where the terminal is located is determined according to the collision angle, the weightlessness duration, and the maximum horizontal speed change.

[0032] This embodiment can determine the operating status of the vehicle where the terminal is located based on the collision angle, the weightlessness duration and the maximum horizontal speed change, and determine whether the operating status of the vehicle where the terminal is located is a collision state, which can effectively improve the accuracy and reliability of the collision detection results.

[0033] In some embodiments, determining the operating state of the vehicle where the terminal is located based on the collision angle, the weightlessness duration, and the maximum horizontal speed change includes:

[0034] Determining a target change threshold value according to the weightlessness duration and the collision angle;

[0035] When the maximum horizontal speed variation is greater than the target variation threshold, it is determined that the running state of the vehicle where the terminal is located is the collision state.

[0036] In some embodiments, determining the target change threshold according to the weightlessness duration and the collision angle includes:

[0037] When it is determined that the weightlessness duration is greater than or equal to the preset weightlessness duration threshold, the first change threshold is used as the target change threshold;

[0038] When it is determined that the weightlessness duration is less than the preset weightlessness duration threshold, if the collision angle is greater than or equal to the first angle threshold, using a second change threshold as the target change threshold, and the second change threshold is less than the first change threshold;

[0039] If the collision angle is smaller than the first angle threshold and larger than the second angle threshold, a third variation threshold is used as the target variation threshold, the third variation threshold is smaller than the second variation threshold, and the first angle threshold is larger than the second angle threshold.

[0040] This embodiment can determine the target change threshold value based on the weightlessness duration and the collision angle, and determine whether a collision occurs based on the relationship between the maximum horizontal speed change and the target change threshold value, which can effectively improve the accuracy and reliability of the collision detection results.

[0041] In some embodiments, the method further comprises:

[0042] Get audio data of specified duration;

[0043] The operating status of the vehicle where the terminal is located is determined according to the speed change information of the terminal and the audio data.

[0044] This embodiment can combine audio data to detect collisions, thereby improving the accuracy and reliability of collision detection results.

[0045] In some embodiments, determining the operating status of the vehicle where the terminal is located based on the speed change information of the terminal and the audio data includes:

[0046] When the maximum horizontal speed variation within the preset time period is less than or equal to the target variation threshold, the operating state of the vehicle where the terminal is located is determined according to the audio data.

[0047] This embodiment can obtain audio data of a specified length when the maximum horizontal speed change is less than or equal to the target change threshold, thereby not only being able to detect collisions in combination with audio data to improve the accuracy and reliability of collision detection results, but also being able to avoid continuous audio analysis, thereby effectively saving system resources and reducing terminal power consumption.

[0048] In some embodiments, determining the operating status of the vehicle where the terminal is located based on the audio data includes:

[0049] Dividing the audio data into frequency bands to obtain sub-band signals of one or more frequency bands;

[0050] determining a sub-band energy of each of the sub-band signals;

[0051] For each subband signal, if the subband energy is determined to be greater than or equal to a preset energy threshold for the corresponding frequency band, determining a peak energy moment in the audio data, and determining a target duration for attenuating the preset energy value based on the peak energy moment;

[0052] When the target duration is less than the first duration threshold, it is determined that the operating state of the vehicle where the terminal is located is the collision state.

[0053] This embodiment can determine that the operating state of the vehicle where the terminal is located is the collision state based on the target duration of attenuating the preset energy value, and can effectively obtain the collision detection result through audio data.

[0054] In some embodiments, determining the operating status of the vehicle where the terminal is located based on the audio data further includes:

[0055] When it is determined that the sub-band energy is greater than or equal to a preset energy threshold of the corresponding frequency band, determining the interval between two adjacent energy peaks;

[0056] When it is determined that the interval duration is less than the second duration threshold, it is determined that the operating state of the vehicle where the terminal is located is the collision state.

[0057] This embodiment can determine that the operating state of the vehicle where the terminal is located is the collision state based on the interval length between two adjacent energy peaks, and can provide another technical means to obtain collision detection results based on audio data, and can also effectively ensure the accuracy and reliability of the collision detection results.

[0058] In some embodiments, in response to the operating state including a collision state, triggering an alarm operation includes:

[0059] When it is determined that the operating state of the vehicle where the terminal is located is the collision state, obtaining current positioning information;

[0060] Generate a target distress message according to the current positioning information, and send the target distress message to a preset rescue terminal.

[0061] This embodiment can generate a target distress message based on the current positioning information, and send the target distress message to a preset rescue terminal. It can transmit the positioning information at the time of collision to the rescue terminal in a timely manner, thereby providing a reliable data basis for rescue, which is beneficial to improving rescue efficiency and shortening rescue time; and it can obtain the current positioning information when it is determined that the operating state of the vehicle where the terminal is located is the collision state, thereby avoiding the problem of excessive energy consumption of the terminal caused by continuous acquisition of the current positioning information.

[0062] In some embodiments, the target distress message is voice distress data including the current location information; sending the target distress message to a preset rescue terminal includes:

[0063] After determining that the terminal has established a call connection with the preset rescue end, the target rescue information is broadcasted by voice.

[0064] This embodiment can generate a target distress message based on the current positioning information, and after determining that the terminal has established a call connection with the preset rescue end, the target distress message is broadcast by voice. This can effectively avoid the phenomenon that after a collision, the voice call cannot be answered due to injuries to the personnel, thereby resulting in missed rescue, which is conducive to further improving the probability of successful rescue.

[0065] According to a second aspect of an embodiment of the present disclosure, there is provided a collision detection device, the device comprising:

[0066] A first determining module is configured to obtain speed change information of the terminal when determining that the terminal is in a transportation vehicle boarding state;

[0067] an operating state determining module, configured to determine the operating state of the vehicle where the terminal is located according to the speed change information of the terminal;

[0068] The alarm module is configured to trigger an alarm operation in response to the operating state including a collision state.

[0069] In some embodiments, the first determining module is configured to:

[0070] Acquiring mobile status information of the terminal;

[0071] When it is determined according to the movement status information that the terminal meets the preset boarding movement condition, obtaining the current positioning information of the terminal;

[0072] When the current positioning information does not belong to a preset area position, it is determined that the terminal is in a transportation boarding state.

[0073] In some embodiments, the movement status information includes posture information and original acceleration information in the terminal coordinate system; the first determination module is configured to:

[0074] Determining a target acceleration in an earth coordinate system according to the posture information and the original acceleration information;

[0075] determining a first ground acceleration in a first direction and a second ground acceleration in a second direction on a horizontal plane according to the target acceleration;

[0076] Determine a first velocity change in a first direction during each sampling interval based on the first ground acceleration, and determine a second velocity change in a second direction during each sampling interval based on the second ground acceleration;

[0077] It is determined whether the terminal meets a preset boarding movement condition according to the first speed change amount and the second speed change amount.

[0078] In some embodiments, the first determining module is configured to:

[0079] When the difference between the current moment and the first moment is greater than the preset time threshold, and the absolute value of the accumulated speed change at the current moment is greater than the preset accumulated value threshold, it is determined that the terminal meets the preset boarding movement condition;

[0080] Among them, the first moment is the moment when the target speed change and the speed change cumulative amount have different signs, the target speed change is the first speed change or the second speed change, when the target speed change is the first speed change, the speed change cumulative amount is the accumulated amount of speed change in the first direction, when the target speed change is the second speed change, the speed change cumulative amount is the accumulated amount of speed change in the second direction.

[0081] In some embodiments, the operating status determination module is configured to:

[0082] When it is determined that the current target acceleration of the terminal in the earth coordinate system is greater than a preset acceleration threshold, obtaining a maximum horizontal velocity change within a preset time period;

[0083] The operating state of the vehicle where the terminal is located is determined according to the maximum horizontal speed change.

[0084] In some embodiments, the operating status determination module is configured to:

[0085] Determining a weightlessness duration of the terminal within the preset duration;

[0086] determining a third ground acceleration in a direction perpendicular to the ground according to the target acceleration;

[0087] determining a collision angle of the terminal according to the third ground acceleration and the target acceleration;

[0088] The operating state of the vehicle where the terminal is located is determined according to the collision angle, the weightlessness duration, and the maximum horizontal speed change.

[0089] In some embodiments, the operating status determination module is configured to:

[0090] Determining a target change threshold value according to the weightlessness duration and the collision angle;

[0091] When the maximum horizontal speed variation is greater than the target variation threshold, it is determined that the running state of the vehicle where the terminal is located is the collision state.

[0092] In some embodiments, the operating status determination module is configured to:

[0093] When it is determined that the weightlessness duration is greater than or equal to the preset weightlessness duration threshold, the first change threshold is used as the target change threshold;

[0094] When it is determined that the weightlessness duration is less than the preset weightlessness duration threshold, if the collision angle is greater than or equal to the first angle threshold, using a second change threshold as the target change threshold, and the second change threshold is less than the first change threshold;

[0095] If the collision angle is smaller than the first angle threshold and larger than the second angle threshold, a third variation threshold is used as the target variation threshold, the third variation threshold is smaller than the second variation threshold, and the first angle threshold is larger than the second angle threshold.

[0096] In some embodiments, the apparatus further comprises:

[0097] An acquisition module, configured to acquire audio data of a specified duration;

[0098] The second determining module is configured to determine the operating status of the vehicle where the terminal is located according to the speed change information of the terminal and the audio data.

[0099] In some embodiments, the second determination module is configured to determine the operating status of the vehicle where the terminal is located based on the audio data when the maximum horizontal speed change is less than or equal to the target change threshold.

[0100] In some embodiments, the second determining module is configured to:

[0101] Dividing the audio data into frequency bands to obtain sub-band signals of one or more frequency bands;

[0102] determining a sub-band energy of each of the sub-band signals;

[0103] For each subband signal, if the subband energy is determined to be greater than or equal to a preset energy threshold for the corresponding frequency band, determining a peak energy moment in the audio data, and determining a target duration for attenuating the preset energy value based on the peak energy moment;

[0104] When the target duration is less than the first duration threshold, it is determined that the operating state of the vehicle where the terminal is located is the collision state.

[0105] In some embodiments, the second determining module is further configured to:

[0106] When it is determined that the sub-band energy is greater than or equal to a preset energy threshold of the corresponding frequency band, determining the interval between two adjacent energy peaks;

[0107] When it is determined that the interval duration is less than the second duration threshold, it is determined that the operating state of the vehicle where the terminal is located is the collision state.

[0108] In some embodiments, the alarm module is configured to:

[0109] When it is determined that the operating state of the vehicle where the terminal is located is the collision state, obtaining current positioning information;

[0110] Generate a target distress message according to the current positioning information, and send the target distress message to a preset rescue terminal.

[0111] In some embodiments, the target distress message is voice distress data including the current location information; the alarm module is configured to:

[0112] After determining that the terminal has established a call connection with the preset rescue end, the target rescue information is broadcasted by voice.

[0113] According to a third aspect of an embodiment of the present disclosure, there is provided a collision detection device, characterized by comprising:

[0114] processor;

[0115] a memory for storing processor-executable instructions;

[0116] The processor is configured to implement the steps of the method described in the first aspect above.

[0117] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described in the first aspect above are implemented.

[0118] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, comprising a computer program, which implements the steps of the method described in the first aspect above when executed by a processor.

[0119] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: not only can it determine whether the terminal is in a state of riding a vehicle, but also when it is determined that the terminal is in a state of riding a vehicle, it can determine whether the operating state of the vehicle where the terminal is located is a collision state based on the speed change information of the terminal. It can timely and effectively detect whether a vehicle has collided, thereby providing a reliable data basis for timely and effective rescue, which is conducive to further protecting the personal safety of terminal users when riding vehicles.

[0120] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0121] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0122] Figure 1 is a flow chart showing a collision detection method according to an exemplary embodiment;

[0123] Figure 2 is based on Figure 1 The illustrated embodiment shows a flow chart of a collision detection method;

[0124] Figure 3 is based on Figure 1 A flow chart of another collision detection method shown in the illustrated embodiment;

[0125] Figure 4 is based on Figure 1 A flow chart of yet another collision detection method shown in the illustrated embodiment;

[0126] Figure 5is a flowchart of a collision detection method shown in another exemplary embodiment of the present disclosure;

[0127] Figure 6 is a software architecture block diagram of an electronic device according to an embodiment of the present disclosure;

[0128] Figure 7 is a block diagram of a collision detection device according to an exemplary embodiment of the present disclosure;

[0129] Figure 8 According to this disclosure Figure 7 A block diagram of a collision detection device shown in the illustrated embodiment;

[0130] Figure 9 It is a block diagram of a device for collision detection according to an exemplary embodiment. DETAILED DESCRIPTION

[0131] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.

[0132] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the corresponding data protection laws and policies of the country where they are located and with the authorization given by the owner of the corresponding device.

[0133] Figure 1 FIG. 1 is a flow chart showing a collision detection method according to an exemplary embodiment. Figure 1 As shown, the collision detection method is used in a terminal, including:

[0134] Step 101: When it is determined that the terminal is in a state of boarding a vehicle, obtain speed change information of the terminal.

[0135] In this step, the implementation methods for determining that the terminal is in a transportation boarding state may include the following three:

[0136] Method 1: obtain the movement status information of the terminal; when it is determined according to the movement status information that the terminal meets the preset boarding movement conditions, obtain the current positioning information of the terminal; when the current positioning information does not belong to the preset area position, determine that the terminal is in a transportation boarding state.

[0137] Method 2 is to receive transportation boarding notification messages from other applications in the terminal. For example, when the terminal user is driving from place A to place B using the navigation information provided by a preset APP, the preset APP can provide the navigation information and vehicle driving data to the terminal as a transportation boarding communication message. The terminal can determine that the terminal is currently in a transportation boarding state based on the navigation information and vehicle driving data.

[0138] Method three is to determine whether the terminal is in a transportation riding state after receiving mode data input by the terminal user through a designated key, for example, when the terminal user sets the terminal to flight mode or sets the terminal to do not disturb while driving mode.

[0139] Step 102: Determine the operating status of the vehicle where the terminal is located based on the speed change information of the terminal.

[0140] The operating state of the vehicle may be a collision state or a non-collision state.

[0141] In this step, when it is determined that the current target acceleration of the terminal in the earth coordinate system is greater than the preset acceleration threshold, the maximum horizontal speed change within the preset time length can be obtained; and the operating status of the vehicle where the terminal is located can be determined based on the maximum horizontal speed change.

[0142] Step 103: In response to the operating state including a collision state, triggering an alarm operation.

[0143] The alarm operation may include dialing an alarm number, triggering a distress message, and sounding an alarm.

[0144] The above technical solution can not only determine whether the terminal is in a state of riding a vehicle, but also, when it is determined that the terminal is in a state of riding a vehicle, determine whether the operating state of the vehicle where the terminal is located is a collision state based on the speed change information of the terminal. It can timely and effectively detect whether a vehicle has collided, thereby providing a reliable data basis for timely and effective rescue, which is conducive to further protecting the personal safety of terminal users when riding vehicles.

[0145] Figure 2 is based on Figure 1 The embodiment shown is a flowchart of a collision detection method, as shown in FIG. Figure 2 As shown, Figure 1 The step 101 of determining that the terminal is in a transportation boarding state may include the following steps:

[0146] Step 1011: Acquire the mobility status information of the terminal.

[0147] The movement status information includes posture information and original acceleration information in the terminal coordinate system. The movement status information can be collected by the IMU (Inertial Measurement Unit) in the terminal. For example, the linear acceleration of the terminal in three-dimensional space can be measured by an accelerometer to obtain the original acceleration information in the terminal coordinate system; the posture information of the terminal can be collected by a gyroscope. The posture information may include the angular velocity of rotation around three axes in the terminal coordinate system. According to the angular velocity of rotation around three axes in the terminal coordinate system, the roll angle, pitch angle and heading angle of the terminal can be obtained.

[0148] Step 1012: When it is determined that the terminal meets the preset boarding movement conditions according to the movement status information, the current positioning information of the terminal is obtained.

[0149] In this step, the implementation method of determining that the terminal meets the preset boarding movement condition according to the movement status information may include the following steps S11 to S14.

[0150] In S11 , a target acceleration in an earth coordinate system is determined according to the posture information and the original acceleration information.

[0151] The roll angle, pitch angle and heading angle of the terminal can be determined based on the rotation angular velocity around the three axes in the attitude information. The rotation matrix can be obtained based on the roll angle, pitch angle and heading angle. Then, the original acceleration information in the terminal coordinate system can be transformed into the earth coordinate system based on the rotation matrix to obtain the target acceleration. For example, if the rotation matrix is The original acceleration information is α b , the target acceleration is a n ,but

[0152] In S12 , a first ground acceleration in a first direction and a second ground acceleration in a second direction on a horizontal plane are determined according to the target acceleration.

[0153] If the horizontal plane is the plane formed by the X-axis and the Y-axis, the first direction can be the X-axis direction or the Y-axis direction. If the first direction is the X-axis direction, the second direction is the Y-axis direction; if the first direction is the Y-axis direction, the second direction is the X-axis direction. The first ground acceleration can be understood as the component of the target acceleration in the first direction, and the second ground acceleration can be understood as the component of the target acceleration in the second direction.

[0154] In S13 , a first velocity change generated in a first direction during each sampling interval is determined based on the first ground acceleration, and a second velocity change generated in a second direction during each sampling interval is determined based on the second ground acceleration.

[0155] Among them, the sampling interval can be understood as the interval length of the IMU collecting movement status information, for example, it can be the interval length of the gyroscope collecting posture information, or the interval length of the accelerometer collecting the original acceleration in the terminal coordinate system, or the interval length of obtaining the target acceleration.

[0156] In S14, it is determined whether the terminal meets a preset boarding movement condition according to the first speed change amount and the second speed change amount.

[0157] In this step, if the difference between the current moment and the first moment is greater than a preset time threshold, and the absolute value of the accumulated speed change at the current moment is greater than a preset accumulated value threshold, it can be determined that the terminal meets the preset boarding movement condition;

[0158] Among them, the first moment is the moment when the target speed change and the speed change cumulative amount have different signs, the target speed change is the first speed change or the second speed change, when the target speed change is the first speed change, the speed change cumulative amount is the accumulated amount of speed change in the first direction, when the target speed change is the second speed change, the speed change cumulative amount is the accumulated amount of speed change in the second direction.

[0159] For example, if the target acceleration is earth_acc, the first velocity change dvx = dt*earth_acc[0], and the second velocity change dvy = dt*earth_acc[1], where dt is the sampling interval, which can be the target acceleration acquisition interval. Earth_acc[0] represents the component of earth_acc in the X-axis direction, and earth_acc[1] represents the component of earth_acc in the Y-axis direction. If dvx*vx≤0, then vx = dvx, and the current time tx is recorded, that is, the first time is tx; if dvx*vx>0, then vx = vx+dvx. y is processed in the same way as x, that is, if dvy*vy≤0, then vy = dvy, and the current time ty is recorded, that is, the first time is ty; if dvy*vy>0, then vy = vy+dvy. When |vx|>v0 and (t-tx)>t0, or |vy|>v0 and (t-ty)>t0, it can be considered that the data characteristics of the vehicle when accelerating, decelerating, or turning are met, that is, it can be determined that the terminal meets the preset boarding movement condition. It should be noted that v0 can be understood as a preset cumulative amount threshold, t0 can be understood as a preset duration threshold, vx can be understood as the accumulated amount of speed change in the first direction, and vy can be understood as the accumulated amount of speed change in the second direction.

[0160] Step 1013: When the current positioning information does not belong to the preset area location, it is determined that the terminal is in a transportation vehicle boarding state.

[0161] The preset area location may be a ski resort, an amusement park, or other area where false alarms are likely to occur.

[0162] The above technical solution can determine whether the terminal meets the preset riding movement conditions based on the posture information and the original acceleration information in the terminal coordinate system, and can provide a reliable data basis for judging whether a collision occurs.

[0163] Figure 3 is based on Figure 1 The embodiment shown is a flowchart of another collision detection method, as shown in FIG. Figure 3 As shown, Figure 1 Determining the operating state of the vehicle where the terminal is located according to the speed change information of the terminal in step 102 includes:

[0164] Step 1021: When it is determined that the current target acceleration of the terminal in the earth coordinate system is greater than a preset acceleration threshold, a maximum horizontal velocity change within a preset time period is obtained.

[0165] The horizontal velocity variation can be understood as the velocity variation on the horizontal plane (the plane formed by the X-axis and the Y-axis), that is, the vector sum of the velocity variation in the X-axis direction and the velocity variation in the Y-axis direction.

[0166] For example, if the preset duration is the period from t1 to t4, where the horizontal speed change from t1 to t2 is M(dvx1, dvy1), the horizontal speed change from t1 to t3 is N(dvx2, dvy2), and the horizontal speed change from t1 to t4 is L(dvx3, dvy3), |M|>|N|>|L|, then the maximum horizontal speed change within the preset duration is |M|, where |M| is the modulus value corresponding to the vector sum of the speed change in the X-axis direction (dvx1) and the speed change in the Y-axis direction dvy1.

[0167] Step 1022: Determine the operating status of the vehicle where the terminal is located according to the maximum horizontal speed change.

[0168] This step can be implemented by the following steps S21 to S24:

[0169] In S21, the weightlessness duration of the terminal within the preset duration is determined.

[0170] Among them, the preset duration can be a period of time including the current time. The current time can be understood as the moment when it is determined that the target acceleration of the terminal in the earth coordinate system is greater than the preset acceleration threshold. For example, it can be a period of time after the current moment as the starting point, or it can be a period of time before and after the current moment as the midpoint.

[0171] In S22 , a third ground acceleration in a direction perpendicular to the ground is determined according to the target acceleration.

[0172] The third ground acceleration may be understood as a component of the target acceleration in a direction perpendicular to the ground.

[0173] For example, if the target acceleration in the earth coordinate system is a three-dimensional coordinate system formed by the X-axis, Y-axis and Z-axis, the plane formed by the X-axis and the Y-axis is a horizontal plane, which can be approximated as the ground direction, and the Z-axis direction is the vertical upward direction, that is, perpendicular to the ground direction.

[0174] In S23 , a collision angle of the terminal is determined according to the third ground acceleration and the target acceleration.

[0175] In S24, the operating state of the vehicle where the terminal is located is determined according to the collision angle, the weightlessness duration, and the maximum horizontal speed change.

[0176] The implementation process of S24 may include steps S241 to S244:

[0177] S241: Determine a target change threshold value according to the weightlessness duration and the collision angle.

[0178] In some embodiments, when it is determined that the weightlessness duration is greater than or equal to a preset weightlessness duration threshold, the first change threshold is used as the target change threshold.

[0179] In other embodiments, when it is determined that the weightlessness duration is less than a preset weightlessness duration threshold, if the collision angle is greater than or equal to a first angle threshold, the second change threshold is used as the target change threshold, and the second change threshold is less than the first change threshold.

[0180] In some other embodiments, when it is determined that the weightlessness duration is less than a preset weightlessness duration threshold, if the collision angle is less than the first angle threshold and greater than the second angle threshold, the third change threshold is used as the target change threshold.

[0181] In some further embodiments, if the collision angle is less than the second angle threshold, the fourth variation threshold is used as the target variation threshold.

[0182] It should be noted that, in the above embodiment, the third change threshold is smaller than the second change threshold, the first angle threshold is larger than the second angle threshold, and the fourth change threshold is smaller than the third change threshold.

[0183] S242: When the maximum horizontal speed variation is greater than the target variation threshold, determine that the running state of the vehicle where the terminal is located is the collision state.

[0184] For example, the IMU can obtain the normal-range acceleration low_a and gyroscope data low_g, as well as the wide-range accelerometer data high_a. Because high_a has a larger range, it can be used to calculate the target acceleration earth_acc. Low_a, with its higher precision, can be used to determine the terminal's attitude and the duration of weightlessness before a collision.

[0185] After using low_a and low_g to calculate the Game Rotation Vector data (game_rv) representing the terminal's posture information and the weightlessness time t, the target acceleration earth_acc can be calculated based on game_rv and high_a. After obtaining the target acceleration earth_acc, the collision angle θ can be determined based on the target acceleration earth_acc. The calculation formula can be as follows:

[0186] θ=arcsin(earth_acc[2] / norm(earth_acc))

[0187] In the above formula, earth_acc[2] is the acceleration perpendicular to the ground, that is, the third ground acceleration, and norm(earth_acc) is the modulus of the target acceleration earth_acc.

[0188] After obtaining the target acceleration earth_acc, the value of earth_acc can be stored in the ACC buffer, which can store earth_acc values for a preset duration. If the maximum value of the ACC buffer, acc_max, exceeds a1, the maximum horizontal velocity change dv in the buffer is determined through integration. When dv exceeds VA, VA becomes the target change threshold.

[0189] Among them, the determination process of the target change threshold VA can include: when the weightlessness time t≥T1, VA=v1; when the weightlessness time t<T1, continue to judge through the collision angle θ, where when θ>θ1, VA=v2; when θ2≤θ≤θ1, VA=v3; when θ<θ1, VA=v4.

[0190] It should be noted that θ1 is the first angle threshold, θ2 is the second angle threshold, T1 is the preset weightlessness duration threshold, v1 is the first change threshold, v2 is the second change threshold, v3 is the third change threshold, and v4 is the fourth change threshold. In addition, it should be noted that dynamically adjusting the target change threshold here can effectively prevent falls from being falsely reported as collisions. The research process found that the longer the weightlessness time, the greater the probability of a fall, and the larger the collision angle (the angle with the horizontal plane), the greater the probability of a fall. Therefore, setting different target change thresholds for different collision angles can effectively avoid false reports of falls as collisions, thereby effectively improving the accuracy and reliability of collision detection results.

[0191] S241 to S242 can determine the target change threshold according to the weightlessness duration and the collision angle, and determine whether a collision occurs according to the relationship between the maximum horizontal speed change and the target change threshold, which can effectively improve the accuracy and reliability of the collision detection results.

[0192] S243 : Acquire audio data of a specified duration when the maximum horizontal speed variation is less than or equal to the target variation threshold.

[0193] The specified duration may include a time period before the current time or a time period after the current time.

[0194] S244: Determine the operating status of the vehicle where the terminal is located based on the audio data.

[0195] In this S244, a possible implementation method includes: dividing the audio data into frequency bands to obtain sub-band signals of one or more frequency bands; determining the sub-band energy of each sub-band signal; for the sub-band energy of each sub-band signal, when it is determined that the sub-band energy is greater than or equal to a preset energy threshold of the corresponding frequency band, determining the energy peak moment in the audio data, and determining the target duration for attenuating the preset energy value based on the energy peak moment; when the target duration is less than the first duration threshold, determining that the operating status of the vehicle where the terminal is located is the collision state.

[0196] It should be noted that this embodiment can determine that the operating state of the vehicle where the terminal is located is the collision state based on the target duration of attenuating the preset energy value, and can effectively obtain collision detection results through audio data.

[0197] In another possible implementation, when it is determined that the sub-band energy is greater than or equal to the preset energy threshold of the corresponding frequency band, the interval duration between two adjacent energy peaks is determined; when it is determined that the interval duration is less than the second duration threshold, the operating state of the vehicle where the terminal is located is determined to be the collision state.

[0198] This implementation can determine that the operating state of the vehicle where the terminal is located is the collision state based on the interval length between two adjacent energy peaks. It can provide another technical means to obtain collision detection results based on audio data, and can also effectively ensure the accuracy and reliability of the collision detection results.

[0199] Through S243 to S244, audio data of a specified length can be obtained when the maximum horizontal speed change is less than or equal to the target change threshold. This not only makes it possible to detect collisions in combination with audio data and improve the accuracy and reliability of collision detection results, but also avoids continuous audio analysis, thereby effectively saving system resources and reducing terminal power consumption.

[0200] Figure 4 is based on Figure 1 The embodiment shown is a flowchart of another collision detection method, as shown in FIG. Figure 4 As shown, Figure 1 In step 103, in response to the operating state including a collision state, triggering an alarm operation may include:

[0201] Step 1031: When it is determined that the operating state of the vehicle where the terminal is located is the collision state, obtain current positioning information;

[0202] Step 1032: Generate a target distress message based on the current positioning information, and send the target distress message to a preset rescue terminal.

[0203] The target distress message may include data such as preset text, symbols, and images, or may be voice distress data including the current location information. If the target distress message is voice distress data including the current location information, after determining that a call connection has been established between the terminal and the preset rescue end, the target distress message is announced by voice.

[0204] The above technical solution can obtain current positioning information when it is determined that the operating state of the vehicle where the terminal is located is the collision state, thereby avoiding the problem of excessive energy consumption of the terminal caused by continuously obtaining current positioning information. It can also generate a target distress message based on the current positioning information, and after determining that the terminal has established a call connection with the preset rescue terminal, the target distress message is broadcast by voice. This can effectively avoid the phenomenon of missing rescue due to the inability to answer the voice call due to injuries after a collision, thereby further improving the probability of successful rescue.

[0205] Figure 5 is a flowchart of a collision detection method shown in another exemplary embodiment of the present disclosure; Figure 5 As shown, the method includes:

[0206] Step 501: When it is determined that the terminal is in a state of being on a vehicle, speed change information of the terminal and audio data of a specified duration are obtained.

[0207] It should be noted that the implementation method for determining that the terminal is in a transportation vehicle boarding state in this step can refer to the above Figure 2 The relevant description in , will not be repeated in this disclosure.

[0208] Step 502: Determine the operating status of the vehicle where the terminal is located based on the speed change information of the terminal and the audio data.

[0209] Wherein, when the maximum horizontal speed variation within a preset time period is less than or equal to a target variation threshold, the operating status of the vehicle where the terminal is located may be determined based on the audio data.

[0210] It should be noted that the implementation process of determining the maximum horizontal speed change and the target change threshold within the preset time period can refer to the above Figure 3The relevant descriptions in S241 to S242 of the embodiment of the present invention can refer to the implementation process of determining the operating status of the vehicle where the terminal is located according to the audio data. Figure 3 The relevant description in S244 will not be repeated in this disclosure.

[0211] The above technical solution can obtain audio data of a specified length when the maximum horizontal speed change is less than or equal to the target change threshold, thereby not only being able to detect collisions in combination with audio data and improve the accuracy and reliability of collision detection results, but also being able to avoid continuous audio analysis, thereby effectively saving system resources and reducing terminal power consumption.

[0212] Figure 6 It is a software architecture block diagram of an electronic device according to an embodiment of the present disclosure. The software architecture can be run on an AP (Application Processor). The software architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into layers, which are, from top to bottom, the application layer (applications), the application framework layer (applicationframework), the Android runtime (Android Runtime) module and the system library, and the kernel layer (kernel). Among them, the system library includes a hardware abstraction layer (HAL). The HAL layer is an interface layer between the operating system kernel and the hardware circuit.

[0213] The application layer may include a series of application packages. For example, the application layer may include applications such as an application with a traffic accident warning service, navigation, and a warning UI, and the present disclosure does not impose any restrictions on this.

[0214] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions. For example, the application framework layer may include a sensor service module, an audio service module, etc., which is not limited in the present embodiment.

[0215] In this disclosure, the HAL layer in the system library provides interfaces for implementing various collision detection functions, such as audio recording, vehicle occupancy status detection, and collision detection. The kernel layer is the layer between hardware and software. It includes at least sensor drivers and audio recording drivers.

[0216] In the present disclosure, the collision warning service in the application layer can detect whether a collision occurs while the user is driving, and issue a reminder or initiate a call for help when a collision is detected. The collision warning service is closed by default. After the function is turned on, the application starts the collision detection service, registers the sensor monitoring of the vehicle riding status, and registers the sensor monitoring of the collision status detection after receiving the event of being in the vehicle riding status, and opens a low-power audio buffer in the ADSP through the interface for rolling recording of mic data. When it is determined that a collision occurs, the upper layer triggers the Framework layer audio detection and recognition through the interface. When it is identified as a collision, the upper layer issues a reminder or initiates a call for help and executes the help logic.

[0217] It should be noted that although the embodiments of the present application are described using the Android system as an example, its basic principles are also applicable to electronic devices based on operating systems such as IOS or Windows.

[0218] The execution subject of the collision detection provided by the embodiment of the present disclosure can be the above-mentioned electronic device, or it can be a functional module and / or functional entity in the electronic device that can implement collision detection, and the disclosed solution can be implemented through hardware and / or software. The specific implementation can be determined according to actual usage requirements and is not limited by the embodiments of the present application.

[0219] Figure 7 : is a block diagram of a collision detection device according to an exemplary embodiment of the present disclosure, the collision detection device comprising:

[0220] The first determining module 701 is configured to obtain speed change information of the terminal when determining that the terminal is in a transportation vehicle boarding state;

[0221] The running state determining module 702 is configured to determine the running state of the vehicle where the terminal is located according to the speed change information of the terminal;

[0222] The alarm module 703 is configured to trigger an alarm operation in response to the operating state including a collision state.

[0223] The above technical solution can not only determine whether the terminal is in a state of riding a vehicle, but also, when it is determined that the terminal is in a state of riding a vehicle, determine whether the operating state of the vehicle where the terminal is located is a collision state based on the speed change information of the terminal. It can timely and effectively detect whether a vehicle has collided, thereby providing a reliable data basis for timely and effective rescue, which is conducive to further protecting the personal safety of terminal users when riding vehicles.

[0224] In some embodiments, the first determining module 701 is configured to:

[0225] Acquiring mobile status information of the terminal;

[0226] When it is determined according to the movement status information that the terminal meets the preset boarding movement condition, obtaining the current positioning information of the terminal;

[0227] When the current positioning information does not belong to a preset area position, it is determined that the terminal is in a transportation boarding state.

[0228] In some embodiments, the movement status information includes posture information and original acceleration information in the terminal coordinate system; the first determination module 701 is configured to:

[0229] Determining a target acceleration in an earth coordinate system according to the posture information and the original acceleration information;

[0230] determining a first ground acceleration in a first direction and a second ground acceleration in a second direction on a horizontal plane according to the target acceleration;

[0231] Determine a first velocity change in a first direction during each sampling interval based on the first ground acceleration, and determine a second velocity change in a second direction during each sampling interval based on the second ground acceleration;

[0232] It is determined whether the terminal meets a preset boarding movement condition according to the first speed change amount and the second speed change amount.

[0233] In some embodiments, the first determining module 701 is configured to:

[0234] When the difference between the current moment and the first moment is greater than the preset time threshold, and the absolute value of the accumulated speed change at the current moment is greater than the preset accumulated value threshold, it is determined that the terminal meets the preset boarding movement condition;

[0235] Among them, the first moment is the moment when the target speed change and the speed change cumulative amount have different signs, the target speed change is the first speed change or the second speed change, when the target speed change is the first speed change, the speed change cumulative amount is the accumulated amount of speed change in the first direction, when the target speed change is the second speed change, the speed change cumulative amount is the accumulated amount of speed change in the second direction.

[0236] In some embodiments, the second operating state determination module 702 is configured to:

[0237] When it is determined that the current target acceleration of the terminal in the earth coordinate system is greater than a preset acceleration threshold, obtaining a maximum horizontal velocity change within a preset time period;

[0238] The operating state of the vehicle where the terminal is located is determined according to the maximum horizontal speed change.

[0239] In some embodiments, the operating status determination module 702 is configured to:

[0240] Determining a weightlessness duration of the terminal within the preset duration;

[0241] determining a third ground acceleration in a direction perpendicular to the ground according to the target acceleration;

[0242] determining a collision angle of the terminal according to the third ground acceleration and the target acceleration;

[0243] The operating state of the vehicle where the terminal is located is determined according to the collision angle, the weightlessness duration, and the maximum horizontal speed change.

[0244] In some embodiments, the operating status determination module 702 is configured to:

[0245] Determining a target change threshold value according to the weightlessness duration and the collision angle;

[0246] When the maximum horizontal speed variation is greater than the target variation threshold, it is determined that the running state of the vehicle where the terminal is located is the collision state.

[0247] In some embodiments, the operating status determination module 702 is configured to:

[0248] When it is determined that the weightlessness duration is greater than or equal to the preset weightlessness duration threshold, the first change threshold is used as the target change threshold;

[0249] When it is determined that the weightlessness duration is less than the preset weightlessness duration threshold, if the collision angle is greater than or equal to the first angle threshold, using a second change threshold as the target change threshold, and the second change threshold is less than the first change threshold;

[0250] If the collision angle is smaller than the first angle threshold and larger than the second angle threshold, a third variation threshold is used as the target variation threshold, the third variation threshold is smaller than the second variation threshold, and the first angle threshold is larger than the second angle threshold.

[0251] Figure 7 According to this disclosure Figure 6The embodiment shown is a block diagram of a collision detection device, and the device may also include:

[0252] An acquisition module 704 is configured to acquire audio data of a specified duration;

[0253] The second determining module 705 is configured to determine the operating status of the vehicle where the terminal is located according to the speed change information of the terminal and the audio data.

[0254] In some embodiments, the second determination module 705 is configured to determine the operating status of the vehicle where the terminal is located based on the audio data when the maximum horizontal speed change is less than or equal to the target change threshold.

[0255] In some embodiments, the second determining module 705 is configured to:

[0256] Dividing the audio data into frequency bands to obtain sub-band signals of one or more frequency bands;

[0257] determining a sub-band energy of each of the sub-band signals;

[0258] For each subband signal, if the subband energy is determined to be greater than or equal to a preset energy threshold for the corresponding frequency band, determining a peak energy moment in the audio data, and determining a target duration for attenuating the preset energy value based on the peak energy moment;

[0259] When the target duration is less than the first duration threshold, it is determined that the operating state of the vehicle where the terminal is located is the collision state.

[0260] In some embodiments, the second determining module 705 is further configured to:

[0261] When it is determined that the sub-band energy is greater than or equal to a preset energy threshold of the corresponding frequency band, determining the interval between two adjacent energy peaks;

[0262] When it is determined that the interval duration is less than the second duration threshold, it is determined that the operating state of the vehicle where the terminal is located is the collision state.

[0263] In some embodiments, the alarm module 703 is configured to:

[0264] When it is determined that the operating state of the vehicle where the terminal is located is the collision state, obtaining current positioning information;

[0265] Generate a target distress message according to the current positioning information, and send the target distress message to a preset rescue terminal.

[0266] In some embodiments, the target distress information is voice distress data including the current location information; the alarm module 703 is configured to:

[0267] After determining that the terminal has established a call connection with the preset rescue end, the target rescue information is broadcasted by voice.

[0268] The above technical solution can not only determine whether the terminal is in a state of riding a vehicle, but also, when it is determined that the terminal is in a state of riding a vehicle, determine whether the operating state of the vehicle where the terminal is located is a collision state based on the speed change information of the terminal. It can timely and effectively detect whether a vehicle has collided, thereby providing a reliable data basis for timely and effective rescue, which is conducive to further protecting the personal safety of terminal users when riding vehicles.

[0269] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0270] The present disclosure also provides a computer-readable storage medium having computer program instructions stored thereon, which implement the steps of the collision detection method provided by the present disclosure when the program instructions are executed by a processor.

[0271] Figure 8 800 is a block diagram of an apparatus for collision detection according to an exemplary embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0272] Reference Figure 8 , the apparatus 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output interface 812 , a sensor component 814 , and a communication component 816 .

[0273] Processing component 802 generally controls the overall operation of device 800, such as operations associated with display, phone calls, data communications, camera operation, and recording operations. Processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the collision detection method described above. Furthermore, processing component 802 may include one or more modules to facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.

[0274] The memory 804 is configured to store various types of data to support the operations of the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.

[0275] The power supply component 806 provides power to the various components of the device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device 800.

[0276] The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.

[0277] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), which is configured to receive external audio signals when the device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0278] The input / output interface 812 provides an interface between the processing component 802 and peripheral interface modules, such as a keyboard, a click wheel, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0279] The sensor assembly 814 includes one or more sensors for providing various aspects of the status assessment of the device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800. The sensor assembly 814 can also detect changes in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800, and temperature changes of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0280] The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0281] In an exemplary embodiment, the apparatus 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above-described collision detection method.

[0282] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the device 800 to perform the above-mentioned collision detection method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0283] In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program executable by a programmable device, and has a code portion for performing the above-mentioned collision detection method when executed by the programmable device.

[0284] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the appended claims.

[0285] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A collision detection method, characterized in that: The method comprises: When it is determined that the terminal is in a transportation vehicle boarding state, obtaining speed change information of the terminal; determining the operating state of the vehicle where the terminal is located according to the speed change information of the terminal; In response to the operating state including a collision state, an alarm operation is triggered.

2. The method according to claim 1, characterized in that Determine that the terminal is in a transportation boarding state, including: Acquiring mobile status information of the terminal; When it is determined according to the movement status information that the terminal meets the preset boarding movement condition, obtaining the current positioning information of the terminal; When the current positioning information does not belong to a preset area position, it is determined that the terminal is in a transportation boarding state.

3. The method according to claim 2, characterized in that The movement status information includes posture information and original acceleration information in the terminal coordinate system; Determining, according to the movement status information, that the terminal meets a preset boarding movement condition includes: Determining a target acceleration in an earth coordinate system according to the posture information and the original acceleration information; determining a first ground acceleration in a first direction and a second ground acceleration in a second direction on a horizontal plane according to the target acceleration; Determine a first velocity change in a first direction during each sampling interval based on the first ground acceleration, and determine a second velocity change in a second direction during each sampling interval based on the second ground acceleration; It is determined whether the terminal meets a preset boarding movement condition according to the first speed change amount and the second speed change amount.

4. The method according to claim 3, characterized in that The determining whether the terminal satisfies a preset boarding movement condition according to the first speed change and the second speed change includes: When the difference between the current moment and the first moment is greater than the preset time threshold, and the absolute value of the accumulated speed change at the current moment is greater than the preset accumulated value threshold, it is determined that the terminal meets the preset boarding movement condition; Among them, the first moment is the moment when the target speed change and the speed change cumulative amount have different signs, the target speed change is the first speed change or the second speed change, when the target speed change is the first speed change, the speed change cumulative amount is the accumulated amount of speed change in the first direction, when the target speed change is the second speed change, the speed change cumulative amount is the accumulated amount of speed change in the second direction.

5. The method according to claim 1, wherein The determining, based on the speed change information of the terminal, the operating state of the vehicle where the terminal is located, includes: When it is determined that the current target acceleration of the terminal in the earth coordinate system is greater than a preset acceleration threshold, obtaining a maximum horizontal velocity change within a preset time period; The operating state of the vehicle where the terminal is located is determined according to the maximum horizontal speed change.

6. The method according to claim 5, characterized in that The determining, based on the maximum horizontal speed change, the operating state of the vehicle where the terminal is located, includes: Determining a weightlessness duration of the terminal within the preset duration; determining a third ground acceleration in a direction perpendicular to the ground according to the target acceleration; determining a collision angle of the terminal according to the third ground acceleration and the target acceleration; The operating state of the vehicle where the terminal is located is determined according to the collision angle, the weightlessness duration, and the maximum horizontal speed change.

7. The method according to claim 6, characterized in that The determining the operating state of the vehicle where the terminal is located according to the collision angle, the weightlessness duration, and the maximum horizontal speed change includes: Determining a target change threshold value according to the weightlessness duration and the collision angle; When the maximum horizontal speed variation is greater than the target variation threshold, it is determined that the running state of the vehicle where the terminal is located is the collision state.

8. The method according to claim 7, characterized in that The determining of the target change threshold according to the weightlessness duration and the collision angle includes: When it is determined that the weightlessness duration is greater than or equal to the preset weightlessness duration threshold, the first change threshold is used as the target change threshold; When it is determined that the weightlessness duration is less than the preset weightlessness duration threshold, if the collision angle is greater than or equal to the first angle threshold, using a second change threshold as the target change threshold, and the second change threshold is less than the first change threshold; If the collision angle is less than the first angle threshold and greater than the second angle threshold, using a third variation threshold as the target variation threshold, the third variation threshold is less than the second variation threshold, and the first angle threshold is greater than the second angle threshold; If the collision angle is smaller than the second angle threshold, a fourth variation threshold is used as the target variation threshold, and the fourth variation threshold is smaller than the third variation threshold.

9. The method according to claim 1, characterized in that The method further comprises: Get audio data of specified duration; The operating status of the vehicle where the terminal is located is determined according to the speed change information of the terminal and the audio data.

10. The method according to claim 9, characterized in that The determining, based on the speed change information of the terminal and the audio data, the operating state of the vehicle where the terminal is located includes: When the maximum horizontal speed variation within the preset time period is less than or equal to the target variation threshold, the operating state of the vehicle where the terminal is located is determined according to the audio data.

11. The method according to claim 10, characterized in that The determining, based on the audio data, the operating status of the vehicle where the terminal is located, includes: Dividing the audio data into frequency bands to obtain sub-band signals of one or more frequency bands; determining a sub-band energy of each of the sub-band signals; For each subband signal, if the subband energy is determined to be greater than or equal to a preset energy threshold for the corresponding frequency band, determining a peak energy moment in the audio data, and determining a target duration for attenuating the preset energy value based on the peak energy moment; When the target duration is less than the first duration threshold, it is determined that the operating state of the vehicle where the terminal is located is the collision state.

12. The method according to claim 11, characterized in that The determining the operating status of the vehicle where the terminal is located according to the audio data further includes: When it is determined that the sub-band energy is greater than or equal to a preset energy threshold of the corresponding frequency band, determining the interval between two adjacent energy peaks; When it is determined that the interval duration is less than the second duration threshold, it is determined that the operating state of the vehicle where the terminal is located is the collision state.

13. The method according to claim 1, wherein The triggering of an alarm operation in response to the operating state including a collision state comprises: When it is determined that the operating state of the vehicle where the terminal is located is the collision state, obtaining current positioning information; Generate a target distress message according to the current positioning information, and send the target distress message to a preset rescue terminal.

14. The method according to claim 13, characterized in that The target distress information is voice distress data including the current positioning information; Sending the target distress information to a preset rescue terminal includes: After determining that the terminal has established a call connection with the preset rescue end, the target rescue information is broadcasted by voice.

15. A collision detection device, characterized in that: The device comprises: A first determining module is configured to obtain speed change information of the terminal when determining that the terminal is in a transportation vehicle boarding state; an operating state determining module, configured to determine the operating state of the vehicle where the terminal is located according to the speed change information of the terminal; The alarm module is configured to trigger an alarm operation in response to the operating state including a collision state.

16. A collision detection device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the steps of the method according to any one of claims 1 to 14.

17. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 14 are implemented.

18. A computer program product, characterized in that The invention comprises a computer program, which implements the steps of the method according to any one of claims 1 to 14 when executed by a processor.