User security state identification method and device
By combining data from terminal sensors and image sensors, user security status identification and three-dimensional reconstruction are performed, which solves the problem of insufficient user security status identification accuracy in the existing technology and improves user safety when using the terminal.
Patent Information
- Application Number
- CN202310194040.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-23
- Publication Date
- 2024-08-23
AI Technical Summary
Existing technologies lack accuracy when identifying a user's safety status. In particular, safety accidents occur frequently due to insufficient environmental observation when users use mobile phones. Existing methods mainly rely on a small amount of data for status perception, which may be inaccurate.
By combining the sensing information collected by terminal sensors and real-time environment images, the user's security status is identified, the image sensor is used for three-dimensional reconstruction, and the user's security status is identified based on user behavior and environmental location to improve the accuracy of security warnings.
It achieves more accurate identification of the user's security status, improves the user's safety when using the terminal, and reduces security accidents caused by insufficient environmental observation.
Smart Images

Figure CN118540408A
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminals, and in particular to a method and device for identifying user security status. Background Art
[0002] With the popularization of mobile terminals, mobile terminals are increasingly used in users' daily application scenarios. For example, it has become more and more common for users to use mobile phones while walking, and the resulting safety accidents are more frequent. The number of people who fall or bump into obstacles while using mobile phones is increasing.
[0003] Usually, mobile phones can be used to assist in sensing pedestrian status and the surrounding walking environment, helping pedestrians using mobile phones to avoid dangerous situations. For example, the posture information of the mobile phone can be collected to identify the user's motion status, so as to remind the user when in a dangerous state. However, some commonly used status classification results are usually inaccurate. For example, when using support vector machines (SVM) to classify user status, inaccurate user status recognition may occur. Therefore, how to accurately identify the user's status and accurately remind the user of dangerous conditions has become a problem that needs to be solved urgently. Summary of the invention
[0004] The present application provides a user security status identification method and device, which are used to collect sensor information and images of the environment in which the terminal is currently located in real time to jointly identify the user's security status and improve user security.
[0005] In view of this, in a first aspect, the present application provides a method for identifying a user's safety status, comprising: first, obtaining sensing information collected by at least one sensor provided in a terminal, the sensing information including information that can be used to represent the position and posture of the terminal; further obtaining an image of an environment in which the terminal is currently located, the image including information collected in real time by an image sensor, the image sensor including an image sensor provided in the terminal, and also including an image sensor in a device connected to the terminal; then determining the user's safety status based on the sensing information and the image of the environment in which the terminal is currently located, the safety status being used to represent the user's degree of safety in the environment.
[0006] Therefore, in the implementation of the present application, based on the use of the posture sensor of the terminal sensor to identify the user's behavior, the user's safety status is more accurately identified in combination with the real-time image collected. The real-time image collected can more accurately represent the terrain or obstacles in the user's environment, so that further safety warnings can be made in combination with a more accurate user safety status to improve user safety.
[0007] In a possible implementation, the aforementioned determination of the user's safety status based on the sensing information and the image of the environment in which the terminal is currently located may include: identifying the user's current behavior through the sensing information; and determining the user's real-time position in the environment based on the image of the environment in which the terminal is currently located; and identifying the user's safety level in the environment based on the current behavior and the user's position in the environment to obtain the safety status.
[0008] In the implementation manner of the present application, the user's current behavior can be identified through sensing information, such as whether the user is operating the terminal or walking, etc., and the real-time collected images can be combined to identify the user's current environment and the user's position in the environment. Based on the user's current behavior, the user's current environment and the user's position in the environment, it is possible to identify whether there may be obstacles in the environment that may affect the user's safety or whether the user is in a safe area, etc., thereby jointly identifying the user's safety status to obtain a more accurate safety status.
[0009] In a possible implementation, the aforementioned determination of the user's safety status based on the sensing information and the image of the environment in which the terminal is currently located may include: performing three-dimensional reconstruction of the environment based on the image of the environment in which the terminal is currently located, obtaining a three-dimensional model of the user's environment and the user's position in the three-dimensional model of the environment.
[0010] Therefore, in an embodiment of the present application, the collected environmental images can be used to perform three-dimensional modeling of the real-time environment in which the user is located, thereby obtaining a three-dimensional model of the user's current environment and the user's position in the three-dimensional model of the environment, so as to more accurately judge obstacles in the environment that affect the user's safety or whether the user is in a safe area.
[0011] In a possible implementation, the aforementioned identifying the user's safety level in the environment based on the current behavior and the user's position in the environment to obtain a safety status may include: identifying whether the user is currently operating the terminal based on the current behavior to obtain a first identification result; identifying whether the user is in a safe area based on the current behavior and the user's position in the environment to obtain a second identification result; and identifying the user's safety level in the environment in combination with the first identification result and the second identification result to obtain a safety status.
[0012] Therefore, in the implementation of the present application, the user's current behavior, the user's real-time environment, and the user's position in the real-time environment can be combined to jointly identify the user's safety level, thereby more accurately identifying the user's safety status. For example, when the user is operating the terminal and walking, if the user is in a non-safe area, it means that the user's safety level is low.
[0013] In a possible implementation, the aforementioned determination of the user's current behavior based on the sensing information may include: obtaining a data set, which may include data generated by at least one user's historical behavior; then training a behavior prediction model based on the data set; then using the sensing information as input to the prediction model to output the user's current behavior. Therefore, in the implementation of the present application, the data generated by the user's historical behavior can be used for learning to obtain a model that can predict the user's behavior, thereby combining the collected sensing information to predict the user's current behavior.
[0014] In a possible implementation, the above method may further include: obtaining historical behavior data of the user, where the historical behavior data includes data generated by the user's historical behavior; and correcting the current behavior according to the historical behavior data to obtain the corrected current behavior.
[0015] Therefore, in the implementation manner of the present application, the user's historical behavior data can be used to correct the output results of the prediction model, thereby further improving the accuracy of identifying the user's current behavior.
[0016] In a possible implementation, the aforementioned correcting the current behavior according to the directed graph to obtain the corrected current behavior may include: constructing a graph representation according to multiple elements in the historical behavior data, such as specifically constructing a directed acyclic graph (DAG) of user / situation / task (user situation task, UST), wherein the graph representation includes associations between the multiple elements; determining the behavior generated by the user in the historical period or the behavior generated by the user at the current location through the graph representation, and correcting the current behavior to obtain the corrected current behavior.
[0017] In the implementation manner of the present application, the user's historical behavior data can be used to construct a graph representation, and the graph representation can be used to represent the association relationship between multiple elements in the user's historical behavior, so that the category of the user's current behavior can be corrected through the association relationship between the multiple elements, thereby improving the accuracy of the user's current behavior.
[0018] In a possible implementation, the aforementioned method of determining the behavior of a user in a historical period or the behavior of a user at a current location through a graph representation, correcting the current behavior, and obtaining the corrected current behavior includes: obtaining the behavior corresponding to the previous space-time node corresponding to the current space-time node in the graph representation, where the previous space-time node is a moment node or a position node included in the historical period; obtaining the similarity between the behavior corresponding to the previous space-time node and the current behavior; and correcting the current behavior based on the similarity between the behavior corresponding to the previous space-time node and the current behavior to obtain the corrected current behavior.
[0019] Therefore, in the implementation manner of the present application, the current behavior can be corrected in combination with the similarity between the previous node and the current node in the graph representation, so as to obtain an accurate current behavior.
[0020] In a possible implementation, the aforementioned correction of the current behavior according to the similarity between the behavior corresponding to the previous space-time node and the current behavior to obtain the corrected current behavior may include: identifying whether the behavior of the user in the previous space-time node matches the current behavior according to the similarity between the behavior corresponding to the previous space-time node and the current behavior, such as whether the positioning is consistent or whether the behavior category is consistent. If the behavior of the user in the previous space-time node matches the current behavior, the current behavior is used as the corrected current behavior; if the behavior of the user in the previous space-time node does not match the current behavior, the category of the current behavior is adjusted according to the confidence corresponding to the current behavior to obtain the corrected current behavior.
[0021] Therefore, in the implementation manner of the present application, the behavior of the current space-time node can be corrected in combination with the previous space-time node in the graph representation, so that the space-time coherence of the user behavior can be used to further calibrate the current behavior and obtain accurate predicted behavior, thereby improving the accuracy of subsequent security status identification.
[0022] In a possible implementation, the aforementioned acquisition of the image of the environment in which the terminal is currently located may include: acquiring the image of the environment in which the terminal is currently located through an image sensor of the terminal; or acquiring the image of the environment in which the terminal is currently located through an image sensor in a device connected to the terminal.
[0023] Therefore, in the implementation manner of the present application, there may be multiple ways to collect images of the user's environment, which can be applicable to a variety of scenarios and have strong generalization.
[0024] In a possible implementation, the aforementioned method may further include: if the user's security status is a first status, shutting down the terminal; if the user's security status is a second status, generating an alarm message for the security status and playing the alarm message, the security level of the first status being lower than the security level of the second status.
[0025] Therefore, in the implementation manner of the present application, early warnings can be issued based on different security levels, so that warnings can be issued in different scenarios through different warning methods to improve user safety.
[0026] In a possible implementation, the first state indicates that the user is in a non-stationary state when operating the terminal and is in a lane, and the second state indicates that the user is in a non-stationary state when operating the terminal on a sidewalk and there are obstacles on the sidewalk.
[0027] In one possible implementation, the at least one sensor includes one or more of the following: a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, a motion sensor, or a position sensor.
[0028] In a second aspect, the present application provides a user security status identification device, comprising:
[0029] A sensing module, used to obtain sensing information collected by at least one sensor in the terminal, where the sensing information includes information used to represent the position and posture of the terminal;
[0030] An image acquisition module is used to obtain an image of the environment in which the terminal is currently located;
[0031] The identification module is used to determine the user's safety status based on the sensing information and the image of the environment in which the terminal is currently located. The safety status is used to indicate the user's safety level in the environment.
[0032] In a possible implementation, the identification module is specifically used to: identify the user's current behavior through sensing information; determine the user's position in the environment based on an image of the environment in which the terminal is currently located; and identify the user's safety level in the environment based on the current behavior and the user's position in the environment to obtain a safety status.
[0033] In a possible implementation, the recognition module is specifically configured to: reconstruct the environment in three dimensions according to an image of the environment where the terminal is located, and obtain a three-dimensional model of the user's environment and the position of the user in the three-dimensional model of the environment.
[0034] In one possible implementation, the identification module is specifically used to: identify whether the user is currently operating the terminal based on the current behavior to obtain a first identification result; identify whether the user is in a safe area based on the current behavior and the user's position in the environment to obtain a second identification result; and identify the user's safety level in the environment by combining the first identification result and the second identification result to obtain a safety status.
[0035] In a possible implementation, the identification module is specifically used to: obtain a data set, the data set including data generated by historical behavior of at least one user; obtain a behavior prediction model based on the data set; and determine the user's current behavior based on the sensing information and the behavior prediction model.
[0036] In a possible implementation, the device further includes: a correction module, which is used to: obtain historical behavior data of the user, the historical behavior data including data generated by the user's historical behavior; and correct the current behavior according to the historical behavior data to obtain the corrected current behavior.
[0037] In one possible implementation, the correction module is specifically used to: construct a graph representation based on multiple elements in the historical behavior data, wherein the graph representation includes the association relationship between the multiple elements; determine the behavior generated by the user in the historical period or the behavior generated by the user at the current location through the graph representation, correct the current behavior, and obtain the corrected current behavior.
[0038] In one possible implementation, the correction module is specifically used to: obtain the behavior corresponding to the previous space-time node corresponding to the current space-time node in the graph representation, where the previous space-time node is a moment node or a position node included in the historical period; obtain the similarity between the behavior corresponding to the previous space-time node and the current behavior; and correct the current behavior based on the similarity between the behavior corresponding to the previous space-time node and the current behavior to obtain the corrected current behavior.
[0039] In one possible implementation, the correction module is specifically used to: identify whether the user's behavior in the previous space-time node matches the current behavior based on the similarity between the behavior corresponding to the previous space-time node and the current behavior; if the user's behavior in the previous space-time node matches the current behavior, use the current behavior as the corrected current behavior; if the user's behavior in the previous space-time node does not match the current behavior, adjust the category of the current behavior based on the confidence level corresponding to the current behavior to obtain the corrected current behavior.
[0040] In a possible implementation, the sensing module is specifically configured to: collect an image of the environment in which the terminal is currently located through an image sensor of the terminal; or collect an image of the environment in which the terminal is currently located through an image sensor in a device connected to the terminal.
[0041] In a possible implementation, the device also includes: an alarm module, which is used to: if the user's security status is a first status, shut down the terminal; if the user's security status is a second status, generate an alarm message for the security status and play the alarm message, and the security level of the first status is lower than the security level of the second status.
[0042] In a possible implementation, the first state indicates that the user is in a non-stationary state when operating the terminal and is in a lane, and the second state indicates that the user is in a non-stationary state when operating the terminal on a sidewalk and there are obstacles on the sidewalk.
[0043] In one possible implementation, the at least one sensor includes one or more of the following: a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, a motion sensor, or a position sensor.
[0044] In a third aspect, the present application provides a user security status identification device, which includes: a processor, a memory, an input and output device, and a bus; the memory stores computer instructions; when the processor executes the computer instructions in the memory, the memory stores computer instructions; when the processor executes the computer instructions in the memory, it is used to implement any one of the implementation methods of the first aspect.
[0045] In a fourth aspect, the present application provides an electronic device, wherein the user security status identification device includes: a processor, a memory, an input / output device, and a bus; the memory stores computer instructions; when the processor executes the computer instructions in the memory, the memory stores computer instructions; when the processor executes the computer instructions in the memory, it is used to implement any one of the implementation methods of the first aspect.
[0046] In the fifth aspect, an embodiment of the present application provides a chip system, which includes a processor and an input / output port, wherein the processor is used to implement the processing functions involved in the above-mentioned first aspect or the user security status identification method described in the first aspect, and the input / output port is used to implement the above-mentioned first aspect or the receiving and sending functions involved in the user security status identification method described in the first aspect.
[0047] In one possible design, the chip system also includes a memory, which is used to store program instructions and data to implement the functions involved in the first aspect or the method described in the first aspect.
[0048] The chip system may be composed of chips, or may include chips and other discrete devices.
[0049] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium. The computer-readable storage medium stores computer instructions; when the computer instructions are executed on a computer, the computer executes the method described in the first aspect or any possible implementation of the first aspect.
[0050] In a seventh aspect, an embodiment of the present application provides a computer program product. The computer program product includes a computer program or instructions, and when the computer program or instructions are executed on a computer, the computer executes the method described in the first aspect or any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 A schematic diagram of the structure of an electronic device provided in this application;
[0052] Figure 2 A schematic diagram of the structure of another electronic device provided by the present application;
[0053] Figure 3 A schematic diagram of an application scenario provided for this application;
[0054] Figure 4 A flowchart of a method for identifying user security status provided by this application;
[0055] Figure 5 A schematic diagram of another application scenario provided for this application;
[0056] Figure 6 A schematic diagram of another application scenario provided for this application;
[0057] Figure 7 A flowchart of another method for identifying user security status provided by this application;
[0058] Figure 8 A flowchart of another method for identifying user security status provided by this application;
[0059] Fig. 9 A diagram showing a schematic diagram provided for this application;
[0060] Fig.10 A schematic diagram of a user behavior correction process provided by this application;
[0061] Fig.11 A flowchart of another method for identifying user security status provided by this application;
[0062] Fig.12 A schematic diagram of another application scenario provided for this application;
[0063] Fig.13 A schematic diagram of another application scenario provided for this application;
[0064] Fig.14 A schematic diagram of another application scenario provided for this application;
[0065] Fig.15 A schematic diagram of an alarm method provided for this application;
[0066] Fig.16 A schematic diagram of the structure of a user status identification device provided by the present application;
[0067] Fig.17 A schematic diagram of the structure of another user status identification device provided by the present application;
[0068] Fig.18 A schematic diagram of the structure of a chip provided in this application. DETAILED DESCRIPTION
[0069] The following will describe the technical solutions in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0070] First, the method provided in this application can be applied to various electronic devices.
[0071] The electronic devices in the present application may include, but are not limited to: smart mobile phones, televisions, tablet computers, bracelets, head mounted display devices (Head Mount Display, HMD), augmented reality (augmented reality, AR) devices, mixed reality (mixed reality, MR) devices, cellular phones (cellular phones), smart phones (smart phones), personal digital assistants (personal digital assistants, PDA), tablet computers, vehicle terminals, laptop computers (or laptop computers or handheld computers, etc.), personal computers (personal computers, PCs), etc. Of course, in the following embodiments, there is no limitation on the specific form of the electronic device.
[0072] For example, see Figure 1 , below, taking a specific structure as an example, the structure of the electronic device provided by the present application is exemplarily described.
[0073] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, a motion sensor 180N, etc.
[0074] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0075] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0076] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0077] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0078] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0079] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the electronic device 100.
[0080] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
[0081] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0082] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
[0083] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic device 100.
[0084] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0085] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc. It should be understood that the USB interface 130 here can also be replaced by other interfaces, such as Type-c or Lighting interfaces that can realize charging or data transmission. Here, the USB interface 130 is only used as an example for illustrative description.
[0086] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0087] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
[0088] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0089] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0090] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0091] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0092] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0093] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), ultra wide band (UWB), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and filters it, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0094] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include, but is not limited to, fifth-generation mobile communication technology (5th-Generation, 5G) system, global system for mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (longterm evolution, LTE), Bluetooth, the global navigation satellite system (the global navigation satellite system, GNSS), wireless fidelity (wireless fidelity, WiFi), nearfield communication (nearfield communication, NFC), FM (also known as FM radio), Zigbee protocol (Zigbee), radio frequency identification technology (radio frequency identification, RFID) and / or infrared (infrared, IR) technology, etc. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS), etc.
[0095] In some embodiments, the electronic device 100 may also include a wired communication module ( Figure 1 Alternatively, the mobile communication module 150 or the wireless communication module 160 here may be replaced by a wired communication module ( Figure 1 The wired communication module enables the electronic device to communicate with other devices through a wired network. The wired network may include, but is not limited to, one or more of the following: optical transport network (OTN), synchronous digital hierarchy (SDH), passive optical network (PON), Ethernet, or flexible Ethernet (FlexE).
[0096] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for interface display, connecting the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0097] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0098] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0099] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
[0100] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB camera, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0101] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0102] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0103] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0104] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0105] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor.
[0106] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0107] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0108] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
[0109] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.
[0110] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.
[0111] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0112] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
[0113] The gyro sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
[0114] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
[0115] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover can be automatically unlocked.
[0116] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
[0117] The distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
[0118] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
[0119] The ambient light sensor 180L is used to sense the ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
[0120] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
[0121] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
[0122] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
[0123] The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 180M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 180M can also be set in an earphone and combined into a bone conduction earphone. The audio module 170 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 180M to realize a voice function. The application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to realize a heart rate detection function.
[0124] The motion sensor 180N can be used to detect moving objects within the range of the camera, collect the motion profile or motion trajectory of the moving objects, etc. For example, the motion sensor 180N can be an infrared sensor, a laser sensor, a dynamic vision sensor (DVS), etc. The DVS can specifically include sensors such as DAVIS (Dynamic and Active-pixel Vision Sensor), ATIS (Asynchronous Time-based Image Sensor) or CeleX sensor. DVS draws on the characteristics of biological vision. Each pixel simulates a neuron and responds independently to the relative change of light intensity (hereinafter referred to as "light intensity"). When the relative change of light intensity exceeds the threshold, the pixel will output an event signal, including the pixel position, timestamp and characteristic information of the light intensity.
[0125] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
[0126] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0127] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power changes, messages, missed calls, notifications, etc.
[0128] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0129] It should be noted that in some practical application scenarios, the electronic device may include Figure 1 More or fewer components can be adjusted according to the actual application scenario, and this application does not limit this.
[0130] The above is an exemplary introduction to the hardware structure of the electronic device provided in the present application. The system that the electronic device can carry may include: Hongmeng or other operating systems, etc., the embodiments of the present application do not impose any restrictions on this.
[0131] To carry Take the electronic device 100 of the operating system as an example, Figure 2 As shown, the electronic device 100 can be logically divided into a hardware layer 21, an operating system 261, and an application layer 31. The hardware layer 21 includes hardware resources such as an application processor 201, a microcontroller unit 203, a modem 207, a Wi-Fi module 211, a sensor 214, and a positioning module 150. The application layer 31 includes one or more applications, such as an application 263. The application 263 can be any type of application such as a social application, an e-commerce application, a browser, or a find-and-seek APP, which executes the interface display method provided in this application to search for a user's lost device. The operating system 261, as a software middleware between the hardware layer 21 and the application layer 31, is a computer program that manages and controls hardware and software resources.
[0132] In one embodiment, the operating system 261 includes a kernel 23, a hardware abstraction layer (HAL) 25, libraries and runtime 27, and a framework 29. The kernel 23 is used to provide underlying system components and services, such as power management, memory management, thread management, hardware drivers, etc.; hardware drivers include Wi-Fi drivers, sensor drivers, positioning module drivers, etc. The hardware abstraction layer 25 is an encapsulation of the kernel driver, providing an interface to the framework 29 and shielding the low-level implementation details. The hardware abstraction layer 25 runs in the user space, while the kernel driver runs in the kernel space.
[0133] The library and runtime 27 is also called the runtime library, which provides the required library files and execution environment for the executable program at runtime. The library and runtime 27 includes the Android Runtime (ART) 271 and the library 273. ART271 is a virtual machine or virtual machine instance that can convert the bytecode of the application into machine code. The library 273 is a program library that provides support for the executable program at runtime, including a browser engine (such as webkit), a script execution engine (such as a JavaScript engine), a graphics processing engine, etc.
[0134] The framework 27 is used to provide various basic common components and services for the application programs in the application layer 31, such as window management, location management, etc. The framework 27 may include a phone manager 291, a resource manager 293, a location manager 295, and the like.
[0135] The functions of the various components of the operating system 261 described above can be implemented by the application processor 201 executing the program stored in the memory 205 .
[0136] Those skilled in the art will appreciate that the electronic device 100 may include Figure 2 Fewer or more components than shown, Figure 2 The electronic device shown only includes components that are more relevant to the multiple implementations disclosed in the embodiments of the present application.
[0137] The method provided in this application can be applied to various scenarios where users use terminals, such as when users use terminals while walking, when users use terminals outdoors, etc. For example, taking the use of mobile phones as an example, the use of mobile phones while walking has become more and more common, and the resulting safety accidents are more frequent. The number of people who fall or bump into other things due to using mobile phones is increasing. Since mobile phone users spend very little time observing the surrounding environment while walking, they need to use mobile phones to assist in sensing the status of pedestrians and the surrounding walking environment, so as to help mobile phone users avoid dangerous situations.
[0138] For example, some existing pedestrian safety perception methods mainly collect smartphone inertial sensor data when users walk to perform gait division and terrain judgment, and remind pedestrians of dangerous conditions. Specifically, the mobile phone posture data can be collected and preprocessed, the starting position of the gait cycle can be divided, the gait characteristics within the cycle can be obtained, the walking event can be identified and the terrain of the walking event can be modeled. If it is judged to be a road, the user will be prompted; the gait cycle division with dynamically adjusted thresholds and the method of judging the normal walking cycle by finite state machines are used, and the upper and lower shoulders are judged by dynamic thresholds. The time domain and frequency domain features of the corresponding cycle are extracted for classification to make judgments on the user's walking state and the terrain experienced. However, using only a small amount of data for SVM modeling may not accurately perceive the user's behavior.
[0139] For another example, in some existing pedestrian safety perception methods, the data of the accelerometer and gyroscope are integrated to build a vector model of acceleration and gyroscope fusion for behavior calculation. Specifically, it can determine whether the mobile phone is in use. If it is, the phone's vertical acceleration and linear acceleration are read, and the use status of the mobile phone is calculated using a formula. If the vector value of the current user status is greater than the preset acceleration threshold, an alarm message is sent through the mobile phone. The figure below is a vector model of acceleration and gyroscope fusion. In this behavioral safety perception method, a motion model algorithm is used to calculate user behavior through a mathematical algorithm, and the perception of user behavior may be inaccurate. In addition, the environmental perception using the mobile phone's GPS or map grid data has a coarse distance granularity, and the perceived environment may be inaccurate.
[0140] Therefore, the present application provides a method for identifying user safety status, which can realize a safety warning system based on real-time multimodal pedestrian status perception and visual three-dimensional reconstruction, using terminal sensors to assist in perceiving pedestrian status and the surrounding walking environment, and help users using the terminal avoid dangerous situations.
[0141] First, to facilitate understanding, an application scenario of the method provided in the present application is exemplified.
[0142] For example, the method provided in this application can be applied to the process of a user using a terminal while walking outdoors, such as Figure 3 As shown, the user can hold a mobile terminal, such as a mobile phone, bracelet, watch, or smart glasses, while walking outdoors. For example, when walking, if the user needs to use a mobile phone, such as to check information or make a call, the user may not observe the environment enough during the use of the mobile phone, which may easily put the user in a dangerous environment. The method provided in this application can be deployed in a terminal. When the user uses the terminal, the method provided in this application can be used to perceive the user's walking status and environment, so that the user can promptly know whether the user's environment is safe through the terminal, thereby improving the safety of the user's use of the terminal.
[0143] The following is an introduction to the process of the user security status identification method provided by this application.
[0144] See also Figure 4 , a flow chart of a user security status identification method provided in this application is described as follows.
[0145] 401. Acquire sensing information collected by at least one sensor in a terminal.
[0146] Among them, one or more sensors can be set in the terminal, which can be used to sense the change of the terminal's posture and output sensing information.
[0147] For example, when a user is using a terminal while in motion, the position and posture of the terminal may change with the user's motion. Therefore, the sensor provided in the terminal may be used to sense the change in the position and posture of the terminal so as to subsequently calculate the current motion state of the user using the terminal.
[0148] Specifically, the at least one sensor mentioned above may include but is not limited to one or more of the following: pressure sensor, gyroscope sensor, air pressure sensor, magnetic sensor, acceleration sensor, distance sensor, proximity light sensor, fingerprint sensor, temperature sensor, touch sensor, ambient light sensor, bone conduction sensor, motion sensor or position sensor, etc.
[0149] 402. Acquire an image of the environment in which the terminal is currently located in real time.
[0150] Among them, the image of the environment in which the terminal is currently located can be obtained based on the information collected by the image sensor. The image sensor may include an image sensor set in the terminal, or an image sensor in one or more devices connected to the terminal, which can be used to collect the image of the environment in which the terminal is located in real time.
[0151] For example, the image sensor set in the terminal can be used to collect images of the environment in which the terminal is currently located in real time, so that the environment in which the terminal is located can be perceived in real time, so that the safety of the user's environment can be known in real time. For example, when a user uses a mobile phone, the camera set in the mobile phone can be used to collect images within the field of view, so as to know the specific situation of the user's current environment.
[0152] For another example, if a user is using a mobile phone while also wearing a wearable device such as a bracelet or smart glasses, and the wearable device is connected to the mobile phone, in addition to collecting images of the terminal's current environment through the camera set in the mobile phone, the wearable device can also be used to collect images of the terminal's current environment. In this way, images of the terminal's current environment can be obtained from multiple devices, and more comprehensive information can be collected.
[0153] It should be noted that the present application does not limit the order of collecting sensing information and images, that is, step 401 can be performed first, or step 402 can be performed first, or step 401 and step 402 can be performed simultaneously, which can be determined according to the actual application scenario.
[0154] 403. Identify the user's safety status based on the sensing information and the image.
[0155] After collecting the sensing information and the image of the environment in which the terminal is currently located, the user's current safety status can be identified based on the sensing information and the image of the environment in which the terminal is currently located. Among them, the sensing information can be used to identify the user's motion state, and the image of the environment in which the terminal is currently located can be used to perceive the user's environment in real time, thereby combining the user's own motion state and the real-time environment to identify the user's safety status, so as to facilitate further processing of the user's safety status in a timely manner.
[0156] Therefore, in the implementation of the present application, the user's current motion state can be represented by the information collected by the terminal sensor, and the image of the user's current environment can be collected in real time, so as to more accurately identify the safety level of the user's current state by combining the user's motion state and environmental safety. This allows for further processing of the user's safety state in a timely manner, thereby improving the safety of the user's use of the terminal.
[0157] In a possible implementation, the user's current behavior can be identified through sensing information; and the user's real-time position in the environment can be determined based on the image of the environment in which the terminal is currently located; based on the current behavior and the user's position in the environment, the user's safety level in the environment can be identified to obtain a safety status. In the implementation of the present application, the user's current behavior can be identified through sensing information, such as whether the terminal is being operated or whether the terminal is being walked, etc., and the user's current environment and the user's position in the environment can be identified in combination with the real-time collected image, thereby identifying whether there may be obstacles in the environment that may affect the user's safety or whether the user is in a safe area, etc., based on the user's current behavior, the user's current environment, and the user's position in the environment, thereby jointly identifying the user's safety status to obtain a more accurate safety status.
[0158] In a possible implementation, the environment can be reconstructed in three dimensions based on the image information to obtain a three-dimensional model of the user's environment and the user's position in the three-dimensional model of the environment. The user's safety status can be identified by combining the user's current behavior with the three-dimensional model of the environment. Therefore, in the implementation of the present application, based on the information collected by the sensor to predict the user's current behavior, the user's environment is modeled in combination with the image of the environment in which the terminal is currently located collected in real time, thereby accurately identifying the user's safety status by combining the user's motion status and the real-time environment.
[0159] In a possible implementation, it is possible to identify whether the user is currently operating the terminal based on the current behavior to obtain a first identification result; to identify whether the user is in a safe area based on the current behavior and the user's position in the environment to obtain a second identification result; and to identify the user's safety level in the environment in combination with the first identification result and the second identification result to obtain a safety status. In the implementation of the present application, the user's safety level can be jointly identified in combination with the user's current behavior, the user's real-time environment, and the user's position in the real-time environment, thereby more accurately identifying the user's safety status. For example, when the user is operating the terminal and walking, if the user is in a non-safe area at this time, it means that the user's safety level is low.
[0160] It can be understood that the user's current behavior can be identified through sensing information, such as whether the user is operating a mobile phone, walking or running, etc. At the same time, the obstacles in the user's current environment or whether the user's current area is a safe area can be identified through the collected real-time environment image, so as to identify the safety level of the user's current location. The user's current behavior and the safety level of the user's current location can be combined to identify the user's safety level in the environment and output the safety status. For example, it can be identified whether the user is operating the terminal while walking or running, and whether the user's current location is on the sidewalk or driveway, etc., so as to identify the user's safety level.
[0161] In a possible implementation, before predicting the current behavior of the user, a pre-stored model can be trained offline. Specifically, a data set can be collected, which may include data generated by the historical behavior of one or more users, and then the prediction model is learned based on the data set. The sensing information can then be used as the input of the prediction model to output the current behavior of the user, that is, the specific behavior of the user when currently using the terminal, such as walking, standing still, sliding the screen, staring at the screen, etc.
[0162] The prediction model may specifically be a support vector machine (SVM), a decision tree model or a logistic regression model and a learning model thereof.
[0163] Optionally, the data set can also be preprocessed, such as downsampling the data of a certain category in the data set that is greater than a certain amount of data, thereby reducing the proportion of this type of data, making the distribution of each category in the data more even, and making the output result of the trained prediction model more accurate.
[0164] Therefore, in the implementation of the present application, the user's historical data can be used for machine learning to obtain a prediction model. When identifying the user's safety status, the prediction model can be used to identify the user's behavior, thereby knowing the user's current motion status.
[0165] In addition, optionally, the user's historical behavior data can also be obtained, including data generated by the user's historical behavior, and the historical behavior data can be used to correct the current behavior output by the prediction model, thereby obtaining the corrected current behavior. Therefore, in the implementation of the present application, the output result of the prediction model can also be corrected in combination with the user's historical data, thereby further improving the accuracy of the user's behavior recognition.
[0166] Specifically, a graph representation can be constructed based on multiple elements in the user's historical behavior data, such as user, scenario or behavior elements, and the graph representation includes the association relationship between the multiple elements. Then, the behavior generated by the user in the historical period or the behavior generated by the user in the current position can be determined through the graph representation, and the current behavior is corrected to obtain the corrected current behavior. Therefore, in the implementation mode of the present application, a graph representation can be constructed based on the user's historical behavior data, so as to correct the current behavior output by the prediction model in combination with the association relationship between the multiple elements in the user's historical behavior, so as to obtain a more accurate current behavior.
[0167] Optionally, the specific steps of correcting the current behavior may include: first determine the current spatiotemporal node, that is, the time and space where the user is currently located as a node, and obtain the behavior corresponding to the previous spatiotemporal node corresponding to the current spatiotemporal node in the graph representation, the previous spatiotemporal node is a moment node or position node included in the historical period, such as the previous time point or the same space point in the cycle can be used as the previous spatiotemporal node; then the similarity between the behavior corresponding to the previous spatiotemporal node and the current behavior can be calculated, and based on the similarity between the behavior corresponding to the previous spatiotemporal node and the current behavior; based on the similarity between the behavior corresponding to the previous spatiotemporal node and the current behavior, the current behavior is corrected to obtain the corrected current behavior. Therefore, in the implementation of the present application, the information corresponding to the previous spatiotemporal node can be queried from the graph representation, so as to compare the behavior similarity between the previous spatiotemporal node and the current spatiotemporal node, and then the current behavior is corrected based on the similarity. It is equivalent to using the spatiotemporal coherence of user behavior to correct the user's current behavior, so that the predicted current behavior is more reasonable.
[0168] Furthermore, in a possible scenario, in the process of correcting the current behavior, it is possible to identify whether the user's behavior in the previous space-time node matches the current behavior based on the similarity between the behavior corresponding to the previous space-time node and the current behavior; if the user's behavior in the previous space-time node matches the current behavior, the current behavior is used as the corrected current behavior; if the user's behavior in the previous space-time node does not match the current behavior, the category of the current behavior is adjusted according to the confidence corresponding to the current behavior to obtain the corrected current behavior.
[0169] In a possible implementation, when identifying the security status of the user, the security status can be divided into multiple types, such as very safe, generally safe, unsafe, etc., where the safety level of the unsafe state is lower than that of the generally safe state. When the user is in a very safe state, no subsequent processing is required. When the user is in a very dangerous state (which can also be called the first state for easy distinction), the terminal used by the user can be shut down, so that the user pays attention to the safety of the environment; when the user is in a generally dangerous state (which can also be called the second state for easy distinction), an alarm message can be generated and played, and the alarm message is used to remind the user to pay attention to safety, thereby improving the safety of the user when using the terminal.
[0170] For example, when the user is in a non-stationary state when operating the terminal and the user is in the lane, the terminal screen can be turned off. The second state indicates that the user is in a non-stationary state when operating the terminal on the sidewalk and there are obstacles on the sidewalk. An alarm can be issued in the terminal, such as playing voice or popping up a dialog box, thereby improving user safety.
[0171] The above introduces the process of the user security status identification method provided by the present application. The following introduces the process of the user security status identification method provided by the present application in detail in combination with specific application scenarios.
[0172] First of all, the method provided in the present application can be deployed in the terminal as a system function of the terminal, and can also be deployed in the terminal in the form of an app.
[0173] For example, the method provided in this application can be deployed as a function in a terminal. Figure 5 As shown, the user can choose whether to turn on the security reminder function in the system setting interface of the terminal. If the user chooses to turn on this function, when it is detected that the user is in a non-stationary state, the user's security status can be identified in real time through the method steps provided by this application, so that when the user is in an unsafe situation, the user can be warned or the terminal can be shut down, thereby improving the safety of the user's use of the terminal.
[0174] For example, Figure 6 As shown, the method provided by the present application can be installed in the terminal system in the form of an app. When the user is in a non-static state, the app can be actively opened. When the app is running, the user's security status can be identified in real time through the method steps provided by the present application. When the user is in an unsafe situation, an alarm can be issued to the user or the terminal can be shut down, thereby improving the safety of the user's use of the terminal.
[0175] Specifically, the method provided in this application can be divided into multiple parts. Figure 7 As shown, it can be divided into user behavior perception, environment perception, security level identification and multimodal alarm. Each part is introduced below.
[0176] 1. User Behavior Perception
[0177] In the user behavior perception part, multimodal pedestrian status perception can be achieved based on the pedestrian's location status (combined with mobile phone positioning information), mobile phone holding status, walking status or screen operation status information.
[0178] Specifically, the user behavior perception part can be divided into an offline calculation part and an online reasoning part, such as Figure 8 shown.
[0179] Among them, the offline computing part can include the construction of a user / situation / task (user situation task, UST) graph representation based on a directed acyclic graph (DAG) and a data-driven user intent primary perception computing model, that is, the construction of a prediction model.
[0180] 1. Graph representation G construction
[0181] like Figure 8 As shown in , UST survey data of one or more users may be obtained first, and then the UST survey data of the one or more users may be used to construct a DAG to obtain a UST graph representation. The UST survey data may include data generated by historical behaviors of one or more users.
[0182] In the implementation mode of the present application, a DAG-based UST graph representation can be constructed by combining user-context-behavior state. In subsequent calculations, the user behavior state perception UST graph representation is used as a benchmark to perform consistency verification and correction on the primary perception results of the user behavior state, so as to obtain more accurate and more interpretable user behavior state perception calculation results. For example, the constructed UST graph representation can be as follows: Fig. 9 As shown in the figure, taking a day, i.e. 24 hours, as an example, the user's location, behavior, and movement status at different time periods are counted separately. Nodes of different shapes can represent different types of elements, and elements with related relationships are associated. For example, 24 hours can be divided into multiple time periods, such as Fig. 9 In the time periods 0-5, 5-8, 8-11, 11-14, 14-17, 17-20, 20-24, etc. shown in the figure, users may be in different locations at different time periods, such as dormitories, laboratories, canteens, libraries, teaching buildings, campus gardens, playgrounds or gymnasiums, etc. Users' possible behaviors may include resting, playing games, chatting, studying, team building, campus activities, walking / strolling, meetings, classes, working, doing experiments, listening to lectures or exercising, etc. The user's movement state can be divided into stationary, walking, strolling, running or cycling, etc., and the various elements are associated to obtain a UST diagram representation.
[0183] 2. Prediction model construction
[0184] Before pre-training the prediction model, historical multimodal data generated by one or more users may be obtained, which may include location information, sensor data, mobile phone operation data, or other auxiliary data.
[0185] Among them, location information may include longitude and latitude information; sensor data may include information collected by sensors such as acceleration sensors, gravity sensors, and gyroscope sensors; mobile phone operation information may obtain count information of click events and mobile phone screen operations; other auxiliary data may include but are not limited to date, time, week, weather and other data.
[0186] Among them, the acquisition method of multimodal data can be collected through the terminal. For example, taking a mobile phone equipped with the Android system as an example, data collection can be achieved by building an APP in the mobile phone. For example, the location information uses the fusion positioning method, uses the positioning method provided by the Android system, and combines the three-party positioning method to obtain longitude and latitude information; sensor data can be obtained by implementing the SensorEventListener interface of the Android system, calling the sensor SensorManager object to register the listener for the sensor, overriding the onSensorChanged (SensorEvent event) method, and finally obtaining the sensor type and sensor data through the event; mobile phone operation information can be obtained through the accessibility service, inheriting and implementing the AccessbilityService class to pass in the click event type to obtain event information; the click field represents the click event, the longClick field represents the long press event, the scroll field represents the slide event, the textChange field represents the text modification event, the select field represents the selection event, and other auxiliary fields are implemented by calling the interface provided by the system.
[0187] For example, user operation data may be shown in Table 1.
[0188]
[0189] Table 1
[0190] The collected sensor data can be shown in Table 2.
[0191]
[0192] Table 2
[0193] Usually, the collected data can form a high-dimensional vector that describes the user, situation and behavior state. It can include time data, location data, user operation data and sensor data; time data can include year, month, day, hour, minute, second, day of the week or holiday, etc.; location data can include longitude, latitude, building semantics or building type, etc.; user operation data can include the number of click events, the number of long press events, the number of sliding events, the number of text modification events or the number of selection events within a fixed time period, etc.; sensor data includes acceleration sensor, gravity sensor, magnetic field sensor, direction sensor, gyroscope sensor, linear acceleration sensor, uncalibrated magnetic sensor, game rotation vector sensor, uncalibrated gyroscope sensor or rotation vector sensor, etc.; use the above data as input variables, perform feature screening, and screen out important feature data as feature parameters for user behavior state perception calculation.
[0194] After the data features are characterized, in order to improve the quality of training data, the collected data is cleaned; for each target parameter, considering the imbalance of data distribution, the extremely dominant (for example, extremely large number) data labels can be downsampled to form the final training data set.
[0195] This application takes the selection of SVM as a prediction model to construct a primary perception model of user behavior status as an example. SVM can classify data groups based on hyperplanes. For linearly separable patterns, the best hyperplane is sought for separation; for linearly inseparable patterns, the original data is transformed and mapped to a new space (which can be understood as a kernel function) and then processed. The data set is divided into a training set and a test set in a ratio of 7:3 (of course, it can also be replaced with other ratios, specifically according to the actual scenario, this is a historical introduction), and the cross-validation method is used during the training process to repeatedly train and optimize the model until the model is stable.
[0196] 3. Online prediction
[0197] In the online prediction part, real-time data can be collected through the terminal's sensors. The collected sensor data can form an instant UST high-dimensional vector and serve as the input of the prediction model to output the user's current behavior prediction.
[0198] Generally, the prediction model can be used to output one or more behaviors and the corresponding probability of each behavior. For example, the predicted user behaviors and probabilities may include: (rest, 16%), (chatting, 45%), (running, 98%), (walking, 90%), and the behavior with the highest probability can be used as the current behavior and output. In addition, the confidence of each predicted behavior can also be output, that is, the credibility of the prediction results of each behavior.
[0199] 4. Consistency Check
[0200] In order to improve the accuracy of the predicted behavior, the UST graph representation can be used to perform consistency verification to obtain a more accurate current behavior.
[0201] Specifically, after establishing the primary perception model of user intention, the user intention perception model can be further used to predict user behavior, and the output results of the primary perception model of user intention can be combined with the DAG graph of UST to perform consistency verification and correction to produce more accurate and more explanatory user intention perception results. The overall idea of consistency verification is to further use the user behavior state perception UST model, that is, the DAG graph representation of UST, to perform consistency verification and correction on the output results of the primary perception model of user behavior state after establishing the primary perception model of user behavior state, so as to produce more accurate and more explanatory user behavior state perception results.
[0202] Exemplarily, the consistency check step can be as follows: Fig.10 shown.
[0203] 1001. Calculate the current space-time node of the user according to the UST model.
[0204] After the UST graph representation is constructed, the user's current space-time node can be queried. For example, the user's time or space coordinates in the UST graph representation can be queried as the user's current space-time node.
[0205] 1002. Determine whether the previous space-time node matches the current space-time node. If so, continue to execute step 1003; if not, execute step 1009.
[0206] Among them, the previous space-time node corresponding to the current space-time node can be obtained, such as taking the previous time point or the previous location as the previous space-time node.
[0207] Specifically, the similarity between the information of the previous space-time node and the information of the current space-time node can be determined. For example, it can be determined whether the current space-time node is continuous with the previous space-time node, such as whether the distance between the spatial positions corresponding to the current space-time node and the previous space-time node is less than the preset distance. If the distance is less than the preset distance, it means that the previous space-time node matches the current space-time node. If the distance is not less than the preset distance, it means that the previous space-time node does not match the current space-time node. Alternatively, the similarity between the collected sensing information can also be calculated. If the similarity is higher than the preset value, it means that there is space-time coherence between the current space-time node and the previous space-time node, and subsequent correction can be performed. If the similarity is not higher than the preset value, it means that there may be no space-time coherence between the current space-time node and the previous space-time node, such as positioning error.
[0208] 1003. Determine whether the current behavior is consistent with the previous prediction result. If not, execute step 1004. If yes, execute step 1008.
[0209] You can continue to judge whether the current behavior predicted is consistent with the last predicted behavior. If the current behavior is consistent with the last predicted behavior, you can save the current behavior and output it. If the current behavior is inconsistent with the last predicted behavior, it means that there may be a prediction error. For example, if the behavior predicted at the last time node is walking, if the current behavior is predicted to be cycling, it means that the predicted current behavior may be inaccurate, and the predicted current behavior needs to be further corrected.
[0210] 1004. Perform calculation based on confidence and prediction probability. If the requirements are met, execute step 1005; if the requirements are not met, execute step 1009.
[0211] If the current predicted behavior is inconsistent with the behavior predicted last time, the confidence and prediction probability of each behavior included in the prediction result output by the prediction model can be calculated to filter out whether there are other pre-stored behaviors with higher confidence and higher prediction probability. If not, the prediction can be made again, that is, step 1009 is executed.
[0212] 1005. Identify whether the behavior category that meets the requirements is a preset category. If so, execute step 1006.
[0213] When there are multiple prediction results that meet the requirements in the output of the prediction model, it can be determined whether the categories of the multiple prediction results that meet the requirements are consistent with the category of the current behavior or the category of the behavior predicted last time. If they are consistent, correction can be continued; if they are inconsistent, correction can be terminated.
[0214] 1006. Modify the current prediction type to a category with a lower prediction probability than the current behavior.
[0215] When there is a behavior in the result output by the prediction model that is consistent with the category of the current behavior or the category of the behavior predicted last time, the category of the current behavior can be modified to the category of the behavior.
[0216] For example, if the current behavior is predicted to be cycling, and the behavior predicted at the previous time point was walking, it means that the predicted current behavior may be wrong. If there is still a behavior with high confidence and prediction probability of walking in the output result of the prediction model, the category of the current behavior can be modified to walking, so as to correct the predicted current behavior.
[0217] 1007 . Determine whether the category of the current behavior after modification is consistent with the category of the predicted behavior at the previous moment. If so, execute step 1008 ; if not, execute step 1009 .
[0218] After modifying the category of the current behavior, you can continue to determine whether the category of the modified current behavior is consistent with the category of the predicted behavior at the previous time point. If they are consistent, you can save the category perception result of the current behavior. If they are inconsistent, you can recharge and save the category and the credible result.
[0219] 1008. Save the perception result of the current category.
[0220] After the current behavior is corrected, the corrected current behavior can be saved.
[0221] 1009. Reset saved categories and trusted results.
[0222] When the current behavior is confirmed to be abnormal, the category of the current behavior can be reset, that is, the current behavior can be re-predicted.
[0223] In the implementation mode of the present application, correction is performed according to the characteristics of the predicted data. By analyzing and comparing the data obtained by the prediction model and the original annotated data, the similarities and differences between the predicted data and the original annotated data are obtained, and then rules are specified to reduce the differences and expand the similarities, thereby improving the accuracy of the user's intention perception results. Correction is made using the spatiotemporal coherence of user behavior. Usually, in the same period of time and the same place, the user's behavior activities will have certain similarities. Based on this feature, UST can be used to determine the time and place where the user is located. If the user is in the same place for a continuous period of time, but the predicted results are different from the previous ones, the predicted results can be corrected under certain conditions. After the consistency check, a user behavior status result with higher accuracy and easier to explain is output. Therefore, in the implementation mode of the present application, the predicted current behavior can be corrected in combination with historical prediction data to obtain accurate predicted behavior.
[0224] 2. Environmental Perception
[0225] When using a terminal, the user can use the image sensor in the terminal or the image sensors of other terminals connected to the terminal to collect the user's environment information in real time. Based on the collected environment information, the user's environment is three-dimensionally modeled, so that the user's environment can be known more timely and accurately.
[0226] For example, you can use the video captured by the phone's camera to perform visual 3D reconstruction based on 3D point cloud or motion recovery structure, and use the phone's positioning system as auxiliary information; the captured video and images are preprocessed, segmented, triangulated, and meshed to obtain a point cloud data set. Use motion recovery structure to extract and match the feature points of the image / video, select a group of scene pictures / videos to estimate the camera pose, and reconstruct the 3D coordinate points. You can use the Bundle Adjustment method to optimize, and repeat the reconstruction of 3D coordinate points and optimization steps for each of the remaining scenes to perform 3D reconstruction; achieve perception of the surrounding walking environment.
[0227] 3. Safety Level Determination
[0228] After identifying the user's current behavior, terminal operation status, and user environment, the user's security level can be determined. The user's security status can be divided into multiple levels, such as safe, relatively dangerous, or severely dangerous. Different security levels can be used to represent different degrees of security status, so that different degrees of warning can be issued according to different security levels.
[0229] For example, the danger level can be defined based on the user's behavior status, the mobile phone operation status, and the current road network and road status; the pedestrian's behavior status is obtained based on S2, and a pedestrian crossing the road on the driving lane while looking at the mobile phone is a serious danger safety level; an obstacle ahead or an uneven ground ahead is a general danger safety level.
[0230] 4. Multimodal Alerts
[0231] According to different security levels, different warning methods can be used for warning.
[0232] For example, an alarm can be triggered based on the danger level. A general danger safety level can trigger the playback of voice or dialog boxes, etc.; a black screen reminder can be used when the safety level is severe. For example, the danger level is defined based on the user's behavior, the phone's operating status, and the current road network and road status; a pedestrian crossing the road while looking at the phone is a severe danger safety level; an obstacle or uneven ground ahead is a general danger safety level; a general danger safety level can trigger the playback of voice and dialog boxes; a black screen reminder can be used when the safety level is severe.
[0233] Therefore, in the implementation of this application, the machine learning algorithm is combined with the DAG-based UST expression to achieve multimodal pedestrian state perception and safety risk identification. Visual 3D reconstruction is also performed based on 3D point cloud and motion recovery structure to achieve perception of the surrounding walking environment.
[0234] The following exemplarily introduces the process of the user safety status identification method provided in the present application by taking the detection process when the user is walking outdoors as an example.
[0235] See also Fig.11 , a flow chart of another method for identifying user security status provided by the present application is described as follows.
[0236] The method provided in this application can be divided into multiple parts, such as Fig.11 As shown in:
[0237] 1101. Data collection.
[0238] When a user uses a terminal, the sensor provided in the terminal may be used to collect sensing information of the position and posture transformation of the terminal.
[0239] For example, the user's motion information can be collected through the acceleration sensor set in the terminal, and the user's terminal operation information can be collected through the user's operation information on the terminal recorded in the terminal, such as clicking the screen, the main view screen, or sliding the touch screen, etc. The user's positioning information can also be collected through the positioning module set in the terminal.
[0240] For example, multimodal data collection is achieved through a self-built APP, and the data includes sensor data, mobile phone operation data, location information and time data; sensor data is acquired by implementing the SensorEventListener interface of the Android system, calling the sensor SensorManager object to register a listener for the sensor, overriding the onSensorChanged(SensorEventevent) method, and finally obtaining the sensor type and sensor data through the event; mobile phone operation and status change information is obtained through accessibility services, inheriting and implementing the AccessbilityService class to pass in the click event type to obtain event information; location information uses a fusion positioning method to obtain GPS-related information, including longitude, latitude, altitude and positioning method, and data collection is achieved through programming.
[0241] 1102. User behavior perception.
[0242] After collecting the user's sensing information through the sensor in the terminal, the user's behavior can be identified through the pre-set user intention perception model.
[0243] Taking a mobile phone as an example, it is possible to determine whether the user is walking. If the user is walking, it is possible to determine whether the user is operating the mobile phone. If so, it is possible to determine the user's safety status in combination with subsequent environmental perception information. Of course, if the user is not walking, the user's behavior can be continuously perceived, and when the user is walking, the subsequent safety status recognition can be triggered.
[0244] After user behavior perception, DAG can also be used to represent the relationship between users, situations and behavior states required for user behavior state perception. The purpose is to use the user behavior state perception UST graph as a benchmark in subsequent calculations to perform consistency verification and correction on the primary perception results of user behavior states, so as to obtain more accurate and more explainable user intention perception calculation results, which can be achieved through questionnaires combined with collected user historical data.
[0245] In addition, when performing user behavior perception, the input of the user intention perception model can include multimodal feature parameters. For example, for the user intention perception model, feature parameter screening and target parameter injection can be performed, with multimodal data as input, time data (2D), location data (5D), mobile phone operation data (5D) and sensor data (42D) as input features; behavior state as target parameter and injected into the data set. The selected features can be shown in Table 3 below.
[0246]
[0247] Table 3
[0248] During the consistency check, based on the user's spatiotemporal coherence, the location node at the current moment is determined according to the directed acyclic graph of the UST model. If it is consistent with the previous moment, it proceeds to the next step, otherwise the saved location information and category information are reset.
[0249] Compare the currently predicted category information with the predicted behavior category information of the previous moment. If they are consistent, it means that the predicted behavior does not need to be adjusted, and the probability of the category of the current behavior is saved. If they are inconsistent, determine whether the current modification requirements are met. If they meet the modification requirements, they can be machine washed for correction, otherwise reset the category information and credible results. And determine whether the currently predicted category is a pre-set state, such as walking and strolling. If so, modify the category to the second most likely prediction result, and modify the category information and credible result set according to the modified result.
[0250] 1103. Three-dimensional modeling.
[0251] Among them, a camera set in the terminal can be used to collect multiple frames of images, or video information, in real time. Then, three-dimensional modeling is performed based on the collected video information, and specifically, reconstruction can be performed through motion recovery structure or three-dimensional point cloud, so as to build a model of the environment where the user is located.
[0252] 1104. Environmental perception.
[0253] After the three-dimensional modeling of the environment where the user is located is performed, the environment where the user is currently located can be identified based on the specific position of the user in the environment space. For example, it can be identified whether the user is in a lane. If the user is in a lane, it can be combined with the identification result of the user operating the mobile phone to determine whether the user is in a dangerous state, that is, step 1006 is executed.
[0254] 1105. Hazard identification.
[0255] After user behavior perception and environment perception, joint recognition can be performed based on the user behavior perception results and the environment perception results to identify whether the user is in a dangerous state, that is, to identify the user's safety state.
[0256] For example, when the user is walking and operating the mobile phone, it is possible to continue to determine whether the user is in the lane. If the user is in the lane, as shown in the figure, Fig.12 As shown, it is determined that the user is in a serious danger state, that is, the first state. If the user is walking and operating the mobile phone, and the user is not in the driveway, it can be further determined whether the user is on the sidewalk. If the user is on the sidewalk, Fig.13As shown, it is possible to continue to determine whether there are obstacles on the road surface. If there are obstacles, such as vehicles, road signs, etc. on the road surface, or depressions or protrusions on the road surface, Fig.14 As shown, it can be determined that the user is currently in a general dangerous state, that is, the second state.
[0257] 1106. Security warning.
[0258] When the user's security status is identified, different modes of security warnings can be issued based on different security statuses. For example, for a serious danger status, as mentioned above Fig.12 As shown in the figure, when the user is in the lane and operating the terminal, the user is in a very dangerous state. At this time, the phone can be turned off to allow the user to observe the environment and improve user safety. Fig.13 or Fig.14 As shown, voice broadcast or pop-up dialog box can be performed in the mobile phone, such as Fig.15 As shown, it reminds users to pay attention to safety and improves user safety.
[0259] For example, the early warning method may be as shown in Table 4.
[0260]
[0261] Table 4
[0262] This application provides a safety warning system based on real-time multimodal pedestrian state perception and visual three-dimensional reconstruction. The most innovative feature is to integrate the machine learning algorithm with the DAG-based UST expression two-level model based on the information of the pedestrian's position state (combined with mobile phone positioning information), mobile phone holding state, walking state, and screen operation state, to achieve multimodal user behavior state perception, and to achieve the perception of the surrounding walking environment based on visual three-dimensional reconstruction, and then perform safety level judgment to achieve multimodal warning. Therefore, in the implementation of this application, terminal sensors can be used to assist in the perception of pedestrian status and the surrounding walking environment, helping users using the terminal to avoid dangerous situations.
[0263] The above has introduced in detail the process of the method provided by the present application. The following is an introduction to the device for executing the method provided by the present application.
[0264] See also Fig.16 , the present application provides a user security status identification device, comprising:
[0265] The sensing module 1601 is used to obtain sensing information collected by at least one sensor in the terminal, where the sensing information includes information used to represent the position and posture of the terminal;
[0266] The image acquisition module 1602 is used to acquire an image of the environment in which the terminal is currently located;
[0267] The identification module 1603 is used to determine the user's safety status based on the sensing information and the image of the environment in which the terminal is currently located. The safety status is used to indicate the user's safety level in the environment.
[0268] In a possible implementation, the identification module 1603 is specifically used to: identify the user's current behavior through sensing information; determine the user's position in the environment based on an image of the environment in which the terminal is currently located; and identify the user's safety level in the environment based on the current behavior and the user's position in the environment to obtain a safety status.
[0269] In a possible implementation, the recognition module 1603 is specifically configured to: perform three-dimensional reconstruction of the environment according to the image of the environment where the terminal is located, and obtain a three-dimensional model of the user's environment and the user's position in the three-dimensional model of the environment.
[0270] In a possible implementation, the identification module 1603 is specifically used to: identify whether the user is currently operating the terminal based on the current behavior to obtain a first identification result; identify whether the user is in a safe area based on the current behavior and the user's position in the environment to obtain a second identification result; and identify the user's safety level in the environment by combining the first identification result and the second identification result to obtain a safety status.
[0271] In a possible implementation, the identification module 1603 is specifically used to: obtain a data set, the data set including data generated by historical behavior of at least one user; obtain a behavior prediction model based on the data set; and determine the user's current behavior based on the sensing information and the behavior prediction model.
[0272] In a possible implementation, the device further includes: a correction module 1604, which is used to: obtain historical behavior data of the user, the historical behavior data including data generated by the user's historical behavior; and correct the current behavior according to the historical behavior data to obtain the corrected current behavior.
[0273] In one possible implementation, the correction module 1604 is specifically used to: construct a graph representation based on multiple elements in the historical behavior data, wherein the graph representation includes the association relationship between the multiple elements; determine the behavior generated by the user in the historical period or the behavior generated by the user at the current location through the graph representation, correct the current behavior, and obtain the corrected current behavior.
[0274] In one possible implementation, the correction module 1604 is specifically used to: obtain the behavior corresponding to the previous space-time node corresponding to the current space-time node in the graph representation, where the previous space-time node is a moment node or a position node included in the historical period; obtain the similarity between the behavior corresponding to the previous space-time node and the current behavior; and correct the current behavior based on the similarity between the behavior corresponding to the previous space-time node and the current behavior to obtain the corrected current behavior.
[0275] In one possible implementation, the correction module 1604 is specifically used to: identify whether the user's behavior in the previous space-time node matches the current behavior based on the similarity between the behavior corresponding to the previous space-time node and the current behavior; if the user's behavior in the previous space-time node matches the current behavior, use the current behavior as the corrected current behavior; if the user's behavior in the previous space-time node does not match the current behavior, adjust the category of the current behavior based on the confidence level corresponding to the current behavior to obtain the corrected current behavior.
[0276] In a possible implementation, the sensing module 1601 is specifically configured to: collect an image of the environment in which the terminal is currently located through an image sensor of the terminal; or collect an image of the environment in which the terminal is currently located through an image sensor in a device connected to the terminal.
[0277] In a possible implementation, the device also includes: an alarm module 1605, which is used to: if the user's security status is a first status, shut down the terminal; if the user's security status is a second status, generate an alarm message for the security status and play the alarm message, and the security level of the first status is lower than the security level of the second status.
[0278] In a possible implementation, the first state indicates that the user is in a non-stationary state when operating the terminal and is in a lane, and the second state indicates that the user is in a non-stationary state when operating the terminal on a sidewalk and there are obstacles on the sidewalk.
[0279] In one possible implementation, the at least one sensor includes one or more of the following: a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, a motion sensor, or a position sensor.
[0280] See also Fig.17 , a structural schematic diagram of another user security status identification device provided by the present application is described as follows.
[0281] The user security status identification device may include a processor 1701 and a memory 1702. The processor 1701 and the memory 1702 are interconnected via a line. The memory 1702 stores program instructions and data.
[0282] The memory 1702 stores the aforementioned Fig.10 The program instructions and data corresponding to the steps in .
[0283] Processor 1701 is used to execute the above Fig.10 The method steps executed by the user security status identification device shown in any embodiment.
[0284] Optionally, the user security status identification device may further include a transceiver 1703 for receiving or sending data.
[0285] The present application also provides a computer-readable storage medium in which a program is stored. When the program is run on a computer, the computer executes the above-mentioned Figure 4-Figure 15 The illustrated embodiments describe steps in a method.
[0286] Optionally, the aforementioned Fig.17 The user security status identification device shown in is a chip.
[0287] The embodiment of the present application also provides a user security status identification device, which can also be called a digital processing chip or chip. The chip includes a processing unit and a communication interface. The processing unit obtains program instructions through the communication interface. The program instructions are executed by the processing unit. The processing unit is used to execute the aforementioned Figure 4-Figure 15 method steps.
[0288] The embodiment of the present application also provides a digital processing chip. The digital processing chip integrates a circuit and one or more interfaces for implementing the above-mentioned processor 1701 or the functions of the processor 1701. When the digital processing chip integrates a memory, the digital processing chip can complete the method steps of any one or more of the above-mentioned embodiments. When the digital processing chip does not integrate a memory, it can be connected to an external memory through a communication interface. The digital processing chip implements the actions performed by the user security status identification device in the above-mentioned embodiment according to the program code stored in the external memory.
[0289] The present application also provides a computer program product which, when executed on a computer, enables the computer to execute the above Figure 4-Figure 15 The illustrated embodiment describes the steps of the method.
[0290] Specifically, the aforementioned processing unit or processor may be a central processing unit (CPU), a neural-network processing unit (NPU), a graphics processing unit (GPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC) or a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0291] For example, see Fig.18 , Fig.18 A schematic diagram of the structure of a chip provided in an embodiment of the present application, the chip can be expressed as a neural network processor NPU 180, NPU 180 is mounted on the host CPU (Host CPU) as a coprocessor, and the host CPU assigns tasks. The core part of the NPU is the operation circuit 1803, which is controlled by the controller 1804 to extract matrix data from the memory and perform multiplication operations.
[0292] In some implementations, the operation circuit 1803 includes multiple processing units (process engines, PEs) inside. In some implementations, the operation circuit 1803 is a two-dimensional systolic array. The operation circuit 1803 can also be a one-dimensional systolic array or other electronic circuits capable of performing mathematical operations such as multiplication and addition. In some implementations, the operation circuit 1803 is a general-purpose matrix processor.
[0293] For example, assume there is an input matrix A, a weight matrix B, and an output matrix C. The operation circuit takes the corresponding data of matrix B from the weight memory 1802 and caches it on each PE in the operation circuit. The operation circuit takes the matrix A data from the input memory 1801 and performs matrix operations with matrix B. The partial results or final results of the obtained matrix are stored in the accumulator 1808.
[0294] The unified memory 1806 is used to store input data and output data. The weight data is directly transferred to the weight memory 1802 through the direct memory access controller (DMAC) 1805. The input data is also transferred to the unified memory 1806 through the DMAC.
[0295] The bus interface unit (BIU) 1810 is used for the interaction between the AXI bus and the DMAC and instruction fetch buffer (IFB) 1809 .
[0296] The bus interface unit 1810 (BIU) is used for the instruction fetch memory 1809 to obtain instructions from the external memory, and is also used for the storage unit access controller 1805 to obtain the original data of the input matrix A or the weight matrix B from the external memory.
[0297] DMAC is mainly used to transfer input data in the external memory DDR to the unified memory 1806 or to transfer weight data to the weight memory 1802 or to transfer input data to the input memory 1801.
[0298] The vector calculation unit 1807 includes multiple operation processing units, which further process the output of the operation circuit when necessary, such as vector multiplication, vector addition, exponential operation, logarithmic operation, size comparison, etc. It is mainly used for non-convolutional / fully connected layer network calculations in neural networks, such as batch normalization, pixel-level summation, upsampling of feature planes, etc.
[0299] In some implementations, the vector calculation unit 1807 can store the processed output vector to the unified memory 1806. For example, the vector calculation unit 1807 can apply a linear function and / or a nonlinear function to the output of the operation circuit 1803, such as linear interpolation of the feature plane extracted by the convolution layer, and then, for example, a vector of accumulated values to generate an activation value. In some implementations, the vector calculation unit 1807 generates a normalized value, a pixel-level summed value, or both. In some implementations, the processed output vector can be used as an activation input to the operation circuit 1803, for example, for use in a subsequent layer in a neural network.
[0300] An instruction fetch buffer 1809 connected to the controller 1804 is used to store instructions used by the controller 1804;
[0301] Unified memory 1806, input memory 1801, weight memory 1802 and instruction fetch memory 1809 are all on-chip memories. External memories are private to the NPU hardware architecture.
[0302] Among them, the operations of each layer in the recurrent neural network can be performed by the operation circuit 1803 or the vector calculation unit 1807.
[0303] The processor mentioned in any of the above can be a general-purpose central processing unit, a microprocessor, an ASIC, or one or more processors for controlling the above Figure 6-Figure 10 The method is performed by a program of an integrated circuit.
[0304] It should also be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.
[0305] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0306] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.
[0307] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or a data center that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state drive (SSD)), etc.
[0308] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
Claims
1. A method for identifying user security status, It is characterized in that include: Acquire sensing information collected by at least one sensor in a terminal, wherein the sensing information includes information used to represent a position and posture of the terminal; Acquire an image of the environment in which the terminal is currently located; The safety status of the user is determined according to the sensing information and an image of the environment in which the terminal is currently located, where the safety status is used to indicate the safety level of the user in the environment.
2. The method according to claim 1, It is characterized in that The determining the safety status of the user according to the sensing information and the image of the environment in which the terminal is currently located includes: identifying the current behavior of the user through the sensing information; Determine the position of the user in the environment according to the image of the environment currently located by the terminal; According to the current behavior and the position of the user in the environment, the safety level of the user in the environment is identified to obtain the safety status.
3. The method according to claim 2, It is characterized in that The determining the position of the user in the environment according to the image of the environment currently located by the terminal includes: The environment is three-dimensionally reconstructed according to the image of the environment in which the terminal is currently located, so as to obtain a three-dimensional model of the user's environment and the position of the user in the three-dimensional model of the environment.
4. The method according to claim 2 or 3, It is characterized in that The identifying the safety level of the user in the environment according to the current behavior and the position of the user in the environment and obtaining the safety status includes: Identify whether the user is currently operating the terminal according to the current behavior, and obtain a first identification result; According to the current behavior and the position of the user in the environment, identifying whether the user is in a safe area, and obtaining a second identification result; The first recognition result and the second recognition result are combined to identify the safety level of the user in the environment to obtain the safety status.
5. The method according to any one of claims 2 to 4, It is characterized in that The determining the current behavior of the user according to the sensing information includes: Acquire a data set, wherein the data set includes data generated by historical behavior of at least one user; Obtaining a behavior prediction model based on the data set; The current behavior of the user is determined according to the sensing information and the behavior prediction model.
6. The method according to claim 5, It is characterized in that The method further comprises: Acquire historical behavior data of the user, wherein the historical behavior data includes data generated by the historical behavior of the user; The current behavior is corrected according to the historical behavior data to obtain a corrected current behavior.
7. The method according to claim 6, It is characterized in that The correcting the current behavior according to the directed graph to obtain the corrected current behavior includes: constructing a graph representation based on the multiple elements in the historical behavior data, wherein the graph representation includes association relationships between the multiple elements; The behavior of the user in the historical period or the behavior of the user at the current location is determined by the graph representation, and the current behavior is corrected to obtain the corrected current behavior.
8. The method according to claim 7, It is characterized in that The determining, by means of the graph representation, the behavior of the user in a historical period or the behavior of the user at a current location, and correcting the current behavior to obtain the corrected current behavior includes: Obtaining a behavior corresponding to a previous spatiotemporal node corresponding to the current spatiotemporal node in the graph representation, wherein the previous spatiotemporal node is a time node or a position node included in the historical period; Obtaining the similarity between the behavior corresponding to the previous spatiotemporal node and the current behavior; According to the similarity between the behavior corresponding to the previous spatiotemporal node and the current behavior, the current behavior is corrected to obtain a corrected current behavior.
9. The method according to claim 8, It is characterized in that The correcting the current behavior according to the similarity between the behavior corresponding to the previous spatiotemporal node and the current behavior to obtain the corrected current behavior includes: According to the similarity between the behavior corresponding to the previous spatiotemporal node and the current behavior, identifying whether the behavior of the user in the previous spatiotemporal node matches the current behavior; If the user's behavior in the previous spatiotemporal node matches the current behavior, taking the current behavior as the corrected current behavior; If the behavior of the user in the previous spatiotemporal node does not match the current behavior, the category of the current behavior is adjusted according to the confidence level corresponding to the current behavior to obtain a corrected current behavior.
10. The method according to any one of claims 1 to 9, It is characterized in that The step of obtaining an image of the environment in which the terminal is currently located includes: Collecting an image of the environment in which the terminal is currently located by using an image sensor of the terminal; Alternatively, an image of the environment in which the terminal is currently located is collected by an image sensor in a device connected to the terminal.
11. The method according to any one of claims 1 to 10, It is characterized in that The method further comprises: If the security status of the user is the first status, shutting down the terminal; If the security status of the user is the second status, an alarm message is generated for the security status and the alarm message is played, and the security level of the first status is lower than the security level of the second status.
12. The method according to claim 11, It is characterized in that The first state indicates that the user is in a non-stationary state when operating the terminal and the user is in a lane, and the second state indicates that the user is in a non-stationary state when operating the terminal on a sidewalk and there are obstacles on the sidewalk.
13. The method according to any one of claims 1 to 12, It is characterized in that The at least one sensor includes one or more of the following: a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, a motion sensor or a position sensor.
14. A user security status identification device, It is characterized in that The communication processing device includes: a processor, the processor is coupled to a memory; The memory is used to store computer programs; The processor is used to execute the computer program stored in the memory so that the user security status identification device executes the method according to any one of claims 1 to 13.
15. A computer program product comprising instructions, It is characterized in that When the method is executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 13.
16. A computer-readable storage medium, It is characterized in that The method comprises instructions which, when executed on a computer, cause the computer to execute the method according to any one of claims 1 to 13.
