Safety control method of vehicle, electronic device and vehicle
By acquiring user status and location information on the vehicle, and combining map information with user heart rate and walking patterns to assess the user's overall status, a status scoring method is used for safety control. This solves the problem of inaccurate drunk driving detection in existing technologies, and enables the automatic provision of chauffeur services, ensuring driving safety and user experience.
Patent Information
- Application Number
- CN202510305688.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-14
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2045-03-14
AI Technical Summary
In existing technologies, alcohol detection relies on the driver's subjective cooperation, which leads to inaccurate test results and makes it difficult to provide timely and effective safe driving services, thus failing to effectively prevent drunk driving.
By acquiring the user's status information and current location in the vehicle, combining it with map information to determine the target location set, assessing the user's overall status based on the user's heart rate and walking pattern, using a status scoring method for safety control, and automatically asking the user if they need a designated driver service.
It enables accurate determination of whether a user has been drinking alcohol without the user's active cooperation, and automatically provides a designated driver service to ensure driving safety, thereby improving the accuracy of the test results and the user experience.
Smart Images

Figure CN120003499B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of vehicles, in particular to a safety control method of a vehicle, an electronic device and a vehicle. BACKGROUND
[0002] In modern society, motor vehicles have become an essential tool for daily travel, but drunk driving has always been an important hidden danger for traffic safety. Drunk driving not only endangers the safety of the driver himself, but also seriously threatens the safety of other road users, so there is an urgent need for a method for detecting drunk driving at the vehicle end. SUMMARY
[0003] Therefore, the purpose of the present application is to provide a safety control method of a vehicle, an electronic device and a vehicle, which can detect drunk driving at the vehicle end and avoid drunk driving at the vehicle end through safety control.
[0004] To achieve the above purpose, the present application provides a safety control method of a vehicle, comprising:
[0005] Obtaining state information of a user and a current position of a vehicle, determining a target place set according to the current position and map information;
[0006] Determining a current state of the user according to the user state information and historical state information, and determining a current walking mode of the user according to current walking data and historical walking data of the user;
[0007] Determining a state score of the user according to the target place set, the current state and the current walking mode, and performing safety control according to the state score.
[0008] Optionally, the step of determining the target place set according to the current position and map information comprises:
[0009] Determining positioning coordinates of each target place according to the map information to obtain a target place database;
[0010] Determining a query range according to the current position, and screening the target place database according to the query range to obtain the target place set.
[0011] By determining the target place set, it is determined whether there is a target place that causes the user to drink near the user, and whether to drink is evaluated in the environmental dimension, so as to improve the accuracy of the evaluation result.
[0012] Optionally, the step of determining the current state of the user according to the user state information and historical state information comprises:
[0013] Determining a valid heart rate data set of the user according to the user state information and a preset data interception time length;
[0014] determine a standard mean heart rate according to the historical state information;
[0015] determine the current state according to the standard mean heart rate and the valid heart rate data set.
[0016] After the user drinks, alcohol will dilate blood vessels, accelerate blood circulation, and stimulate sympathetic nerve excitement, which will cause the heart rate to accelerate and the heart rate to increase, so the user's drinking can be evaluated from the heart rate state dimension, combined with the evaluation of the environment dimension, to improve the accuracy of the judgment result.
[0017] Optionally, the determining the current state according to the standard heart rate value and the valid heart rate data set comprises:
[0018] determining a current mean heart rate and a heart rate standard deviation according to the valid heart rate data set, and determining a heart rate stability coefficient as a ratio of the current mean heart rate to the standard mean heart rate;
[0019] in response to the current mean heart rate being within a preset heart rate range and the heart rate standard deviation being less than or equal to a preset standard deviation threshold, determining that the heart rate fluctuation condition is met;
[0020] in response to the current mean heart rate not being within the preset heart rate range and / or the heart rate standard deviation being greater than the preset standard deviation threshold, determining that the heart rate fluctuation condition is not met;
[0021] determining whether a heart rate stability condition is met according to the heart rate stability coefficient and a preset heart rate coefficient threshold;
[0022] in response to the heart rate fluctuation condition and the heart rate stability condition being met simultaneously, determining that the current state is an abnormal state;
[0023] or, in response to the heart rate fluctuation condition not being met or the heart rate stability condition not being met, determining that the current state is a normal state.
[0024] The current mean heart rate represents the current user's overall heart rate level, which is used to measure whether the user's heart rate exceeds the normal standard. The heart rate standard deviation represents the user's heart rate fluctuation, which is used to exclude the accuracy of the user's drinking judgment under other conditions such as exercise, so the current mean heart rate and the heart rate standard deviation are used to verify each other to ensure the accuracy of the heart rate fluctuation condition evaluation.
[0025] Because different physiological differences of different users, only the average heart rate to make heart rate stability condition judgment may lead to misjudgment, so further need to be checked and evaluated, the checking and evaluating process needs to calculate the ratio of the current average heart rate and the standard average heart rate, and the ratio is determined as the heart rate stability coefficient, which is used to represent the difference degree of the current heart rate and the standard average heart rate of the user in normal state, then the heart rate stability coefficient can be directly evaluated by using the heart rate coefficient threshold to determine whether the heart rate stability condition is met.
[0026] The current state is comprehensively evaluated in combination with the heart rate fluctuation condition and the heart rate stability condition, thereby improving the accuracy of the current state evaluation.
[0027] Optionally, the current walking mode of the user is determined according to the current walking data and the historical walking data of the user, comprising:
[0028] The step frequency variation coefficient and the current gait stability coefficient of the user are determined according to the current walking data.
[0029] The standard gait stability coefficient is determined according to the historical walking data.
[0030] The current walking mode is determined according to the step frequency variation coefficient, the standard gait stability coefficient and the current gait stability coefficient.
[0031] Because alcohol can also reduce the user's control ability of the body, leading to the change of the user's walking mode, the judgment of whether the user drinks can also be made from the dimension of the walking mode, thereby improving the accuracy of the drinking judgment by increasing the judgment dimension.
[0032] Optionally, the current walking mode is determined according to the step frequency variation coefficient, the standard gait stability coefficient and the current gait stability coefficient, comprising:
[0033] The ratio of the current gait stability coefficient and the standard gait stability coefficient is determined as a gait stability coefficient.
[0034] Whether the gait stability condition is met is determined according to the gait stability coefficient and a preset stability coefficient threshold.
[0035] Whether the step frequency stability condition is met is determined according to a preset step frequency coefficient range and the step frequency variation coefficient.
[0036] In response to the fact that the step frequency stability condition and the gait stability condition are met at the same time, the current walking mode is determined as an abnormal walking mode.
[0037] Or, in response to the fact that the step frequency stability condition is not met or the gait stability condition is not met, the current walking mode is determined as a normal walking mode.
[0038] The similarity degree of the gait and the step frequency of the user at this time and the gait and the step frequency of the user when drinking is determined by judging the step frequency stability condition and the gait stability condition, and then the drinking evaluation of the walking mode dimension is realized. The similarity degree of the overall state of the user and the overall state after drinking is determined by determining the current state and the current walking mode, the evaluation of the user's overall state is realized by combining the evaluation of the heart rate state dimension and the walking mode dimension of the user, and the accuracy of the determination of the user's drinking state is improved.
[0039] Optionally, the state score of the user is determined according to the target place set, the current state and the current walking mode, comprising:
[0040] The position integral is determined according to the set type of the target place set;
[0041] The walking integral is determined according to the mode type of the current walking mode;
[0042] The heart rate integral is determined according to the state type of the current state;
[0043] The sum of the heart rate integral, the walking integral and the position integral is determined as the state score.
[0044] After the evaluation of multiple dimensions is performed, the evaluation results of multiple dimensions need to be combined for comprehensive evaluation, the sum of the scores of the three evaluation dimensions is determined as the state score, which is used for evaluating the total score of the user's drinking state, the higher the state score is, the higher the probability of the user's drinking is, the evaluation of different dimensions is fused by the scoring method, and the accuracy of the evaluation is improved.
[0045] Optionally, the safety control according to the state score comprises:
[0046] In response to the state score being greater than or equal to a preset score threshold, the vehicle host or the mobile terminal is controlled to perform a driving service inquiry, a driving request information is sent according to the selection operation of the user, and state abnormal information is sent to a preset associated device.
[0047] When the state score is greater than or equal to a preset score threshold, it indicates that the user has parked the vehicle near the target site, and at least one of the user's walking or heart rate has an abnormality similar to drinking, so that the user has a high probability of drinking behavior, and at this time, the vehicle host or the mobile terminal needs to be controlled to perform a driving service inquiry. If the user agrees to find a driver, a driving request information is sent to find a driver to help the user drive, so as to avoid drunk driving. Through the process of adding user selection, when a false judgment occurs, the user can actively terminate the false judgment, thereby avoiding affecting the user experience. Meanwhile, the cost information is sent to a preset associated device (for example, a mobile terminal of an emergency contact), so that the emergency contact can know the state of the user, and the legal rights and interests of the user are protected in the event of a driving dispute, and the safety of the user is ensured.
[0048] Based on the same inventive concept, the present disclosure further provides an electronic device including a memory, a processor, and a computer program stored on the memory and executable by the processor, wherein the processor implements the method as described above when executing the computer program.
[0049] Based on the same inventive concept, the present disclosure further provides a vehicle including the electronic device as described above.
[0050] As can be seen from the above, the vehicle safety control method, the electronic device and the vehicle provided by the present application, by acquiring the state information of the user and the current position of the vehicle, determining a target site set according to the current position and the map information; determining the target site existing around the user which causes the user to drink, and preliminarily judging the life pattern of the user in a short time. Then, by determining the current state and the current walking pattern of the user, the walking pattern and the body state of the user are evaluated, the overall state of the user is evaluated, the probability of the user drinking is determined by evaluating the overall state of the user. Finally, the drinking state of the user is evaluated by fusing the target site set, the current state and the current walking pattern, and the evaluation result of the drinking state is determined by the state score, and the safety control is performed according to the state score, so as to ensure that the vehicle is not driven when it is determined that the user is in the drinking state, and the driving safety is ensured. The detection process does not require the user to actively cooperate with the detection, so as to ensure the accuracy of the detection result and the comfort of the user in the use process. BRIEF DESCRIPTION OF DRAWINGS
[0051] In order to more clearly illustrate the technical solutions in the present application or related art, the following will briefly introduce the drawings needed to be used in the embodiments or related art descriptions. Obviously, the drawings in the following description are only embodiments of the present application, and those skilled in the art can obtain other drawings according to these drawings without creating any inventive labor.
[0052] Figure 1 Flow chart of a safety control method for a vehicle according to an embodiment of the present application;
[0053] Figure 2 Flow chart of determining a target site set according to an embodiment of the present application;
[0054] Figure 3 Flow chart of determining a current state of a user according to an embodiment of the present application;
[0055] Figure 4 Flow chart of determining a current walking mode of a user according to an embodiment of the present application;
[0056] Figure 5 Flow chart of determining a state score of a user according to an embodiment of the present application;
[0057] Figure 6 Structural schematic diagram of a safety control device for a vehicle according to an embodiment of the present application;
[0058] Figure 7 Structural schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0059] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the drawings and specific embodiments.
[0060] It should be noted that, unless otherwise defined, technical terms or scientific terms used in the embodiments of the present application should be understood as their common meanings to those skilled in the art to which the present application pertains. The terms “first”, “second” and similar terms used in the embodiments of the present application do not represent any order, number or importance, but are only used to distinguish different components. The terms “include” or “contain” and similar terms mean that the elements or objects before the terms encompass the elements or objects listed after the terms and their equivalents, without excluding other elements or objects. The terms “connect” or “connected” and similar terms do not mean physical or mechanical connection, but can include electrical connection, whether direct or indirect. The terms “upper”, “lower”, “left”, “right” and the like only represent relative positional relationships, which can change accordingly when the absolute positions of the described objects change.
[0061] In this document, it should be understood that any number of elements in the drawings is used for illustration only and not limitation, and any naming is only for distinction and does not have any limiting meaning.
[0062] Based on the above description of the background art, there are also the following situations in the related art:
[0063] In real life, drunk driving and drunk driving are divided by alcohol concentration. When the alcohol content in the blood of the vehicle driver is between 20mg per 100ml and 80mg per 100ml, it is considered to be drunk driving, also commonly referred to as drunk driving. If the alcohol content in the blood of the vehicle driver reaches or exceeds 80mg per 100ml, it is considered to be drunk driving, commonly known as drunk driving. The difference between the two is the threshold of alcohol content, but whether it is drunk driving or drunk driving, it is a violation of traffic regulations and will seriously affect the judgment and reaction ability of the driver, thereby increasing the risk of traffic accidents.
[0064] Hazards of drunk driving and drunk driving:
[0065] Impaired vision: After drinking, the user's vision will be affected, color perception and visual ability will decrease, vision will be unstable, color discrimination will decrease, traffic signals, signs and markings cannot be discovered and correctly understood, the field of view will be greatly reduced, the vision will be blurred, the eyes will only focus on the front target, and it will be difficult to discover the hidden dangers in the edge of the field of view, and the retinal imaging will become unstable, resulting in decreased recognition ability. This is more obvious at night when the vision is weak, increasing the risk of traffic accidents.
[0066] Reduced control ability: Alcohol will numb the user's nervous system, reducing judgment and operation ability, and prolonging the reaction time to light and sound stimuli. The time of instinctive reflex action will also be prolonged, making the user's reaction speed slow, operation not smooth, and even possible error operation, thereby causing traffic accidents.
[0067] Decreased judgment: After drinking, the user's judgment will be severely affected. For example, walking unsteadily but insisting that he is walking in a straight line reflects the profound impact of alcohol on judgment. When driving, judgment is crucial because we need to make judgments and take measures in real time according to road conditions. However, after drinking, the reaction is slow, the coordination between sensory organs and motor organs such as eyes, hands and feet is impaired, it is difficult to correctly judge distance and speed, and thus traffic accidents occur.
[0068] Susceptible to fatigue: The harm of drunkenness to the human body cannot be ignored. In order to protect various organs, the human body will gradually enter a resting state to expel alcohol. Therefore, it is easy to feel tired after drinking, which poses a threat to driving safety.
[0069] Drunk driving or drunk driving not only harms individuals, but also has a wide impact on society. From an individual perspective, it can cause serious physical injury or even death; from a social perspective, it disrupts normal traffic order, threatens public safety, and may even trigger a series of chain reactions such as traffic accidents, road congestion, etc.
[0070] Measures to prevent drunk driving mainly rely on the self-consciousness of the driver and the constraints of laws and regulations, but in actual life, due to the driver's misjudgment of his own drinking state, the discovery and punishment of illegal behavior are lagging behind, leading to frequent drunk driving accidents. In addition, for the driver's need for safe chauffeur service after drinking, although there are chauffeur services in the market, there is a lack of systematic and intelligent solutions, which is difficult to provide timely and effective services when the driver needs them and to ensure the safe transmission of information.
[0071] Among them, the control of drunk driving completely depends on the traffic management department, which generally checks vehicles at random and can only be applied to part of the vehicles, while drunk driving has the characteristics of randomness and dispersion. To solve the above problems, in the related technology, an online drunk driving detection system is installed on the vehicle to reduce the occurrence of drunk driving. The online drunk driving detection system is generally realized by alcohol detection principle, for example, using a gas sensor that can convert chemical signals into electrical signals different from processing to realize the detection and identification of the exhaled gas of the driver after drinking. However, if the user is really in a drinking state, he may evade the detection of the detection system, and the installation position of the gas sensor will also greatly affect the accuracy of the detection, so this detection method relying on the user's subjective action cannot obtain accurate detection results. Therefore, there is an urgent need for a control strategy that can intelligently identify the drinking state of the driver and provide instant safe chauffeur service.
[0072] The vehicle safety control method, electronic device and vehicle provided by the embodiments of the present application obtain the state information of the user and the current position of the vehicle, determine a target place set according to the current position and map information, determine the target place existing around the user that causes the user to drink, and preliminarily judge the life pattern of the user in a short time. Then, the current state and the current walking pattern of the user are determined to evaluate the walking pattern and the body state of the user, realize the evaluation of the overall state of the user, determine the probability of the user drinking through the evaluation of the overall state of the user. Finally, the drinking state of the user is evaluated by fusing the target place set, the current state and the current walking pattern, the evaluation result of the drinking state is determined through the state score, and the safety control is performed according to the state score, so as to ensure that the vehicle will not be driven when it is determined that the user is in a drinking state, ensure the safety of driving, and the whole detection process does not need the user to actively act to cooperate with the detection, which ensures the accuracy of the detection result and the comfort of the user in the use process.
[0073] The vehicle safety control method provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0074] In some embodiments, as shown in Figure 1 The vehicle safety control method comprises:
[0075] Step 101: Obtain the state information of the user and the current location of the vehicle, and determine a target site set according to the current location and map information.
[0076] In a specific implementation, the state information of the user can be obtained by a biological sensor such as a smart watch, and the state information of the user includes heart rate data of the user. Because people will have an accelerated heartbeat after drinking, on the one hand, alcohol will dilate blood vessels and accelerate blood circulation, and also to decompose alcohol faster, which will cause the heartbeat to accelerate; on the other hand, alcohol will also stimulate sympathetic nerve excitement, which will also cause the heartbeat to accelerate.
[0077] Therefore, the number of beats per minute (BPM), also known as heart rate, can be used as one of the indicators for measuring whether the user is drinking, because the heart rate is the number of heartbeats per minute in a normal person in a quiet state, also known as the resting heart rate, which is generally 60-100 times per minute, and can vary from person to person due to age, gender, or other physiological factors. Generally speaking, the younger the age, the faster the heart rate, and the heart rate of the elderly is slower than that of young people, and the heart rate of women is faster than that of men of the same age, which are all normal physiological phenomena. The normal heart rate of an adult in a quiet state is 60-100 times per minute, and the ideal heart rate should be 55-70 times per minute. If the heart rate of an adult in a quiet state exceeds 100 times per minute (generally not more than 160 times per minute), it is called sinus tachycardia, which is commonly seen in excitement, agitation, smoking, drinking, drinking strong tea or coffee, or in pathological conditions such as infection, fever, shock, anemia, hypoxia, hyperthyroidism, heart failure, or after taking drugs such as atropine, epinephrine, and ephedrine. Therefore, 100 times per minute can be used as a measurement condition for whether the user is drinking.
[0078] The current location of the vehicle can be determined by the vehicle-mounted GPS or the GPS of the mobile terminal bound to the vehicle. The vehicle-mounted GPS receives satellite signals and transmits the WeChat signals to the corresponding vehicle server to obtain the current location of the vehicle. The current location is generally a latitude and longitude coordinate.
[0079] After the current location is determined, the current scene in which the user is located can be determined according to the current location and map information. Since the places where the user drinks include but are not limited to restaurants, bars, and other places, the places where the user is most likely to drink, such as restaurants and bars, are determined as target sites, and then the target sites are marked in the map information to obtain the positioning coordinates of the target sites. The marked positioning coordinates are integrated to obtain a target site database.
[0080] Then, the query range is determined according to the current location, and the target site database is filtered according to the query range to obtain a target site set. The query range is a range framed by a certain geometric shape with the current location as the geometric center. The target sites within the query range are filtered out to obtain the target site database.
[0081] Exemplarily, the query range can be a circular area with the current position O as the center and 1 kilometer as the radius, if the target site database includes four target sites A, B, C and D, if the distance OA between site A and the current position is 500 meters, the distance OA between site B and the current position is 100 meters, the distance OC between site C and the current position is 750 meters, and the distance OD between site D and the current position is 1500 meters. Then, site A, site B and site C are within the query range, and site D is outside the query range, so the target site database is filtered according to the query range, and then site A, site B and site C are filtered out. The target site set includes site A, site B and site C. Because the high-probability drinking site close to the vehicle, the user can go to the drinking site for drinking, so the probability of user drinking is improved at this time, and the probability of user drinking is improved, so the target site set can be used as one of the indicators for measuring whether the user drinks. However, the existence of a place around the vehicle where alcohol can be drunk does not mean that the user actually has a drinking behavior, and further comprehensive evaluation needs to be combined with the user dimension to improve accuracy.
[0082] Step 102: determining the current state of the user according to the user state information and the historical state information, and determining the current walking mode of the user according to the current walking data and the historical walking data of the user.
[0083] In a specific implementation, determining the target site set is to evaluate whether the user has a drinking behavior from the environmental point of view, but it is too one-sided to evaluate whether the user drinks only from the environmental point of view, so it is necessary to further evaluate the drinking state of the user in combination with the overall state of the user. Since the heart rate representing the user state information varies due to the different physical conditions of the user, the current state of the user needs to be determined in combination with the historical state information when evaluating the drinking according to the user state information, wherein the user state information includes real-time heart rate data of the user.
[0084] Firstly, the user state information is the real-time heart rate data of the user, but if all the heart rate data is used for evaluation, the data volume is too large, and there is a lot of invalid information, such as heart rate data far from the current time, so the effective heart rate data set is obtained by taking the current time as the starting point to intercept the state data according to the preset data interception time length, for example, the user state information of the current time 10 minutes ago is taken as the effective heart rate data set. Then, the current average heart rate and the heart rate standard deviation are determined according to the effective heart rate data set, wherein the current average heart rate represents the overall heart rate level of the current user, which is used to measure whether the heart rate of the user exceeds the normal standard. The heart rate standard deviation represents the heart rate fluctuation of the user, which is used to exclude the influence of motion and other conditions (such as motion) on the accuracy of the judgment of whether the user drinks.
[0085] wherein the average heart rate of the user can be measured by a preset heart rate range, since the normal heart rate of an adult is 60-100 times per minute, [100, ∞) can be determined as the preset heart rate range, because the corresponding situation of drinking is the increase of heart rate, so the lower limit of the heart rate range is mainly used to evaluate the drinking state of the user.
[0086] For the heart rate standard deviation, a preset standard deviation threshold can be used for measurement. The purpose of calculating the heart rate standard deviation is to avoid the influence of exercise and other conditions on the judgment of the drinking state. If drinking leads to an increase in heart rate, it is generally more stable and less volatile, and the corresponding standard deviation is smaller. However, the increase in heart rate caused by exercise may cause the heart rate to fluctuate greatly within a certain range due to different exercise intensities at each time, resulting in a larger heart rate standard deviation.
[0087] If the current average heart rate exists in the preset heart rate range, it means that the heart rate of the user at this time has exceeded the normal range, which may be caused by the increase in average heart rate due to drinking or exercise. If the heart rate standard deviation is less than or equal to the preset standard deviation threshold at this time, it further indicates that the increase in average heart rate of the user is not caused by exercise and other conditions, and the probability of the user drinking is greatly improved. It is determined that the heart rate fluctuation condition is met, and the drinking state of the user is preliminarily evaluated as having drunk.
[0088] If the current average heart rate does not exist in the preset heart rate range, it means that the average heart rate of the user is normal and has not been greatly improved, and the probability of the user drinking is low. It is determined that the heart rate fluctuation condition is not met, and the drinking state of the user is preliminarily evaluated as not having drunk. If the heart rate standard deviation is greater than the preset standard deviation threshold, it means that the increase in heart rate is caused by exercise and other conditions, and it is determined that the heart rate fluctuation condition is not met, and the drinking state of the user is preliminarily evaluated as not having drunk. Therefore, as long as any one of the current average heart rate not existing in the heart rate range and the heart rate standard deviation being greater than the preset standard deviation threshold is met, the drinking state of the user can be preliminarily evaluated as not having drunk, and it is determined that the heart rate fluctuation condition is not met. If both the current average heart rate not existing in the heart rate range and the heart rate standard deviation being greater than the preset standard deviation threshold are met, the probability of the user drinking is very low, and the drinking state of the user can also be preliminarily evaluated as not having drunk, and it is determined that the heart rate fluctuation condition is not met.
[0089] When the user drives a vehicle after drinking, he / she will generally park near the target site. Therefore, the existence of the drinking environment condition is determined by determining the target site set. The environmental condition needs to be combined with the user's own state to determine the final judgment result.
[0090] After the user drinks, the heart rate will accelerate, on the one hand, because alcohol will dilate blood vessels, accelerate blood circulation, and also to decompose alcohol faster, at this time, it will cause the heart rate to accelerate; on the other hand, alcohol will also stimulate the sympathetic nerve to excite, which will also cause the heart rate to accelerate, so the heart rate can be used as an index to judge whether the user has drunk. After the user drinks, the control ability of the body decreases, which causes the walking posture of the user to change greatly, which will cause the step frequency and gait after drinking to be greatly different from the standard step frequency and standard gait when not drinking, so the step frequency and gait can be used as an index to judge whether the user has drunk.
[0091] For the average heart rate, if only the heart rate range is used for evaluation, because of the physiological differences of different users, it may lead to misjudgment, so further verification and evaluation are needed. In the verification and evaluation process, first, the ratio of the current average heart rate to the standard average heart rate needs to be calculated, and the ratio is determined as the heart rate stability coefficient, which is used to represent the difference degree between the current time and the standard average heart rate of the user in the normal state. The closer the heart rate stability coefficient is to 1, the smaller the difference degree, the average heart rate of the user at this time is smaller than the normal time, and the heart rate of the user is maintained in the heart rate range due to other reasons, and the probability of the user drinking is lower. Therefore, 1.2 can be used as the heart rate coefficient threshold to judge the size of the difference degree. Since drinking will increase the heart rate, the case where the heart rate stability coefficient is less than 1 is not considered, that is, the case where the heart rate stability coefficient is less than 1 is determined as the user not drinking.
[0092] Therefore, if the heart rate stability coefficient is greater than or equal to the preset heart rate coefficient threshold, it means that the average heart rate of the user at this time is large, and much higher than the standard average heart rate at ordinary times, which is more likely to be caused by drinking rather than the user being in a high heart rate state for a long time, and it can be determined that the heart rate stability condition is met. If the heart rate stability coefficient is less than the preset heart rate coefficient threshold, it means that the average heart rate of the user at this time is similar to the standard average heart rate at ordinary times, and the high heart rate at this time is a normal phenomenon, which can preliminarily evaluate that the user has not drunk, and it is determined that the heart rate stability condition is not met.
[0093] Therefore, if the heart rate fluctuation condition and the heart rate stability condition are met at the same time, it can be determined that the current state is an abnormal state caused by drinking; if the heart rate fluctuation condition is not met or the heart rate stability condition is not met, it can be determined that the current state is a normal state, and it is preliminarily evaluated that the user has not drunk, which will not cause corresponding dangerous accidents.
[0094] Then, due to the weakening of the user's control ability on the body after drinking, the walking pattern will be different from the usual walking pattern, causing the gait and step frequency to be different from the case when not drinking. Therefore, the user's drinking state can also be evaluated in combination with the current walking pattern of the user, which requires determining the step frequency variation coefficient and the current gait stability coefficient of the user according to the current walking data; wherein the step frequency variation coefficient is the ratio of the step frequency standard deviation to the average step frequency within the interception time, wherein the interception time is 10 minutes, and the real-time walking data of 10 minutes is intercepted from the current time as the starting point as the current walking data, the standard deviation is calculated according to each sample in the current walking data to obtain the step frequency standard deviation, and the average of all samples in the current walking data is taken as the average step frequency. Then, the standard gait stability coefficient is determined according to the historical walking data to determine whether the user's gait is drunk.
[0095] Finally, the current walking pattern is determined according to the step frequency variation coefficient, the standard gait stability coefficient and the current gait stability coefficient:
[0096] Firstly, the ratio of the current gait stability coefficient and the standard gait stability coefficient is determined as the gait stability coefficient; because the standard gait stability coefficient represents the standard gait of the user when not drinking, the ratio of the current gait stability coefficient and the standard gait stability coefficient can be used to measure the gait of the user at the current time. That is, the larger the gait stability coefficient, the more stable the user's gait, and the lower the possibility of drinking; the smaller the gait stability coefficient, the more chaotic the user's gait, and the higher the possibility of drinking.
[0097] If the gait stability coefficient is greater than or equal to the preset stability coefficient threshold, it indicates that there is a large difference between the user's gait at this time and the gait when not drinking, indicating that the user's gait at this time is somewhat chaotic, and it is determined that the gait stability condition is met, and the user has the possibility of drinking. If the gait stability coefficient is less than the preset stability coefficient threshold, it indicates that the user's gait at this time is almost the same as when not drinking, indicating that the user's gait at this time is stable, and the user does not have the possibility of drinking, and it is determined that the gait stability condition is not met.
[0098] If there is a step frequency variation coefficient within the preset step frequency coefficient range, it indicates that the user's step frequency is the standard step frequency when walking normally, and there is no possibility of drinking, and it is determined that the step frequency stability condition is not met. If there is no step frequency variation coefficient within the preset step frequency coefficient range, it indicates that the user's step frequency is significantly different from the standard step frequency when walking normally, and there is a possibility of drinking, and it is determined that the step frequency stability condition is met.
[0099] If the step frequency stability condition and the gait stability condition are both satisfied, it is indicated that the gait and the step frequency of the user are both different from the standard, the user has the possibility of drinking, and the current walking mode is determined as the abnormal walking mode. If the step frequency stability condition is not satisfied, it is indicated that the step frequency of the user is normal, and the user does not have the possibility of drinking. If the gait stability condition is not satisfied, it is indicated that the gait of the user is normal, and the user does not have the possibility of drinking. Therefore, as long as one of the step frequency stability condition and the gait stability condition is not satisfied, it is considered that the user does not drink, and the current walking mode is determined as the normal walking mode.
[0100] The overall state of the user is determined whether to be similar to the state after drinking by determining the current state and the current walking mode, the drinking of the user is determined according to the change of the user, and the overall state of the user is evaluated.
[0101] Step 103: determining the state score of the user according to the target place set, the current state and the current walking mode, and performing safety control according to the state score.
[0102] In the implementation, the drinking state of the user needs to be comprehensively evaluated in combination with the environment and the user itself, the driving can be comprehensively evaluated by using the scoring, and the scoring mechanism is as follows: 10 points are scored if the target place set is not an empty set, 0 points are scored if the target place set is an empty set, 5 points are scored if the current state is an abnormal state, 0 points are scored if the current state is a normal state, 5 points are scored if the current walking mode is an abnormal walking mode, and 0 points are scored if the current walking mode is a normal walking mode. The final evaluation result is evaluated by using a score threshold. If the total score is greater than or equal to 15 points, it is indicated that the drinking state of the user is that the user has drunk, at this time, it is necessary to automatically ask the user whether the user needs the driving service, and send a driving request to the driving platform after the user selects the driving service, so that the user can safely arrive at the destination. In order to ensure the safety, the details of the driving service and the drinking information of the user are sent to the emergency contact person through an encrypted communication channel, and the safety of the driving service process is ensured.
[0103] In summary, the safety control method of the vehicle provided in the embodiments of the present application obtains the state information of the user and the current position of the vehicle, determines a target place set according to the current position and the map information; determines the target place existing around the user that causes the user to drink, and preliminarily judges the life pattern of the user in a short time through the target place set. Then, the walking pattern and the body state of the user are evaluated through the determination of the current state and the current walking pattern of the user, the overall state of the user is evaluated, the probability of the user drinking is determined through the evaluation of the overall state of the user. Finally, the drinking state of the user is evaluated through the fusion of the target place set, the current state and the current walking pattern, the evaluation result of the drinking state is determined through the state score, and the safety control is performed according to the state score, so as to ensure that the vehicle is not driven when it is determined that the user is in the drinking state, the driving safety is ensured, and the detection process does not need the active action of the user to cooperate with the detection, so as to ensure the accuracy of the detection result and the comfort of the user in the use process.
[0104] When judging whether the user drinks or not, the preliminary judgment is first performed from the environmental dimension, and the judgment process of the environmental dimension is as follows:
[0105] In some embodiments, as shown in Figure 2 the target place set is determined according to the current position and the map information, which includes:
[0106] Step 201: The positioning coordinates of each target place are determined according to the map information, and a target place database is obtained.
[0107] In specific implementation, taking the bar as the target place as an example, the parking position of the user is determined as the current position, all bars in the city where the current position is located are marked, the positioning coordinates of each bar are obtained, and the positioning coordinates of these bars are sorted and stored to obtain the target place database. Since the marking of the target place in the whole city consumes a lot of time, the scanning can be performed regularly, or the scanning is performed again after the city is switched to obtain the target place database, and the target place database is determined to determine all positions where the user is likely to drink, thereby providing data support for the subsequent drinking state evaluation according to the environmental scene.
[0108] Step 202: The query range is determined according to the current position, the target place database is screened according to the query range, and a target place set is obtained.
[0109] In specific implementation, according to the conventional parking habit, the user generally parks the vehicle near the destination, so the query range needs to be determined according to the current position of the vehicle to ensure that the evaluation of the environmental dimension has high accuracy.
[0110] The query range can be a range framed by a certain geometric shape with the current position as the geometric center. The target venues in the query range are filtered out, and a target venue database is obtained.
[0111] For example, the query range can be a circular area with the current position O as the center and 1 km as the radius. If the target venue database includes four target venues A, B, C, and D, if the distance OA between venue A and the current position is 500 m, the distance OA between venue B and the current position is 100 m, the distance OC between venue C and the current position is 750 m, and the distance OD between venue D and the current position is 1500 m. Venues A, B, and C are in the query range, and venue D is outside the query range. The target venue database is filtered according to the query range, and venues A, B, and C are filtered out. The target venue set includes venues A, B, and C. Because the high-probability drinking venues close to the vehicle, the user can go to the drinking venue for drinking, so the probability of the user drinking is increased at this time, and the probability of the user drinking is increased. Therefore, the target venue set can be used as one of the indicators for measuring whether the user drinks.
[0112] If the distance OA between venue A and the current position is 1500 m, the distance OA between venue B and the current position is 1100 m, the distance OC between venue C and the current position is 1750 m, and the distance OD between venue D and the current position is 1500 m, the target venue set is empty, indicating that the user's destination is not a bar, restaurant, or other target venue with high probability. The user's drinking state can be preliminarily evaluated as not drinking.
[0113] By determining the target venue set, it is determined whether there is a target venue near the user that causes the user to drink, and whether the user drinks is evaluated in the environmental dimension to improve the accuracy of the evaluation result.
[0114] After completing the environmental dimension evaluation, the user's drinking is further judged from the heart rate state dimension. The judgment process of the heart rate state dimension is as follows:
[0115] In some embodiments, as shown in Figure 3 the current state of the user is determined according to the user state information and the historical state information, including:
[0116] Step 301: Determine the effective heart rate data set of the user according to the user state information and the preset data interception time length.
[0117] In specific implementation, the target place set is determined from the perspective of the environment to evaluate whether the user has the drinking behavior, but it is too one-sided to evaluate whether the user has the drinking behavior only from the perspective of the environment, so it is necessary to further evaluate the drinking state of the user in combination with the overall state of the user. Since the heart rate representing the state information of the user is different due to different physical conditions of the user, the current state of the user needs to be determined in combination with the historical state information when the drinking evaluation is performed according to the state information of the user, wherein the state information of the user includes real-time heart rate data of the user.
[0118] The state information of the user is real-time heart rate data obtained by the intelligent device monitoring the body state of the user in real time, but if all the heart rate data is used for evaluation, the data amount is too large, and there is a large amount of invalid information that is out of date, for example, heart rate data far away from the current time, so it is necessary to determine the effective heart rate data set by using the current time as the starting point to intercept the state data according to the preset data interception time length. For example, the user state information of the last 10 minutes before the current time is intercepted as the effective heart rate data set.
[0119] Step 302: Determine the standard average heart rate according to the historical state information.
[0120] In specific implementation, when the overall state of the user's body is evaluated, the standard average heart rate of the user when not drinking needs to be found, and since the physical conditions of different users are quite different, a single fixed value cannot be used to evaluate the body state of the user. In order to realize personalized evaluation, the standard average heart rate is determined according to the historical state information in the daily life process of the user, to ensure the accuracy of the evaluation while realizing personalized evaluation, and to ensure the accuracy of the comprehensive evaluation.
[0121] Step 303: Determine the current state according to the standard average heart rate and the effective heart rate data set.
[0122] In some embodiments, step 303 includes:
[0123] Step 3031: Determine the current average heart rate and the heart rate standard deviation according to the effective heart rate data set, and determine the ratio of the current average heart rate to the standard average heart rate as the heart rate stability coefficient.
[0124] In specific implementation, the current average heart rate represents the overall heart rate level of the current user, which is used to measure whether the heart rate of the user exceeds the normal standard. The heart rate standard deviation represents the heart rate fluctuation of the user, which is used to exclude the influence of other conditions such as exercise on the accuracy of the judgment of whether the user has the drinking behavior, so the current average heart rate and the heart rate standard deviation are used to verify each other to ensure the accuracy of the evaluation result.
[0125] Step 3032: In response to the current average heart rate being within the preset heart rate range and the heart rate standard deviation being less than or equal to the preset standard deviation threshold, it is determined that the heart rate fluctuation condition is met.
[0126] In specific implementation, the preset heart rate range can be used to measure whether the average heart rate of the user belongs to the case corresponding to drinking. Since the case corresponding to drinking is an increase in heart rate, the lower boundary heart rate of the heart rate range is mainly used to evaluate the drinking state of the user. Since the normal heart rate of an adult is 60-100 times per minute, [100, ∞) can be determined as the preset heart rate range.
[0127] For the heart rate standard deviation, a preset standard deviation threshold can be used for measurement. The purpose of calculating the heart rate standard deviation is to avoid the influence of exercise and other situations on the judgment of the drinking state. If drinking leads to an increase in heart rate, the heart rate in a short period of time is relatively stable, that is, the heart rate fluctuation is small, and the corresponding standard deviation is small. However, the increase in heart rate caused by exercise can cause the heart rate to fluctuate greatly within a certain range due to different exercise intensities at each time, corresponding to a large heart rate standard deviation.
[0128] When the current average heart rate is within the preset heart rate range, it indicates that the heart rate of the user at this time has exceeded the normal range, which can be caused by drinking or exercise and other behaviors leading to an increase in average heart rate. At this time, further verification is needed according to the heart rate standard deviation. If the current average heart rate is within the heart rate range and the heart rate standard deviation is less than or equal to the preset standard deviation threshold, it is further indicated that the increase in the average heart rate of the user is not caused by exercise and other situations, and the probability of the user drinking is greatly improved. It is determined that the heart rate fluctuation condition is met, and the drinking state of the user is preliminarily evaluated as having drunk.
[0129] Step 3033: In response to the current average heart rate not being within the preset heart rate range and / or the heart rate standard deviation being greater than the preset standard deviation threshold, it is determined that the heart rate fluctuation condition is not met.
[0130] In specific implementation, if the current average heart rate is not within the preset heart rate range, it indicates that the average heart rate of the user is normal and has not been greatly improved, and the probability of the user drinking is low. It is determined that the heart rate fluctuation condition is not met, and the drinking state of the user is preliminarily evaluated as not having drunk. If the heart rate standard deviation is greater than the preset standard deviation threshold, it indicates that the increase in heart rate is caused by exercise and other situations, and it is determined that the heart rate fluctuation condition is not met, and the drinking state of the user is preliminarily evaluated as not having drunk.
[0131] Therefore, as long as any one of the conditions that the current average heart rate does not exist in the heart rate range and the heart rate standard deviation is greater than the preset standard deviation threshold is met, the drinking state of the user can be preliminarily evaluated as not drinking, and it is determined that the heart rate fluctuation condition is not met. If the current average heart rate does not exist in the heart rate range and the heart rate standard deviation is greater than the preset standard deviation threshold, it means that the probability of the user drinking is very low, and the drinking state of the user can also be preliminarily evaluated as not drinking, and it is determined that the heart rate fluctuation condition is not met.
[0132] Step 3034: Determine whether the heart rate stability condition is met according to the heart rate stability coefficient and the preset heart rate coefficient threshold.
[0133] In specific implementation, if the heart rate stability coefficient is greater than or equal to the preset heart rate coefficient threshold, it is determined that the heart rate stability condition is met.
[0134] In specific implementation, for the average heart rate, if only the heart rate range is used for evaluation, due to physiological differences between different users, it may lead to misjudgment, so further verification and evaluation are needed. In the verification and evaluation process, first, the ratio of the current average heart rate to the standard average heart rate is calculated, and the ratio is determined as the heart rate stability coefficient, which is used to represent the difference between the current time and the standard average heart rate of the user in the normal state. The closer the heart rate stability coefficient is to 1, the smaller the difference, and then the heart rate coefficient threshold can be set to 1.2.
[0135] If the heart rate stability coefficient is 1.3, which is greater than the heart rate coefficient threshold 1.2, it means that the average heart rate of the user at this time is large, and is much higher than the standard average heart rate at ordinary times, which is more likely to be caused by drinking rather than the user being in a high heart rate state for a long time. It can be determined that the heart rate stability condition is met.
[0136] If the heart rate stability coefficient is less than the preset heart rate coefficient threshold, it is determined that the heart rate stability condition is not met.
[0137] When the heart rate stability coefficient is 1.1, which is less than the preset heart rate coefficient threshold 1.2, it means that the average heart rate of the user at this time is similar to the standard average heart rate at ordinary times, and the high heart rate at this time is a normal phenomenon. It can be preliminarily evaluated that the user has not drunk, and it is determined that the heart rate stability condition is not met.
[0138] Step 3035: In response to the fact that the heart rate fluctuation condition and the heart rate stability condition are met at the same time, it is determined that the current state is an abnormal state.
[0139] In specific implementation, the heart rate fluctuation condition can determine that the user's heart rate has been significantly improved compared to usual, indicating that the user may have drunk alcohol. If the heart rate stability condition is also met, the influence of the user's constitution can be excluded, and the accuracy of the evaluation can be improved. Therefore, when the heart rate fluctuation condition and the heart rate stability condition are both met, it can be determined that the current state is an abnormal state caused by drinking alcohol, the body dimension can evaluate the drinking state, and the accuracy of the evaluation can be ensured.
[0140] Step 3036: In response to not meeting the heart rate fluctuation condition or not meeting the heart rate stability condition, determining that the current state is a normal state.
[0141] In specific implementation, not meeting the heart rate fluctuation condition indicates that the user's heart rate has not been significantly improved, or the improvement in heart rate may be a false judgment caused by exercise. Therefore, when the heart rate fluctuation condition is not met, it can be determined that the current state is a normal state. If the heart rate stability condition is not met, it can be determined that the user's current state is similar to the user's state when not drinking alcohol, and it can be determined that the current state is a normal state, which can preliminarily evaluate that the user has not drunk alcohol and will not cause a corresponding dangerous accident.
[0142] After the user drinks alcohol, alcohol can dilate blood vessels, accelerate blood circulation, and stimulate sympathetic nerve excitement, which can cause heart rate to accelerate and heart rate to increase. Therefore, the user's drinking can be evaluated from the heart rate state dimension, and the accuracy of the judgment result can be improved by combining the evaluation of the environment dimension.
[0143] After completing the evaluation of the heart rate state dimension, since alcohol can also reduce the user's control ability of the body, causing the user's walking pattern to change, the user's drinking can also be judged from the walking pattern dimension. The judgment process of the walking pattern dimension is as follows:
[0144] In some embodiments, as shown in Figure 4 the current walking data and the historical walking data of the user to determine the current walking pattern of the user, including:
[0145] Step 401: Determine the step frequency coefficient of variation and the current gait stability coefficient of the user according to the current walking data.
[0146] In implementation, the current walking data includes the step frequency, stride length and acceleration of the user, etc. According to a plurality of detection samples in the current walking data, the step frequency standard deviation and the average step frequency of the step frequency are calculated respectively. The step frequency standard deviation represents the fluctuation of the step frequency of the user. Because the control of the user on the body decreases in the state of drinking, the probability of the fluctuation of the step frequency increases. The average step frequency represents the actual uneven situation of the user in a short time. Then, the ratio of the step frequency standard deviation and the average step frequency is determined as the step frequency variation coefficient, which represents the size of the variation range of the step frequency of the user. The smaller the step frequency variation coefficient is, the more stable the step frequency is, and the smaller the probability of the user drinking is. The current gait stability coefficient can be a coefficient for comprehensively judging whether the stride length and the acceleration are stable. The smaller the current gait stability coefficient is, the more stable the gait is. The stride length variation coefficient can be determined by using the stride length standard deviation / average stride length, the acceleration variation coefficient can be determined by using the acceleration standard deviation / average acceleration, and the weighted average of the acceleration variation coefficient and the stride length variation coefficient is determined as the current gait stability coefficient.
[0147] Step 402: determining a standard gait stability coefficient according to the historical walking data.
[0148] In implementation, a reference target is needed to judge whether the user walks stably. The historical walking data of the user when not drinking represents the walking habit of the user in general. Therefore, the standard gait stability coefficient determined according to the historical walking data can be used as a standard for judging the current gait stability coefficient.
[0149] Step 403: determining the current walking mode according to the step frequency variation coefficient, the standard gait stability coefficient and the current gait stability coefficient.
[0150] In some embodiments, step 403 includes:
[0151] Step 4031: determining the gait stability coefficient as the ratio of the current gait stability coefficient and the standard gait stability coefficient.
[0152] In implementation, the current gait stability coefficient represents the stability degree of the current walking process of the user, and the standard gait stability coefficient represents the stability degree of the walking process of the user when not drinking. Therefore, the gait stability coefficient can represent the difference degree between the current walking and the walking when not drinking. The closer the gait stability coefficient is to 1, the more consistent the state at the current time and when not drinking is, and the smaller the probability of the user drinking is.
[0153] Step 4032: determining whether the gait stability condition is met according to the gait stability coefficient and a preset stability coefficient threshold.
[0154] In implementation, if the gait stability coefficient is greater than or equal to the preset stability coefficient threshold, it is determined that the gait stability condition is met.
[0155] If the gait stability coefficient is greater than or equal to the preset stability coefficient threshold, it indicates that the gait stability of the user at this time is greatly different from that when the user is not drunk, and it indicates that the user has a high probability of drinking behavior, and it is determined that the gait stability condition is met.
[0156] If the gait stability coefficient is less than the preset stability coefficient threshold, it is determined that the gait stability condition is not met.
[0157] If the gait stability coefficient is less than the preset stability coefficient threshold, it indicates that the gait stability of the user at this time is almost consistent with that when the user is not drunk, and it indicates that the user has a low probability of drinking behavior, and it is determined that the gait stability condition is not met.
[0158] Step 4033: Determine whether the step frequency stability condition is met according to the preset step frequency coefficient range and the step frequency variation coefficient.
[0159] In specific implementation, if the step frequency variation coefficient exists in the preset step frequency coefficient range, it is determined that the step frequency stability condition is not met.
[0160] If the step frequency variation coefficient exists in the preset step frequency coefficient range, it indicates that the step frequency of the user is the standard step frequency in normal walking, and there is no possibility of drinking, and it is determined that the step frequency stability condition is not met.
[0161] If the step frequency variation coefficient does not exist in the preset step frequency coefficient range, it is determined that the step frequency stability condition is met.
[0162] If the step frequency variation coefficient does not exist in the preset step frequency coefficient range, it indicates that the step frequency of the user is greatly different from the standard step frequency in normal walking, and there is a possibility of drinking, and it is determined that the step frequency stability condition is met.
[0163] Step 4034: In response to the step frequency stability condition and the gait stability condition being met at the same time, it is determined that the current walking mode is an abnormal walking mode.
[0164] In specific implementation, if the step frequency stability condition and the gait stability condition are met at the same time, it indicates that the gait and the step frequency of the user are both different from the standard, and there is a possibility of drinking, and it is determined that the current walking mode is an abnormal walking mode.
[0165] Step 4035: In response to the step frequency stability condition not being met or the gait stability condition not being met, it is determined that the current walking mode is a normal walking mode.
[0166] In specific implementation, if the step frequency stability condition is not met, it indicates that the step frequency of the user is normal, and there is no possibility of drinking, and if the gait stability condition is not met, it indicates that the gait of the user is normal, and there is no possibility of drinking. Therefore, as long as one of the step frequency stability condition and the gait stability condition is not met, it is considered that the user does not drink, and it is determined that the current walking mode is a normal walking mode.
[0167] The similarity between the gait and the step frequency of the user at this time and the gait and the step frequency of the user when drinking is determined by judging the step frequency stability condition and the gait stability condition, and then the drinking evaluation of the walking mode is realized. The similarity between the overall state of the user and the overall state after drinking is determined by determining the current state and the current walking mode, the evaluation of the user's overall state is realized by combining the evaluation of the heart rate state dimension and the walking mode dimension, and the accuracy of the user's drinking state determination is improved.
[0168] After the evaluation of multiple dimensions is performed, the evaluation results of multiple dimensions need to be combined for comprehensive judgment to improve the accuracy of the judgment result. The process of multi-dimensional comprehensive judgment is as follows:
[0169] In some embodiments, as shown in Figure 5 The state score of the user is determined according to the target place set, the current state and the current walking mode, including:
[0170] Step 501: Determine the location score according to the set type of the target place set.
[0171] In specific implementation, the set type of the target place set includes two types of empty set and non-empty set, and the process of determining the location score is as follows:
[0172] If the target place set is not an empty set, a preset first score is determined as the location score.
[0173] If the target place set is not an empty set, it means that the user stops near a bar or a restaurant, and the user has a high probability of drinking, so the preset first score is determined as the location score. Only the user performs the drinking behavior in the target place with a high probability event, so a higher evaluation weight is set for the location score, and the first score is set to 10 points.
[0174] If the target place set is an empty set, zero is determined as the location score.
[0175] If the target place set is an empty set, it means that the user stops at a location far away from a bar or a restaurant, and the user has a high probability of drinking, so zero is determined as the location score.
[0176] Step 502: Determine the walking score according to the mode type of the current walking mode.
[0177] In specific implementation, the mode type of the current walking mode includes an abnormal walking mode and a normal walking mode, and the process of determining the walking score is as follows:
[0178] If the current walking mode is an abnormal walking mode, a preset second score is determined as the walking score.
[0179] If the current walking pattern is an abnormal walking pattern, it means that the user's walking pattern is different from usual and there is a possibility of drinking alcohol. Therefore, the preset second score is determined as the location score. Since the corresponding situation may be caused by exercise, illness, etc., the walking score is given a lower weight, for example, the second score is 5 points.
[0180] If the current walking mode is normal walking mode, zero points will be determined as the walking score.
[0181] If the current walking mode is normal walking mode, it means that the user's walking mode is almost the same as usual, and there is no possibility of drinking alcohol, so 0 points is determined as the walking score.
[0182] Step 503: Determine the heart rate integral based on the current state type.
[0183] In practice, the current state type includes abnormal state and normal state. The process of determining the heart rate integral is as follows:
[0184] If the current state is abnormal, the preset third integral will be determined as the heart rate integral.
[0185] If the current state is abnormal, it means that the user's walking pattern is different from usual and there may be alcohol consumption. Therefore, the preset third score is determined as the position score. Since the corresponding situation may be caused by exercise, the heart rate score is given a lower weight, for example, the third score is 5 points.
[0186] If the current state is normal, zero points will be determined as the heart rate integral.
[0187] If the current state is normal, it means that the user's walking pattern is almost the same as usual, and there is no possibility of drinking alcohol. In this case, the score of zero is determined as the heart rate score.
[0188] Step 504: Determine the sum of the heart rate integral, walking integral, and position integral as the status score.
[0189] In practice, the sum of the scores of the three evaluation criteria is the status score, which is used to judge the user's drinking status. The higher the status score, the higher the probability that the user is drinking. By integrating the evaluation of different dimensions through the scoring method, the accuracy of the evaluation is improved.
[0190] In some embodiments, such as Figure 6 As shown, security controls are implemented based on status scores, including:
[0191] In response to a status score greater than or equal to a preset score threshold, the system controls the vehicle's main unit or mobile terminal to inquire about the designated driver service, sends a designated driver request information based on the user's selected operation, and sends the cost information to a preset associated device.
[0192] In implementation, the score threshold is not set randomly. Since the position integral has a higher weight, it is necessary to ensure that the user has a drinking behavior only when the position integral is not 0. If the position integral is 0, it is directly determined that the user does not drink. When the position integral is not 0, the user cannot be determined to drink alone, so the heart rate integral or the walking integral needs to be verified. Therefore, when the position integral is not 0, at least one of the heart rate integral and the walking integral is not 0 value, which can ensure the accuracy of the evaluation.
[0193] Therefore, the score threshold needs to be less than or equal to the sum of the first integral and the second integral, and less than or equal to the sum of the first integral and the third integral.
[0194] In addition, when the position integral is 0, it cannot be determined whether the change of the user's body state is disturbed by other factors. It is necessary to ensure that the walking integral and the heart rate integral cannot trigger the evaluation of the user's drinking. Therefore, it is necessary to ensure that the score threshold is greater than the sum of the second integral and the third integral.
[0195] For example, if the first integral is 10 points, and the second integral and the third integral are both 5 points, the value range of the score threshold is (10, 15].
[0196] Taking the threshold integral as 15 as an example, if the state score is greater than or equal to the preset score threshold, it means that the user has parked the vehicle near the target site, and at least one of the user's walking or heart rate has an abnormality similar to drinking. At this time, the user has a high probability of drinking behavior. At this time, it is necessary to control the vehicle host or the mobile terminal to ask for a driving service. If the user agrees to find a driver, send a driving request information to find a driver to help the user drive to avoid drunk driving. By adding the process of user selection, it can be ensured that the user can actively terminate the false judgment when a false judgment occurs, and avoid affecting the user's use experience. At the same time, the cost information is sent to the preset associated device (such as the mobile terminal of the emergency contact person), so that the emergency contact person can understand the state of the user, and protect the legal rights and interests of the user in the event of a dispute over driving, and ensure the safety of the user.
[0197] If the state score is less than the preset score threshold, a safe driving reminder is performed.
[0198] In implementation, if the state score is less than the preset score threshold, a safe driving reminder is performed. If the user has drunk, please do not drive to avoid false judgment leading to drunk driving.
[0199] It should be noted that the method of the embodiments of the present application can be executed by a single device, for example, a computer or a server, etc. The method of the embodiments of the present application can also be applied to a distributed scenario, and be completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only execute one or more steps in the method of the embodiments of the present application, and the multiple devices can interact with each other to complete the method.
[0200] It should be noted that some embodiments of the present application have been described above. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in a different order and still achieve desirable results. Additionally, the processes depicted in the figures do not necessarily require the particular order shown, or sequential order, to achieve the desired results. In certain implementations, multitasking and parallel processing can be advantageous.
[0201] Based on the same inventive concept, the present application also provides a safety control device of a vehicle corresponding to the method of any of the above-mentioned embodiments.
[0202] Reference Figure 6 , the safety control device of the vehicle comprises:
[0203] The position evaluation module 10 is configured to: obtain state information of a user and a current position of a vehicle, and determine a target site set according to the current position and map information;
[0204] The body evaluation module 20 is configured to: determine a current state of the user according to the state information of the user and historical state information, and determine a current walking mode of the user according to current walking data of the user and historical walking data;
[0205] The score evaluation module 30 is configured to: determine a state score of the user according to the target site set, the current state and the current walking mode, and perform safety control according to the state score.
[0206] For the convenience of description, the above device is described as various modules respectively described in function. Of course, in the implementation of the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0207] The device of the above-mentioned embodiments is used to implement the corresponding safety control method of the vehicle in any of the above-mentioned embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be described here.
[0208] Based on the same inventive concept, the application also provides an electronic device corresponding to the method of any of the above embodiments, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the safety control method of any of the above embodiments.
[0209] Figure 7 A more specific hardware structure of an electronic device is shown in this embodiment. The device can include a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 for internal communication.
[0210] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits, etc., for executing related programs to implement the technical solutions provided by the embodiments of the present application.
[0211] The memory 1020 can be implemented by a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, etc. The memory 1020 can store an operating system and other application programs. When the technical solutions provided by the embodiments of the present application are implemented by software or firmware, the related program codes are stored in the memory 1020 and executed by the processor 1010.
[0212] The input / output interface 1030 is used to connect input / output modules to realize information input and output. The input / output modules can be configured as components in the device (not shown in the figure) or externally connected to the device to provide corresponding functions. The input device can include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device can include a display, a speaker, a vibrator, an indicator light, etc.
[0213] The communication interface 1040 is used to connect a communication module (not shown in the figure) to realize the communication interaction between the device and other devices. The communication module can realize communication through wired means (such as USB, network cable, etc.) or through wireless means (such as mobile network, WIFI, Bluetooth, etc.).
[0214] Bus 1050 includes a path for transferring information between the various components (e.g., processor 1010, memory 1020, input / output interface 1030, and communication interface 1040) of the device.
[0215] It should be noted that although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device can also include other components necessary for normal operation. In addition, those skilled in the art can understand that the above device can also only contain the components necessary to implement the embodiments of the present specification, and does not have to contain all the components shown in the figure.
[0216] The electronic device of the above embodiment is used to implement the safety control method of the corresponding vehicle in any of the preceding embodiments, and has the beneficial effects of the corresponding method embodiments, which are not repeated here.
[0217] Based on the same inventive concept, corresponding to the method of any of the above embodiments, the present application also provides a non-transitory computer readable storage medium, which stores computer instructions for causing the computer to execute the safety control method of the vehicle as described in any of the above embodiments.
[0218] The computer readable medium of the present embodiment includes permanent and non-permanent, removable and non-removable media, which can be implemented by any method or technology to store information. The information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette, magnetic tape disk storage or other magnetic storage device, or any other non-transmission medium that can be used to store information accessible by a computing device.
[0219] The computer instructions stored in the storage medium of the above embodiment are used to cause the computer to execute the safety control method of the vehicle as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which are not repeated here.
[0220] Based on the same inventive concept, the application also provides a vehicle corresponding to the method of any of the above embodiments, comprising the electronic device or the safety control device of the vehicle of the above embodiments, and performing the safety control method of the vehicle as described in any of the above embodiments by the electronic device or the safety control device of the vehicle of the above embodiments, and having the beneficial effects of the corresponding method embodiments, which are not described here again.
[0221] It can be understood that, before using the technical solutions of various embodiments in the present disclosure, the type of personal information involved, the scope of use, the use scenario, etc. will be informed to the user in an appropriate manner, and the authorization of the user will be obtained.
[0222] For example, in response to receiving the active request of the user, prompt information is sent to the user to explicitly prompt the user that the operation requested to be performed will require the acquisition and use of personal information of the user. Thus, the user can choose whether to provide personal information to the software or hardware such as electronic device, application program, server or storage medium, etc. that performs the operation of the technical solutions of the present disclosure according to the prompt information.
[0223] As an optional but not limited implementation manner, in response to accepting the active request of the user, the manner of sending prompt information to the user may, for example, be a pop-up window manner, and the prompt information may be presented in the form of text in the pop-up window. In addition, the pop-up window may also carry selection controls for the user to select "agree" or "disagree" to provide personal information to the electronic device.
[0224] It can be understood that the above notification and user authorization process is only illustrative, and does not limit the implementation of the present disclosure, and other ways that meet the relevant laws and regulations can also be applied to the implementation of the present disclosure.
[0225] Those skilled in the art will understand that the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the present application is limited to these examples; under the idea of the present application, the above embodiments or technical features in different embodiments can also be combined, the steps can be implemented in any order, and there are many other changes of different aspects of the embodiments of the present application as described above. In order to be brief, they are not provided in details.
[0226] Additionally, to simplify the description and discussion, and so as not to obscure the embodiments of the application being presented, the well-known functions or constructions of integrated circuit (IC) chips and other components can or can not be shown in the figures and will be omitted as not to unnecessarily obscure the embodiments of the application being presented. Moreover, the devices can be shown in block diagram form in order to avoid obscuring the embodiments of the application, and this also acknowledges the fact that the details in regard to the implementation of the block diagram devices are highly dependent on the platform within which the embodiments of the application are to be implemented (i.e., these details should be well within the purview of one of ordinary skill in the art). Where specific details are set forth in order to describe an illustrative embodiment of the application, it will be apparent to one of ordinary skill in the art that the embodiments of the application can be practiced without, or with variation of, these specific details. Thus, the description is to be considered as illustrative and not restrictive, and the scope of the application should be determined not with reference to the above description, but should be given to the appended claims.
[0227] While the application has been described in connection with specific embodiments thereof, many alternatives, modifications and variations will be apparent to those skilled in the art in light of the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) can use the embodiments discussed.
[0228] Embodiments of the application are intended to cover all such alternatives, modifications and variations as falling within the scope of the broadest possible interpretation of the application as set forth in the appended claims. Accordingly, any and all such modifications, variations or equivalents that fall within the spirit and scope of the underlying principles should be intended to be embraced by the claims.
Claims
1. A safety control method of a vehicle, characterized by, The method comprises: obtaining state information of a user and a current position of a vehicle, determining a target site set according to the current position and map information; determining a current state of the user according to the user state information and historical state information, and determining a current walking mode of the user according to current walking data and historical walking data of the user; determining a state score of the user according to the target site set, the current state and the current walking mode, and performing safety control according to the state score; wherein the determining of the current walking mode of the user according to the current walking data and the historical walking data comprises: determining a step frequency variation coefficient and a current gait stability coefficient of the user according to the current walking data; determining a standard gait stability coefficient according to the historical walking data; determining the current walking mode according to the step frequency variation coefficient, the standard gait stability coefficient and the current gait stability coefficient; wherein the determining of the current walking mode according to the step frequency variation coefficient, the standard gait stability coefficient and the current gait stability coefficient comprises: determining a gait stability coefficient as a ratio of the current gait stability coefficient to the standard gait stability coefficient; determining whether a gait stability condition is met according to the gait stability coefficient and a preset stability coefficient threshold; determining whether a step frequency stability condition is met according to a preset step frequency coefficient range and the step frequency variation coefficient; in response to the step frequency stability condition and the gait stability condition being met simultaneously, determining that the current walking mode is an abnormal walking mode; or, in response to the step frequency stability condition not being met or the gait stability condition not being met, determining that the current walking mode is a normal walking mode.
2. The safety control method of a vehicle according to claim 1, characterized by, The determining of the target site set according to the current position and map information comprises: determining positioning coordinates of each target site according to the map information to obtain a target site database; determining a query range according to the current position, and screening the target site database according to the query range to obtain the target site set.
3. The safety control method of a vehicle according to claim 1, characterized by, The determining of the current state of the user according to the user state information and historical state information comprises: determining an effective heart rate data set of the user according to the user state information and a preset data interception time length; determining a standard average heart rate according to the historical state information; determining the current state according to the standard average heart rate and the effective heart rate data set.
4. The safety control method of a vehicle according to claim 3, characterized by The determining of the current state according to the standard heart rate value and the effective heart rate data set comprises: determining a current average heart rate and a heart rate standard deviation according to the effective heart rate data set, and determining a heart rate stability coefficient as a ratio of the current average heart rate to the standard average heart rate; in response to the current average heart rate existing in a preset heart rate range and the heart rate standard deviation being less than or equal to a preset standard deviation threshold, determining that a heart rate fluctuation condition is met; in response to the current average heart rate not existing in the preset heart rate range and / or the heart rate standard deviation being greater than the preset standard deviation threshold, determining that the heart rate fluctuation condition is not met; determining whether a heart rate stability condition is met according to the heart rate stability coefficient and a preset heart rate coefficient threshold. determining the current state as an abnormal state in response to the heart rate fluctuation condition and the heart rate stability condition being satisfied simultaneously; or, determining the current state as a normal state in response to the heart rate fluctuation condition not being satisfied or the heart rate stability condition not being satisfied.
5. The safety control method of a vehicle according to claim 1, characterized by, determining a state score of the user according to the target place set, the current state and the current walking mode, comprising: determining a position integral according to a set type of the target place set; determining a walking integral according to a mode type of the current walking mode; determining a heart rate integral according to a state type of the current state; determining a sum value of the heart rate integral, the walking integral and the position integral as the state score.
6. The safety control method of a vehicle according to claim 1, characterized by the safety control according to the state score, comprising: in response to the state score being greater than or equal to a preset score threshold, controlling a vehicle host or a mobile terminal to make a driving service inquiry, and sending a driving request information and state abnormal information to a preset associated device according to a selection operation of the user.
7. An electronic device comprising a memory, a processor, and a computer program stored on the memory and running on the processor, characterized in that, the processor implements the method of any one of claims 1 to 6 when executing the program.
8. A vehicle characterized by comprising: the electronic device of claim 7. the electronic device of claim 7.
Citation Information
Patent Citations
Gait monitoring method and intelligent device
CN110916673A
Drunk driving judgment method, device and equipment, storage medium and product
CN119132048A