The following description relates to determining spatial maps based on user input and motion-sensing data derived from wireless signals.
Motion detection systems have been used to detect movement, for example, of objects in a room or an outdoor area. In some example motion detection systems, infrared or optical sensors are used to detect movement of objects in the sensor's field of view. Motion detection systems have been used in security systems, automated control systems, and other types of systems.
In some aspects of what is described here, a wireless sensing system can process wireless signals (e.g., radio frequency signals) transmitted through a space between wireless communication devices for wireless sensing applications. Example wireless sensing applications include detecting motion, which can include one or more of the following: detecting motion of objects in the space, motion tracking, localization of motion in a space, breathing detection, breathing monitoring, presence detection, gesture detection, gesture recognition, human detection (e.g., moving and stationary human detection), human tracking, fall detection, speed estimation, intrusion detection, walking detection, step counting, respiration rate detection, sleep pattern detection, sleep quality monitoring, apnea estimation, posture change detection, activity recognition, gait rate classification, gesture decoding, sign language recognition, hand tracking, heart rate estimation, breathing rate estimation, room occupancy detection, human dynamics monitoring, and other types of motion detection applications. Other examples of wireless sensing applications include object recognition, speaking recognition, keystroke detection and recognition, tamper detection, touch detection, attack detection, user authentication, driver fatigue detection, traffic monitoring, smoking detection, school violence detection, human counting, metal detection, human recognition, bike localization, human queue estimation, Wi-Fi imaging, and other types of wireless sensing applications. For instance, the wireless sensing system may operate as a motion detection system to detect the existence and location of motion based on Wi-Fi signals or other types of wireless signals.
The examples described herein may be useful for home monitoring. In some instances, home monitoring using the wireless sensing systems described herein may provide several advantages, including full home coverage through walls and in darkness, discreet detection without cameras, higher accuracy and reduced false alerts (e.g., in comparison with sensors that do not use Wi-Fi signals to sense their environments), and adjustable sensitivity. By layering Wi-Fi motion detection capabilities into routers and gateways, a robust motion detection system may be provided.
The examples described herein may also be useful for wellness monitoring. Caregivers want to know their loved ones are safe, while seniors and people with special needs want to maintain their independence at home with dignity. In some instances, wellness monitoring using the wireless sensing systems described herein may provide a solution that uses wireless signals to detect motion without using cameras or infringing on privacy, generates alerts when unusual activity is detected, tracks sleep patterns, and generates preventative health data. For example, caregivers can monitor motion, visits from health care professionals, and unusual behavior such as staying in bed longer than normal. Furthermore, motion is monitored unobtrusively without the need for wearable devices, and the wireless sensing systems described herein offer a more affordable and convenient alternative to assisted living facilities and other security and health monitoring tools.
The examples described herein may also be useful for setting up a smart home. In some examples, the wireless sensing systems described herein use predictive analytics and artificial intelligence (AI), to learn motion patterns and trigger smart home functions accordingly. Examples of smart home functions that may be triggered include adjusting the thermostat when a person walks through the front door, turning other smart devices on or off based on preferences, automatically adjusting lighting, adjusting HVAC systems based on present occupants, etc.
In some aspects of what is described here, a motion detection system includes a plurality of wireless communication devices placed throughout a physical space, such as a residence, a workplace, and so forth. The plurality of wireless communication devices is part of a wireless communication network and may include client devices, such as mobile devices, smartphones, smart watches, tablets, laptop computers, smart thermostats, wireless-enabled cameras, smart TVs, wireless-enabled speakers, wireless-enabled power sockets, and so forth. The plurality of wireless communication devices may also include wireless access points (APs) capable of connecting the client devices to the wireless communication network. In some variations, the plurality of wireless access points defines a wireless mesh network.
During operation, the plurality of wireless communication devices may be associated with respective media access control (MAC) that are unique to each wireless communication device (or wireless communication interface therein). However, the MAC addresses—which are typically represented by pairs of alphanumeric characters—do not indicate a positional information such as a location of a wireless communications device in the space or a distance of the wireless communication device relative to another wireless communication device. As such, a user of the motion detection system is unable to perceive the space in which the one or more wireless communication devices reside based on the MAC addresses.
However, the motion detection system may be configured to generate motion-sensing data based on wireless signals exchanged between the plurality of wireless communication devices. The wireless signals may be transmitted across wireless links defined by respective pairs of wireless communication devices in the wireless communication network. Moreover, the wireless links may extend through respective portions of the space. As such, the motion of an object or person in the space may disturb one or more wireless signals and thus allow the motion detection system to generate the motion-sensing data. The motion detection system uses the motion-sensing data to localize the motion of the object or person in the space. In many instances, the motion detection system informs the user where motion is happening in the space by identifying one or more wireless communication devices closest to the motion. Such identification may be made based on a spatial map of the wireless communication devices in the space. The spatial map may assist the user in perceiving the space and motion therein.
The motion detection system may generate the spatial map during an initial period of operation (e.g., a few hours). In doing so, the motion detection system may collect motion-sensing data and then use the collected motion-sensing data to determine the locations of the plurality of communication devices relative to each other. The locations may correspond to physical or logical distances between respective pairs of wireless communication devices. The physical or logical distances may be based on, respectively, a physical or logical coordinate system for the spatial map.
The motion detection system is also configured to present the spatial map to the user (e.g., via a display device) to allow the user to input information that defines additional features of the space. For example, the user may input information associating groups of wireless communication devices that share a common characteristic (e.g., devices that are in the same room). After receiving this input, the motion detection system may generate configuration data (e.g., motion zones) that represents these additional features. The configuration data may be subsequently used by the motion detection system to display information on a graphical interface that represents the spatial map with its additional features. The configuration data may also be used by the motion detection system to conduct an operation (e.g., send a notification to the user) based on the additional features.
In some implementations, the motion detection system is configured to receive instructions from the user to assign one or more wireless communication devices on the spatial map to a motion zone in the space. The motion zone may be based on a region shared in common by the one or more wireless communication devices. For example, the space may be a house that includes a living room having multiple wireless communication devices therein. If motion occurs in the living room, the user may prefer to know that the motion occurred in the living room instead of at a specific wireless communication device in the living room. In this case, the user may instruct the motion detection system to create a motion zone entitled “living room” and assign the multiple wireless communication devices to this motion zone. The motion zone and its associated room may correspond to additional features provided by the user for the spatial map. If desired, the user may repeat this process for other rooms in the house and thus add further features to the spatial map. The motion detection system may then generate configuration data based on the information that will later assist the user perceiving motion detected in the house.
In some instances, aspects of the systems and techniques described here provide technical improvements and advantages over existing approaches. For example, the systems and techniques allow a user to tailor a spatial map representing a plurality of wireless communication devices to a space containing the plurality of wireless communication devices. The resulting spatial map provides a more intuitive representation of the space to the user, especially when identifying what regions of the space experience motion. As another example, the systems and techniques relieve the user from having to manually construct the spatial map. Instead, the motion detection system constructs the spatial map on behalf of the user based on the motion-sensing data. The motion-sensing data then allows the user to refine the spatial map to their specific preferences. The technical improvements and advantages achieved in examples where the wireless sensing system is used for motion detection may also be achieved in other examples where the wireless sensing system is used for other wireless sensing applications.
In some instances, a wireless sensing system can be implemented using a wireless communication network. Wireless signals received at one or more wireless communication devices in the wireless communication network may be analyzed to determine channel information for the different communication links (between respective pairs of wireless communication devices) in the network. The channel information may be representative of a physical medium that applies a transfer function to wireless signals that traverse a space. In some instances, the channel information includes a channel response. Channel responses can characterize a physical communication path, representing the combined effect of, for example, scattering, fading, and power decay within the space between the transmitter and receiver. In some instances, the channel information includes beamforming state information (e.g., a feedback matrix, a steering matrix, channel state information (CSI), etc.) provided by a beamforming system. Beamforming is a signal processing technique often used in multi antenna (multiple-input/multiple-output (MIMO)) radio systems for directional signal transmission or reception. Beamforming can be achieved by operating elements in an antenna array in such a way that signals at particular angles experience constructive interference while others experience destructive interference.
The channel information for each of the communication links may be analyzed by one or more motion detection algorithms (e.g., running on a hub device, a client device, or other device in the wireless communication network, or on a remote device communicably coupled to the network) to detect, for example, whether motion has occurred in the space, to determine a relative location of the detected motion, or both. In some aspects, the channel information for each of the communication links may be analyzed to detect whether an object is present or absent, e.g., when no motion is detected in the space.
In some instances, a motion detection system returns motion-sensing data. In some implementations, motion-sensing data is a result that is indicative of a degree of motion in the space, the location of motion in the space, a time at which the motion occurred, or a combination thereof. In some instances, motion-sensing data may include data representing a position of the one or more wireless communication devices relative to each other. For example, the data-sensing may represent a distance between pairs of wireless communication devices in the wireless communication network. The distance may be based on a physical or logical coordinate system. In the latter case, the logical coordinate system may be used to indicate distances other than physical distances. In some instances, the motion-sensing data can include a motion score, which may include, or may be, one or more of the following: a scalar quantity indicative of a level of signal perturbation in the environment accessed by the wireless signals; an indication of whether there is motion; an indication of whether there is an object present; or an indication or classification of a gesture performed in the environment accessed by the wireless signals.
In some implementations, the motion detection system can be implemented using one or more motion detection algorithms. Example motion detection algorithms that can be used to generate motion-sensing data and detect motion based on wireless signals include the techniques described in U.S. Pat. No. 9,523,760 entitled “Detecting Motion Based on Repeated Wireless Transmissions,” U.S. Pat. No. 9,584,974 entitled “Detecting Motion Based on Reference Signal Transmissions,” U.S. Pat. No. 10,051,414 entitled “Detecting Motion Based On Decompositions Of Channel Response Variations,” U.S. Pat. No. 10,048,350 entitled “Motion Detection Based on Groupings of Statistical Parameters of Wireless Signals,” U.S. Pat. No. 10,108,903 entitled “Motion Detection Based on Machine Learning of Wireless Signal Properties,” U.S. Pat. No. 10,109,167 entitled “Motion Localization in a Wireless Mesh Network Based on Motion Indicator Values,” U.S. Pat. No. 10,109,168 entitled “Motion Localization Based on Channel Response Characteristics,” U.S. Pat. No. 10,743,143 entitled “Determining a Motion Zone for a Location of Motion Detected by Wireless Signals,” U.S. Pat. No. 10,605,908 entitled “Motion Detection Based on Beamforming Dynamic Information from Wireless Standard Client Devices,” U.S. Pat. No. 10,605,907 entitled “Motion Detection by a Central Controller Using Beamforming Dynamic Information,” U.S. Pat. No. 10,600,314 entitled “Modifying Sensitivity Settings in a Motion Detection System,” U.S. Pat. No. 10,567,914 entitled “Initializing Probability Vectors for Determining a Location of Motion Detected from Wireless Signals,” U.S. Pat. No. 10,565,860 entitled “Offline Tuning System for Detecting New Motion Zones in a Motion Detection System,” U.S. Pat. No. 10,506,384 entitled “Determining a Location of Motion Detected from Wireless Signals Based on Prior Probability,” U.S. Pat. No. 10,499,364 entitled “Identifying Static Leaf Nodes in a Motion Detection System,” U.S. Pat. No. 10,498,467 entitled “Classifying Static Leaf Nodes in a Motion Detection System,” U.S. Pat. No. 10,460,581 entitled “Determining a Confidence for a Motion Zone Identified as a Location of Motion for Motion Detected by Wireless Signals,” U.S. Pat. No. 10,459,076 entitled “Motion Detection based on Beamforming Dynamic Information,” U.S. Pat. No. 10,459,074 entitled “Determining a Location of Motion Detected from Wireless Signals Based on Wireless Link Counting,” U.S. Pat. No. 10,438,468 entitled “Motion Localization in a Wireless Mesh Network Based on Motion Indicator Values,” U.S. Pat. No. 10,404,387 entitled “Determining Motion Zones in a Space Traversed by Wireless Signals,” U.S. Pat. No. 10,393,866 entitled “Detecting Presence Based on Wireless Signal Analysis,” U.S. Pat. No. 10,380,856 entitled “Motion Localization Based on Channel Response Characteristics,” U.S. Pat. No. 10,318,890 entitled “Training Data for a Motion Detection System using Data from a Sensor Device,” U.S. Pat. No. 10,264,405 entitled “Motion Detection in Mesh Networks,” U.S. Pat. No. 10,228,439 entitled “Motion Detection Based on Filtered Statistical Parameters of Wireless Signals,” U.S. Pat. No. 10,129,853 entitled “Operating a Motion Detection Channel in a Wireless Communication Network,” U.S. Pat. No. 10,111,228 entitled “Selecting Wireless Communication Channels Based on Signal Quality Metrics,” and other techniques.
The example wireless communication system 100 includes three wireless communication devices 102A, 102B, 102C. The example wireless communication system 100 may include additional wireless communication devices 102 and/or other components (e.g., one or more network servers, network routers, network switches, cables, or other communication links, etc.).
The example wireless communication devices 102A, 102B, 102C can operate in a wireless network, for example, according to a wireless network standard or another type of wireless communication protocol. For example, the wireless network may be configured to operate as a Wireless Local Area Network (WLAN), a Personal Area Network (PAN), a metropolitan area network (MAN), or another type of wireless network. Examples of WLANs include networks configured to operate according to one or more of the 802.11 family of standards developed by IEEE (e.g., Wi-Fi networks), and others. Examples of PANs include networks that operate according to short-range communication standards (e.g., BLUETOOTH®, Near Field Communication (NFC), ZigBee), millimeter wave communications, and others.
In some implementations, the wireless communication devices 102A, 102B, 102C may be configured to communicate in a cellular network, for example, according to a cellular network standard. Examples of cellular networks include: networks configured according to 2G standards such as Global System for Mobile (GSM) and Enhanced Data rates for GSM Evolution (EDGE) or EGPRS; 3G standards such as Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Universal Mobile Telecommunications System (UMTS), and Time Division Synchronous Code Division Multiple Access (TD-SCDMA); 4G standards such as Long-Term Evolution (LTE) and LTE-Advanced (LTE-A); 5G standards, and others.
In some cases, one or more of the wireless communication devices 102 is a Wi-Fi access point or another type of wireless access point (WAP). In some cases, one or more of the wireless communication devices 102 is an access point of a wireless mesh network, such as, for example, a commercially-available mesh network system (e.g., GOOGLE Wi-Fi, EERO mesh, etc.). In some instances, one or more of the wireless communication devices 102 can be implemented as wireless access points (APs) in a mesh network, while the other wireless communication device(s) 102 are implemented as leaf devices (e.g., mobile devices, smart devices, etc.) that access the mesh network through one of the APs. In some cases, one or more of the wireless communication devices 102 is a mobile device (e.g., a smartphone, a smart watch, a tablet, a laptop computer, etc.), a wireless-enabled device (e.g., a smart thermostat, a Wi-Fi enabled camera, a smart TV), or another type of device that communicates in a wireless network.
In the example shown in
In the example shown in
In the example shown in
In some examples, the wireless signals propagate through a structure (e.g., a wall) before or after interacting with a moving object, which may allow the object's motion to be detected without an optical line-of-sight between the moving object and the transmission or receiving hardware. In some instances, the motion detection system may communicate the motion detection event to another device or system, such as a security system or a control center.
In some cases, the wireless communication devices 102 themselves are configured to perform one or more operations of the motion detection system, for example, by executing computer-readable instructions (e.g., software or firmware) on the wireless communication devices. For example, each device may process received wireless signals to detect motion based on changes in the communication channel. In some cases, another device (e.g., a remote server, a cloud-based computer system, a network-attached device, etc.) is configured to perform one or more operations of the motion detection system. For example, each wireless communication device 102 may send channel information to a specified device, system, or service that performs operations of the motion detection system.
In an example aspect of operation, wireless communication devices 102A, 102B may broadcast wireless signals or address wireless signals to the other wireless communication device 102C, and the wireless communication device 102C (and potentially other devices) receives the wireless signals transmitted by the wireless communication devices 102A, 102B. The wireless communication device 102C (or another system or device) then processes the received wireless signals to detect motion of an object in a space accessed by the wireless signals (e.g., in the zones 110A, 11B). In some instances, the wireless communication device 102C (or another system or device) may perform one or more operations of a motion detection system.
In some cases, a combination of one or more of the wireless communication devices 204A, 204B, 204C can be part of, or may be used by, a motion detection system. The example wireless communication devices 204A, 204B, 204C can transmit wireless signals through a space 200. The example space 200 may be completely or partially enclosed or open at one or more boundaries of the space 200. The space 200 may be or may include an interior of a room, multiple rooms, a building, an indoor area, outdoor area, or the like. A first wall 202A, a second wall 202B, and a third wall 202C at least partially enclose the space 200 in the example shown.
In the example shown in
As shown, an object is in a first position 214A at an initial time (to) in
As shown in
In
The example wireless signals shown in
The transmitted signal can have a number of frequency components in a frequency bandwidth, and the transmitted signal may include one or more bands within the frequency bandwidth. The transmitted signal may be transmitted from the first wireless communication device 204A in an omnidirectional manner, in a directional manner, or otherwise. In the example shown, the wireless signals traverse multiple respective paths in the space 200, and the signal along each path can become attenuated due to path losses, scattering, reflection, or the like and may have a phase or frequency offset.
As shown in
In the example shown in
In the example shown in
In the example shown in
When the client devices 232 seek to connect to and associate with their respective APs 226, 228, the client devices 232 may go through an authentication and association phase with their respective APs 226, 228. Among other things, the association phase assigns address information (e.g., an association ID or another type of unique identifier) to each of the client devices 232. For example, within the IEEE 802.11 family of standards for Wi-Fi, each of the client devices 232 can identify itself using a unique address (e.g., a 48-bit address, an example being the MAC address), although the client devices 232 may be identified using other types of identifiers embedded within one or more fields of a message. The address information (e.g., MAC address or another type of unique identifier) can be either hardcoded and fixed, or randomly generated according to the network address rules at the start of the association process. Once the client devices 232 have associated to their respective APs 226, 228, their respective address information may remain fixed. Subsequently, a transmission by the APs 226, 228 or the client devices 232 typically includes the address information (e.g., MAC address) of the transmitting wireless device and the address information (e.g., MAC address) of the receiving device.
In the example shown in
In the example shown in
The motion detection system, which may include one or more motion detection or localization processes running on one or more of the client devices 232 or on one or more of the APs 226, 228, may collect and process data (e.g., channel information) corresponding to local links that are participating in the operation of the wireless sensing system. The motion detection system can be installed as a software or firmware application on the client devices 232 or on the APs 226, 228, or may be part of the operating systems of the client devices 232 or the APs 226, 228.
In some implementations, the APs 226, 228 do not contain motion detection software and are not otherwise configured to perform motion detection in the space 201. Instead, in such implementations, the operations of the motion detection system are executed on one or more of the client devices 232. In some implementations, the channel information may be obtained by the client devices 232 by receiving wireless signals from the APs 226, 228 (or possibly from other client devices 232) and processing the wireless signal to obtain the channel information. For example, the motion detection system running on the client devices 232 can have access to channel information provided by the client device's radio firmware (e.g., Wi-Fi radio firmware) so that channel information may be collected and processed.
In some implementations, the client devices 232 send a request to their corresponding AP 226, 228 to transmit wireless signals that can be used by the client device as motion probes to detect motion of objects in the space 201. The request sent to the corresponding AP 226, 228 may be a null data packet frame, a beamforming request, a ping, standard data traffic, or a combination thereof. In some implementations, the client devices 232 are stationary while performing motion detection in the space 201. In other examples, one or more of the client devices 232 can be mobile and may move within the space 201 while performing motion detection.
Mathematically, a signal f(t) transmitted from a wireless communication device (e.g., the wireless communication device 204A in
where ωn represents the frequency of nth frequency component of the transmitted signal, cn represents the complex coefficient of the nth frequency component, and t represents time. With the transmitted signal f(t) being transmitted, an output signal rk(t) from a path k may be described according to Equation (2):
where αn,k represents an attenuation factor (or channel response; e.g., due to scattering, reflection, and path losses) for the nth frequency component along path k, and ϕn,k represents the phase of the signal for nth frequency component along path k. Then, the received signal R at a wireless communication device can be described as the summation of all output signals rk(t) from all paths to the wireless communication device, which is shown in Equation (3):
Substituting Equation (2) into Equation (3) renders the following Equation (4):
The received signal R at a wireless communication device (e.g., the wireless communication devices 204B, 204C in
The complex value Yn for a given frequency component ωn indicates a relative magnitude and phase offset of the received signal at that frequency component ωn. The signal f(t) may be repeatedly transmitted within a time period, and the complex value Yn can be obtained for each transmitted signal f(t). When an object moves in the space, the complex value Yn changes over the time period due to the channel response αn,k of the space changing. Accordingly, a change detected in the channel response (and thus, the complex value Yn) can be indicative of motion of an object within the communication channel. Conversely, a stable channel response may indicate lack of motion. Thus, in some implementations, the complex values Yn for each of multiple devices in a wireless network can be processed to detect whether motion has occurred in a space traversed by the transmitted signals f(t). The channel response can be expressed in either the time-domain or frequency-domain, and the Fourier-Transform or Inverse-Fourier-Transform can be used to switch between the time-domain expression of the channel response and the frequency-domain expression of the channel response.
In another aspect of
In some implementations, for example, a steering matrix may be generated at a transmitter device (beamformer) based on a feedback matrix provided by a receiver device (beamformee) based on channel sounding. Because the steering and feedback matrices are related to propagation characteristics of the channel, these beamforming matrices change as objects move within the channel. Changes in the channel characteristics are accordingly reflected in these matrices, and by analyzing the matrices, motion can be detected, and different characteristics of the detected motion can be determined. In some implementations, a spatial map may be generated based on one or more beamforming matrices. The spatial map may indicate a general direction of an object in a space relative to a wireless communication device. In some cases, “modes” of a beamforming matrix (e.g., a feedback matrix or steering matrix) can be used to generate the spatial map. The spatial map may be used to detect the presence of motion in the space or to detect a location of the detected motion.
In some implementations, the output of the motion detection system may be provided as a notification for graphical display on a user interface on a user device.
The example user interface 300 shown in
The example user interface 300 shown in
In some implementations, the output of the motion detection system may be provided in real-time (e.g., to an end user). Additionally, or alternatively, the output of the motion detection system may be stored (e.g., locally on the wireless communication devices 204, client devices 232, the APs 226, 228, or on a cloud-based storage service) and analyzed to reveal statistical information over a time frame (e.g., hours, days, or months). An example where the output of the motion detection system may be stored and analyzed to reveal statistical information over a time frame is in health monitoring, vital sign monitoring, sleep monitoring, etc. In some implementations, an alert (e.g., a notification, an audio alert, or a video alert) may be provided based on the output of the motion detection system. For example, a motion detection event may be communicated to another device or system (e.g., a security system or a control center), a designated caregiver, or a designated emergency contact based on the output of the motion detection system.
Now referring to
In certain cases, the example space 400 may include an object or person that moves therein. The motion of such an object or person may disturb the wireless links 410, and in particular, pairs of wireless links 410 adjacent each other. A probability or likelihood—shown as pij in
The probability of sequential disturbance may be influenced by factors in the example space 400, such as a relative location of wireless communication devices 408 defining the pair of wireless links and physical objects (e.g., the one or more physical walls 404) therebetween. For example, wireless communication devices 408 that are close to each other, such as wireless communication devices D1 and D3, may define a pair of wireless links (e.g., L3 and L4) that have a higher probability of sequential disturbance than a pair of wireless links (e.g., L1 and L2) defined by wireless communications devices 408 that are farther away from each other, such as wireless communication devices D2 and D5. The presence of a physical wall 404 may impede motion of the object or person and thus reduce a transition of the object or person from one side of the physical wall 404 to the other. For example, the pair of wireless links L2 and L3 in the example space 400 are separated by a physical wall 404, and as such, the probability of their sequential disturbance may be reduced relative to situations where the physical wall 404 is absent.
In some implementations, the example space 400 corresponds to a house partitioned into different living spaces. The entrance 406b and the living room 406c may have a large wall separating them, so a person entering the entrance 406b will not be able to go into the living room 406c without passing through the common area 406a where the wireless AP 408a is located. Because the person is unable to traverse directly between the entrance 406b and the living room 406c, the motion-sensing data will only weakly represent transitions between the entrance and living room footprints of the wireless links 410 (e.g., between L4 and L5). As such, the motion-sensing data may provide a basis for a map of the house that places the entrance 406b and living room 406c away from each other. Moreover, the kitchen 406d is on a corner of the house opposite the entrance 406b. Motion between the entrance 406b to the kitchen 406d is even less likely than motion between the entrance 406b and the living room 406c. As such, the motion-sensing data will very weakly represent (if at all) transitions between the entrance and kitchen footprints of the wireless links 410 (e.g., between L2 and L5). In this case, the motion-sensing data may provide a basis for a map of the house that places the entrance 406b and kitchen 406d farther away from each other than the entrance 406b and living room 406c. However, the kitchen 406d and the living room 406c are separated by a partial wall. Such a configuration may be analogous to an “open concept” house and thus motion between the kitchen 406d and the living room 406c may be common. The motion-sensing data will therefore more strongly represent transitions between the kitchen and living room footprints of the wireless links 410 (e.g., L2 and L3). The motion-sensing data may therefore provide a basis for a map of the house that places the kitchen 406d and the living room 406c close to each other (e.g., adjacent each other).
As shown in
As discussed above, the probability of disturbing a pair of wireless links 410 in the house can be related to a distance between two wireless communication devices associated with the pair of wireless links 410. For example, wireless communication devices D1 and D3 are closer to each other than wireless communication devices D2 and D5. As such, the probability of wireless links L3 and L4 being sequentially disturbed is higher than the probability of wireless links L1 and L2 being sequentially disturbed. Motion-sensing data for the house may therefore indicate a high frequency of disturbance for wireless links L3 and L4 relative to wireless links L1 and L2. This motion-sensing data may thus be used to determine the probabilities for the sequential disturbance of wireless links L3 and L4 relative to wireless links L1 and L2. The probabilities, in turn, allow for the distance between wireless communication devices D1 and D3 and the distance between wireless communication devices D2 and D5 to be determined. In general, motion-sensing data for pairs of wireless links 410 in the house may be used to determine distances between pairs of wireless communication devices 408, which in turn, can be used to determine a spatial map for the wireless communication devices 408.
In some implementations, the computing device determines the spatial coordinates by generating a final set of spatial coordinates from an initial set of spatial coordinates. For example, the computing device may execute program instructions that define an optimization process for the initial set of spatial coordinates. In these implementations, the computing device may produce a first data structure (e.g., a first matrix) from the motion-sensing data that includes a probability value for each pair of wireless links 410. The probability value may represent a probability of the pair of wireless links 410 being sequentially disturbed. The computing device also produces a second data structure (e.g., a second matrix) that includes a distance value for each pair of wireless communication devices 408 defining a wireless link 410. The distance value may be based on a probability value (e.g., a reciprocal thereof) and represents a distance between the pair of wireless communication devices 408. For instance, the distance dij between two devices may be related to the probability pij associated with the two devices as dij∝1/pij or otherwise. The computing device then converts the distance values into the initial set of spatial coordinates. The initial set of spatial coordinates indicates the locations of the wireless communication devices 408 in a two-dimensional coordinate system (e.g., an x-y coordinate system). The two-dimensional coordinate system may be a physical or logical coordinate system. In some instances, the computing device produces a third data structure (e.g., a third matrix) that includes the initial set of spatial coordinates.
In implementations using the optimization process, the computing device then selects arbitrary coordinates for a pair of wireless communication devices 408 that define a wireless link 410. The computing device subsequently determines, based on the arbitrary coordinates, a test distance between the pair of wireless communication devices 408. This test distance is subtracted from a distance value for the pair of wireless communication devices 408 in the second data structure. The resulting difference is then squared. For example, and with reference to
As part of the optimization process, the computing device determines a squared difference for each pair of wireless communication devices 408 defining a wireless link 410 (e.g., as described above). The computing device then sums all of the squared differences to produce a residual value that characterizes the arbitrary coordinates selected for the pairs of wireless communication devices 408. The computing device subsequently alters the arbitrary coordinates in iterative fashion to find a minimum residual value. The arbitrary coordinates associated with the minimum residual value correspond to the final set of spatial coordinates and may be aggregated into a third data structure (e.g., a third matrix). In some cases, the optimization process can use the objective:
where X is a vector of coordinates for each device; D(X) is a distance matrix generator from coordinates, and Dp is a distance matrix generator from inverse probabilities.
However, other numbers of spatial coordinates are possible and these spatial coordinates may have different, respective pairs of coordinate values than those shown above.
In the matrix above, each element, Dij, represents a distance between a pair of wireless communication devices, i.e., the i-th and j-th wireless communication devices. The matrix is symmetric, indicating that a distance in a forward direction is the same as a distance in a reverse direction and that a distance between the same wireless communication device is null. For example, the distance from the 1st to the 3rd wireless communication device (i.e., D13=21.16) is the same as the distance from the 3rd to the 1st wireless communication device (i.e., D31=21.16). The distance between the 2nd wireless communication devices is zero (i.e., D22=0.00).
The example spanning tree may allow a user to perceive spatial relationships and connective distances between the wireless communication devices 504. For example, the graph 500 includes a dotted line 506 to indicate the pair of wireless communication devices having the longest distance therebetween. The pair of wireless communication devices corresponds to nodes 1 and 4. Consistent with this indication, the largest value of the matrix (i.e., 94.69) is associated with elements D14 and D41. As another example, the graph 500 includes a dotted line 508 to indicate a pair of wireless communication devices having a short distance therebetween. Consistent with this indication, a smaller value of the matrix (i.e., 20.67) is associated with elements D27 and D72. The smaller value is close to the smallest value of the matrix (19.06).
Now referring to
The example process 700 may include additional or different operations, and the operations may be performed in the order shown or in another order. In some cases, one or more of the operations shown in
At 710, motion is sensed based on wireless signals communicated in a wireless network. For example, motion-sensing data may be generated based on first wireless signals transmitted, during a first time period, over wireless links defined by respective pairs of wireless communication devices in a wireless communication network. The motion-sensing data may represent changes to a channel or disturbances of the wireless links caused by motion in a space associated with the wireless communication network.
At 720, spatial coordinates of wireless communication devices in the wireless network are determined. For example, spatial coordinates for the respective wireless communication devices may be generated based on the motion-sensing data. The spatial coordinates for each wireless communication device may represent a location of the wireless communication device in the space.
At 730, a spatial map is presented to a user, such as through a graphical interface on a display device. For example, user input may be received in response to a graphical representation of a spatial arrangement (or spatial map) of the wireless communication devices being displayed on a display device. The graphical representation of the spatial arrangement shows the user how the wireless communication devices are physically situated relative to one another in the space, and may provide information about how different regions or zones within the space are connected to one another. The spatial arrangement may include two-dimensional spatial information (e.g., a floor plan view), three-dimensional spatial information (e.g., a combination of plan, elevation or perspective views), or other spatial information. The spatial arrangement may be generated based on the spatial coordinates, and the user input may indicate a selected group of the wireless communication devices that share a common characteristic.
At 740, one or more motion zones are defined based on user input received in response to presenting the spatial map. For example, motion zones may be defined in a motion detection system associated with the space. Each of the motion zones may represent a distinct region in the space; for example, the motion zones may represent distinct rooms, segments, quadrants, levels, or a combination of these and other types of regions. The motion zones may include a first motion zone representing a first region that includes the selected group of the wireless communication devices. The motion zones may include additional motion zones that each include one or more of the other wireless communication devices.
At 750, settings in the motion detection system are modified. For example, user input received at 730 may include names or labels for the motion zones, and the motion detection system settings may be modified at 750 to associate the new names or labels with the respective motion zones. As another example, the motion detection system settings may be modified to designate actions to be executed when motion is detected by the system. For instance, the motion detection system may be programmed to send an instruction, command, or notification to a particular device when motion is detected in one or more of the motion zones.
At 760, motion is sensed by the motion detection system, such as motion in the one or more motion zones. For example, the motion detection system may detect motion of an object in the space based on second wireless signals transmitted over one or more of the wireless links during a second time period.
At 770, a user device may be notified, or an internet-of-things (IoT) device may be instructed according to the settings (or modified settings). For example, in response to identifying one of the wireless communication devices in the selected group of the wireless communication devices as a location of the motion, a message indicating that motion was detected in the first motion zone may be generated. After generating the message, the message can be sent to a device associated with the motion detection system, such as an IoT device or the user device. In some cases, when the message is sent to the user device, the user device generates a graphical display (such as the example shown in
The example interface 930 can communicate (receive, transmit, or both) wireless signals. For example, the interface 930 may be configured to communicate radio frequency (RF) signals formatted according to a wireless communication standard (e.g., Wi-Fi, 4G, 5G, Bluetooth, etc.). In some implementations, the example interface 930 includes a radio subsystem and a baseband subsystem. The radio subsystem may include, for example, one or more antennas and radio frequency circuitry. The radio subsystem can be configured to communicate radio frequency wireless signals on the wireless communication channels. As an example, the radio subsystem may include a radio chip, an RF front end, and one or more antennas. The baseband subsystem may include, for example, digital electronics configured to process digital baseband data. In some cases, the baseband subsystem may include a digital signal processor (DSP) device or another type of processor device. In some cases, the baseband system includes digital processing logic to operate the radio subsystem, to communicate wireless network traffic through the radio subsystem or to perform other types of processes.
The example processor 910 can execute instructions, for example, to generate output data based on data inputs. The instructions can include programs, codes, scripts, modules, or other types of data stored in memory 920. Additionally or alternatively, the instructions can be encoded as pre-programmed or re-programmable logic circuits, logic gates, or other types of hardware or firmware components or modules. The processor 910 may be, or include, a general-purpose microprocessor, as a specialized co-processor, or another type of data processing apparatus. In some cases, the processor 910 performs high level operation of the wireless communication device 900. For example, the processor 910 may be configured to execute or interpret software, scripts, programs, functions, executables, or other instructions stored in the memory 920. In some implementations, the processor 910 may be included in the interface 930 or another component of the wireless communication device 900.
The example memory 920 may include computer-readable storage media, for example, a volatile memory device, a non-volatile memory device, or both. The memory 920 may include one or more read-only memory devices, random-access memory devices, buffer memory devices, or a combination of these and other types of memory devices. In some instances, one or more components of the memory can be integrated or otherwise associated with another component of the wireless communication device 900. The memory 920 may store instructions that are executable by the processor 910. For example, the instructions may include instructions to perform one or more of the operations in the example process 700 shown in
The example power unit 940 provides power to the other components of the wireless communication device 900. For example, the other components may operate based on electrical power provided by the power unit 940 through a voltage bus or other connection. In some implementations, the power unit 940 includes a battery or a battery system, for example, a rechargeable battery. In some implementations, the power unit 940 includes an adapter (e.g., an AC adapter) that receives an external power signal (from an external source) and converts the external power signal to an internal power signal conditioned for a component of the wireless communication device 900. The power unit 920 may include other components or operate in another manner.
Some of the subject matter and operations described in this specification can be implemented in digital electronic circuitry, or in computer software, firmware, or hardware, including the structures disclosed in this specification and their structural equivalents, or in combinations of one or more of them. Some of the subject matter described in this specification can be implemented as one or more computer programs, i.e., one or more modules of computer program instructions, encoded on a computer storage medium for execution by, or to control the operation of, data-processing apparatus. A computer storage medium can be, or can be included in, a computer-readable storage device, a computer-readable storage substrate, a random or serial access memory array or device, or a combination of one or more of them. Moreover, while a computer storage medium is not a propagated signal, a computer storage medium can be a source or destination of computer program instructions encoded in an artificially generated propagated signal. The computer storage medium can also be, or be included in, one or more separate physical components or media (e.g., multiple CDs, disks, or other storage devices).
Some of the operations described in this specification can be implemented as operations performed by a data processing apparatus on data stored on one or more computer-readable storage devices or received from other sources.
The term “data-processing apparatus” encompasses all kinds of apparatus, devices, and machines for processing data, including by way of example a programmable processor, a computer, a system on a chip, or multiple ones, or combinations, of the foregoing. The apparatus can include special purpose logic circuitry, e.g., an FPGA (field programmable gate array) or an ASIC (application specific integrated circuit). The apparatus can also include, in addition to hardware, code that creates an execution environment for the computer program in question, e.g., code that constitutes processor firmware, a protocol stack, a database management system, an operating system, a cross-platform runtime environment, a virtual machine, or a combination of one or more of them.
A computer program (also known as a program, software, software application, script, or code) can be written in any form of programming language, including compiled or interpreted languages, declarative or procedural languages, and it can be deployed in any form, including as a stand-alone program or as a module, component, subroutine, object, or other unit suitable for use in a computing environment. A computer program may, but need not, correspond to a file in a file system. A program can be stored in a portion of a file that holds other programs or data (e.g., one or more scripts stored in a markup language document), in a single file dedicated to the program, or in multiple coordinated files (e.g., files that store one or more modules, sub programs, or portions of code). A computer program can be deployed to be executed on one computer or on multiple computers that are located at one site or distributed across multiple sites and interconnected by a communication network.
Some of the processes and logic flows described in this specification can be performed by one or more programmable processors executing one or more computer programs to perform actions by operating on input data and generating output. The processes and logic flows can also be performed by, and apparatus can also be implemented as, special purpose logic circuitry, e.g., an FPGA (field programmable gate array) or an ASIC (application specific integrated circuit).
To provide for interaction with a user, operations can be implemented on a computer having a display device (e.g., a monitor, or another type of display device) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse, a trackball, a tablet, a touch sensitive screen, or another type of pointing device) by which the user can provide input to the computer. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback, e.g., visual feedback, auditory feedback, or tactile feedback; and input from the user can be received in any form, including acoustic, speech, or tactile input. In addition, a computer can interact with a user by sending documents to, and receiving documents from, a device that is used by the user; for example, by sending web pages to a web browser on a user's client device in response to requests received from the web browser.
In a general aspect, the systems and techniques described here allow for determining spatial maps based on user input and motion-sensing data derived from wireless signals.
In a first example, a method includes generating motion-sensing data based on first wireless signals transmitted, during a first time period, over wireless links defined by respective pairs of wireless communication devices in a wireless communication network. The motion-sensing data represents disturbances of the wireless links caused by motion in a space associated with the wireless communication network. The method also includes generating spatial coordinates for the respective wireless communication devices based on the motion-sensing data. The spatial coordinates for each wireless communication device represent a location of the wireless communication device in the space. The method additionally includes receiving user input in response to a graphical representation of a spatial arrangement of the wireless communication devices being displayed on a display device. The spatial arrangement is generated based on the spatial coordinates, and the user input indicates a selected group of the wireless communication devices that share a common characteristic.
The method also includes defining a plurality of motion zones in a motion detection system associated with the space. Each of the plurality of motion zones represents a distinct region in the space, and the plurality of motion zones comprises a first motion zone representing a space that includes the selected group of the wireless communication devices. Moreover, the method includes detecting, by operation of the motion detection system, motion of an object in the space based on second wireless signals transmitted over one or more of the wireless links during a second time period. The method further includes generating, in response to identifying one of the wireless communication devices in the selected group of the wireless communication devices as a location of the motion, a message indicating that motion was detected in the first motion zone. The method still further includes sending the message to a device associated with the motion detection system.
Implementations of the first example may include one or more of the following features. For example, the method may include identifying, based on the spatial coordinates, spatial paths between the wireless communication devices. In this example, the graphical representation of the spatial arrangement indicates the spatial paths. In some instances, the spatial paths are identified by generating a spanning tree from the spatial coordinates.
Implementations of the first example may also include one or more of the following features. For example, the user input may indicate a name associated with the selected group of the wireless communication devices. In this example, defining the first motion zone includes associating the name with the first motion zone. Moreover, the message indicates the name associated with the first motion zone. Also in this example, sending the message to the device associated with the motion detection system includes sending the notification to the user device. In some instances, the user input indicates that the selected group of the wireless communication devices are associated with the same room in the space, and the name indicated by the user input is a name of the room.
Implementations of the first example may additionally include one or more of the following features. For example, sending the message to the device associated with the motion detection system may include instructing the device associated with the motion detection system to perform an operation in response to motion being detected in the first motion zone.
Implementations of the first example may further include one or more of the following features. For example, generating the spatial coordinates may include generating, based on the first motion-sensing data, likelihood values for pairs of the wireless communication devices. The likelihood value for each pair of wireless communication devices represents a likelihood of sensing motion at the pair of wireless communication devices sequentially in time. In this example, generating the spatial coordinates also includes generating, based on the likelihood values, distance values for the respective pairs of wireless communication devices. The distance value for each pair of wireless communication devices represents a distance between two of the wireless communication devices. Also in this example, generating the spatial coordinates includes generating the spatial coordinates based on the distance values. In some instances, the distance values are generated by an optimization process.
Implementations of the first example may still further include one or more of the following features. For example, generating spatial coordinates for the respective wireless communication devices may include generating spatial coordinates for each MAC address in the wireless communication network.
Implementations of the first example may yet further include one or more of the following features. For example, the spatial coordinates may be generated for a two-dimensional coordinate system, and the graphical representation of the spatial arrangement may include a two-dimensional map of the wireless communication devices.
In a second example, a non-transitory computer-readable medium stores instructions that are operable when executed by data processing apparatus to perform one or more operations of the first example. In a third example, a system includes a plurality of wireless communication devices, and a computer device configured to perform one or more operations of the first example.
While this specification contains many details, these should not be understood as limitations on the scope of what may be claimed, but rather as descriptions of features specific to particular examples. Certain features that are described in this specification or shown in the drawings in the context of separate implementations can also be combined. Conversely, various features that are described or shown in the context of a single implementation can also be implemented in multiple embodiments separately or in any suitable subcombination.
Similarly, while operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. In certain circumstances, multitasking and parallel processing may be advantageous. Moreover, the separation of various system components in the implementations described above should not be understood as requiring such separation in all implementations, and it should be understood that the described program components and systems can generally be integrated together in a single product or packaged into multiple products.
A number of embodiments have been described. Nevertheless, it will be understood that various modifications can be made. Accordingly, other embodiments are within the scope of the following claims.
This patent application claims priority to U.S. Provisional Patent Application No. 63/230,413, filed on Aug. 6, 2021. The above-referenced priority document is hereby incorporated by reference.
Number | Date | Country | |
---|---|---|---|
63230413 | Aug 2021 | US |