PIR OCCUPANCY ESTIMATION SYSTEM
20220120617 ยท 2022-04-21
Inventors
- Dmitri Jude De Vaz (Surrey, CA)
- Robert Christopher Kwong (Coquitlam, CA)
- Gamal Kazim Mustapha (Surrey, CA)
Cpc classification
G06V20/59
PHYSICS
G06V20/53
PHYSICS
International classification
Abstract
An occupancy estimation system is provided. The occupancy estimation system is configured to estimate a number of occupants in a target space. The occupancy estimation system includes a PIR motion sensor and a control apparatus. The PIR motion sensor is with a field of view of an area where occupants are expected to be present, and the PIR motion sensor is adapted to output a PIR signal. The control apparatus is adapted to receive the PIR signal to compile an aggregate of the minor and major motion behaviors of the occupants in the field of view and generate an occupancy estimation count accordingly.
Claims
1. A PIR occupancy estimation system, configured to estimate a number of occupants in a target space, and comprising: a PIR motion sensor with a field of view of an area where occupants are expected to be present, and adapted to output a PIR signal; and a control apparatus adapted to receive the PIR signal to compile an aggregate of the minor and major motion behaviors of the occupants in the field of view and generate an occupancy estimation count accordingly.
2. The PIR occupancy estimation system according to claim 1, wherein the control apparatus is adapted to operate an algorithm to process the PIR signal from the PIR motion sensor.
3. The PIR occupancy estimation system according to claim 2, wherein the algorithm is adapted to utilize a bandpass filter to filter the PIR signal to remove unwanted bias and high frequency noise.
4. The PIR occupancy estimation system according to claim 2, wherein the algorithm is adapted to break the PIR signal into a plurality of frames.
5. The PIR occupancy estimation system according to claim 4, wherein the plurality of frames are generated with a 50% overlap.
6. The PIR occupancy estimation system according to claim 4, wherein the algorithm is adapted to perform a transformation, comprising a time-frequency transformation or a feature extracting transformation, on the plurality of frames.
7. The PIR occupancy estimation system according to claim 6, wherein according to the plurality of frames and an output of the transformation for each of the plurality of frames, the algorithm is adapted to extract statistical features from each of the plurality of frames and concatenate the statistical features into a feature vector.
8. The PIR occupancy estimation system according to claim 7, wherein the statistical features includes at least one of a Laplace spread parameter, a range between the smallest and largest samples in the frame, a zero crossing rate, a mean crossing rate, an entropy, a motion count, percent positive values, percentiles, and a slope.
9. The PIR occupancy estimation system according to claim 7, wherein the algorithm is adapted to distinguish and characterize the plurality of frames between the major and the minor motion behaviors, and extracts the frame where the minor motion behaviors detected.
10. The PIR occupancy estimation system according to claim 7, wherein according to the feature vector, the algorithm is adapted to utilize a machine learning model to estimate the number of occupants in the target space and generate an approximate estimation.
11. The PIR occupancy estimation system according to claim 10, wherein the algorithm is adapted to process the approximate estimations from the machine learning model through a stability and smoothing phase to generate smoothed estimations, and generate the occupancy estimation count through binning the smoothed estimations.
12. The PIR occupancy estimation system according to claim 11, wherein the algorithm is adapted to apply a supervisory logic to the approximate or smoothed estimations to eliminate anomalies and edge cases.
13. The PIR occupancy estimation system according to claim 1, further comprising a cloud server adapted to store data, wherein the control apparatus comprises a transceiver in communication with the cloud server.
14. The PIR occupancy estimation system according to claim 13, wherein the PIR motion sensor and the control apparatus form an occupancy estimation unit, and the PIR occupancy estimation system comprises a plurality of the occupancy estimation units which are all in communication with the cloud server.
15. The PIR occupancy estimation system according to claim 1, further comprising a plurality of additional sensors, comprising at least one of an audio sensor, a CO2 sensor, a Bluetooth device sensor, an infrared temperature sensor, an area temperature sensor, a humidity sensor, a light level sensor, and a light color sensor, working in conjunction with the PIR motion sensor.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0009]
[0010]
[0011]
[0012]
[0013]
[0014]
[0015]
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT
[0016] The present disclosure will now be described more specifically with reference to the following embodiments. It is to be noted that the following descriptions of preferred embodiments of this disclosure are presented herein for purpose of illustration and description only. It is not intended to be exhaustive or to be limited to the precise form disclosed.
[0017]
[0018] Therefore, the PIR occupancy estimation system 1 of the present disclosure may utilize a standard low-cost PIR motion sensor 11 to produce an estimation of the number of occupants in a target space. Consequently, the cost is greatly reduced.
[0019] Please refer to
[0020] Firstly, in the pre-processing stage, the PIR signal from the PIR motion sensor 11 is sampled, and the sampling frequency is for example but not limited to 50 Hz. Depending on actual application, a bandpass filter may be utilized to filter the PIR signal to remove unwanted bias and high frequency noise, wherein the bias might be DC bias. The PIR signal is broken into multiple smaller frames, and the frame length is a parameter of the algorithm and is able to be adjusted according to actual requirements. Preferably but not exclusively, the frames are generated with a 50% overlap. The algorithm qualifies and filters the frames for minor motion.
[0021] Then, in the feature extraction and inference stage, a transformation, such as a time-frequency transformation (e.g., fast fourier transform (FFT) or discrete wavelet transform (DWT)) or a feature extracting transformation (e.g., random convolutional kernel transform), is performed on the frames. During the transformation, a 1-dimensional time series is transformed into several time series, where each time series has a different bandwidth (i.e., each signal focuses on a different part of the frequency domain). Afterwards, a collection of the frames including the output of the transformation along with the unmodified frames from the pre-processing stage is passed through a feature extraction step. In the features extraction step, several statistical features are extracted from each frame and then concatenated into a 1-dimensional feature vector. The particular features used make a large difference on whether or not the algorithm can decipher the difference between the number of occupants in the target space. The features extracted from each frame includes at least one of a Laplace spread parameter (LSP), a range between the smallest and largest samples in the frame, a zero crossing rate, a mean crossing rate, an entropy, a motion count, percent positive values (ppv), percentiles, and a slope representing the linear trend of the signal, but not limited thereto. Then, the feature vector is passed on to the machine learning (ML) model for inference. The relevant information has been extracted into features that the machine learning model may use to estimate the number of occupants. According to the feature vector, the machine learning model outputs an approximate estimation for the number of occupants.
[0022] In an embodiment, during pre-processing stage and the feature extraction and inference stage, the algorithm is adapted to distinguish and characterize the frames between major motion and minor motion, where the major motion is discarded and the minor motion is saved for further processing. Namely, the algorithm extracts the frame where the minor motion detected.
[0023] Finally, in the post-processing stage, the algorithm processes the approximate estimations outputted from the machine learning model through a generic temporal stability and smoothing phase to generate smoothed estimations for the number of occupants. For example, in the stability and smoothing phase, the approximate estimations are processed through a low pass filter, a Kalman filter, a hidden Markov model, or a simple state machine to generate the smoothed estimations, but not limited to. Through binning the smoothed estimations, the final occupancy estimation counts are generated accordingly. In an embodiment, a supervisory logic is applied to the approximate or smoothed estimations to eliminate anomalies and edge cases.
[0024] Consequently, the PIR occupancy estimation system 1 of the present disclosure processes the PIR signal by using a combination of signal processing and machine learning techniques.
[0025] Depending on the environment and types of motion produced by occupants, the algorithm operated by the control apparatus 12 may use different models to process the PIR signal (i.e., process the raw PIR data). The LSP model and the DWT model and the corresponding processing steps are exemplified as follows.
[0026] Please refer to
[0034] Please refer to
[0043] In an embodiment, as shown in
[0044] The PIR occupancy estimation system 1 of the present disclosure may be applied in applications like space utilization analytics, monitoring and controlling occupancy in an indoor space and optimizing HVAC (heating, ventilation and air conditioning) control/energy, but not limited thereto. Taking HVAC applications as an example,
[0045] In an embodiment, the PIR occupancy estimation system 1 includes a plurality of said PIR motion sensors 11 to refine and/or enhance the readings recorded by the motion sensors. As an example, the adjacent distributed PIR motion sensors are utilized to detect motion coming or leaving other spaces. Further, in an embodiment, as shown in
[0046] From the above descriptions, the present disclosure provides a PIR occupancy estimation system using a standard low-cost PIR motion sensor to produce an estimation of the number of occupants in a target space. This is made possible by processing the PIR signal using a combination of signal processing and machine learning techniques. Consequently, the cost is greatly reduced.
[0047] While the disclosure has been described in terms of what is presently considered to be the most practical and preferred embodiments, it is to be understood that the disclosure needs not be limited to the disclosed embodiment.