WO2018146454A1 - Motion detector - Google Patents
Motion detector Download PDFInfo
- Publication number
- WO2018146454A1 WO2018146454A1 PCT/GB2018/050265 GB2018050265W WO2018146454A1 WO 2018146454 A1 WO2018146454 A1 WO 2018146454A1 GB 2018050265 W GB2018050265 W GB 2018050265W WO 2018146454 A1 WO2018146454 A1 WO 2018146454A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- signal
- time window
- frame
- activity
- peak value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S7/00—Details of systems according to groups G01S13/00, G01S15/00, G01S17/00
- G01S7/52—Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S15/00
- G01S7/523—Details of pulse systems
- G01S7/526—Receivers
- G01S7/527—Extracting wanted echo signals
- G01S7/5276—Extracting wanted echo signals using analogue techniques
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01H—MEASUREMENT OF MECHANICAL VIBRATIONS OR ULTRASONIC, SONIC OR INFRASONIC WAVES
- G01H9/00—Measuring mechanical vibrations or ultrasonic, sonic or infrasonic waves by using radiation-sensitive means, e.g. optical means
- G01H9/008—Measuring mechanical vibrations or ultrasonic, sonic or infrasonic waves by using radiation-sensitive means, e.g. optical means by using ultrasonic waves
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S15/00—Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems
- G01S15/02—Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems using reflection of acoustic waves
- G01S15/50—Systems of measurement, based on relative movement of the target
- G01S15/58—Velocity or trajectory determination systems; Sense-of-movement determination systems
- G01S15/62—Sense-of-movement determination
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S15/00—Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems
- G01S15/02—Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems using reflection of acoustic waves
- G01S15/50—Systems of measurement, based on relative movement of the target
- G01S15/52—Discriminating between fixed and moving objects or between objects moving at different speeds
- G01S15/523—Discriminating between fixed and moving objects or between objects moving at different speeds for presence detection
- G01S15/526—Discriminating between fixed and moving objects or between objects moving at different speeds for presence detection by comparing echos in different sonar periods
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S15/00—Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems
- G01S15/02—Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems using reflection of acoustic waves
- G01S15/50—Systems of measurement, based on relative movement of the target
- G01S15/58—Velocity or trajectory determination systems; Sense-of-movement determination systems
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/017—Gesture based interaction, e.g. based on a set of recognized hand gestures
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
Definitions
- Ultrasonic signals can be used to provide motion detection of objects near devices * Such motion detection can then be ueedfor gesture recognition purposes, or any other motion triggered procedure, in particular, such motion detection can be used to activate a function or application of a device or to bring a device In or out of a iow ⁇ power mode.
- the Poppler Effect can be used to detect movement of an object near the detector, by determining the frequency shift of the echoes from a transmitted continuous wave-
- ultrasonic signals for example above 20 kHz, are used to avoid interfering with everyday use of the device.
- a short pulse is transmitted and toe time delay between transmission and receipt of an echo pulse is used to determine the distance of an object from the device during that particular time period. The distance determined during different time periods can then be compared to determine if the object is moving or not.
- a method of detecting motion activity by means of a detector comprising for each of a series of ftemes,
- determining a peak value of the activity signal in a first time window of the frame determining a peak value of the activity signal in a second time window of the frame, wherein the second time window is different from the first time window;
- an ultrasonic motion activity detector comprising modules to, in each of a series of frames:
- the first time window is different from the second time window; calculate a ratio of the peak value of the activity signal in the first time window of the frame to the peak value of the activity signal in the second time window of the frame;
- a computer program product comprising a computer readable medium containing instmcffonsfor causing a processor to perform a method according to the first aspect.
- a method of detecting motion of an object relative to a detector comprising, at the detector;
- Figure 1 illustrates a device
- Figure 2 is a block diagram, illustrating a form of the device shown in Figure 1;
- Rgure 3 is a flow chart, illustrating a method in accordance with an aspect of the invention:
- Figure 4 illustrates a series of transmitted frames, each containing one pulse
- Figure 5 illustrates a Hanning windowed sine wave pulse
- Figure 6 illustrates an example of the form of one frame of the sampled signal that may be detected by a microphone
- Figure 7 illustrates an example of truer form of one frame of the received signal at the output: of the matched filter
- Figure 8 illustrates 9 ⁇ exampte of art activity signal calculated for a . frame during which there was no nearby moving object
- Figure 9 illustrates an example of an activity signal calculated for a frame during which there was a nearby moving object
- Figure 10 illustrates an example of a first time window and a second time window in a frame
- Figure 11 illustrates one possible form of the SNR signal for a sequence of 250 consecutive frames
- Figure 12 Illustrates an effect of the filtering on the SNR signal shown in Figure 11 for the same sequence of 250 consecutive frames
- Figure 13 Illustrates an effect of the smoothing on the SNR signal shown In Figures 11 and 12 for the same sequence of 250 consecutive frames;
- Figure 14 illustrates a stale of the output flag(s) in the case of the signal shown in Figures 11, 12 and 13 for the same sequence of 250 consecutive frames. Description
- Embodiments of tie present invention are able to detect motion of an object within a user specifiable distance range, Ignoring any motion outside of this predefined range.
- Figure 1 illustrates a use of a mobile device according to embodiments of the invention, A table 6 is illustrated with a user's hand 8 passing in the vicinity of the mobile device 10 positioned on the tabie 6.
- the mobile device 10 comprises a speaker 12 and a microphone 14. it will be appreciated that the mobile device may comprise more speakers 12 and/or microphones 14 and that the position of the speakers 12 and microphones 14 may be different to those depicted by way of example here, In some entoodiments, the distance between the microphone 14 and the speaker 12 may be less than 20cm or may be less than 2cm,
- the mobile device 10 is a smartphone, but the Invention as described herein is applicable to any sort of device, including devices intended to be used in a fixed location, such as motion sensors, cameras, monitors, or the like, and including other mobile devices such as laptop or tablet computers, games consoles, or the like.
- the speaker 12 is configured to output an ultrasonic signal to be used to detect the motion of objects near to the mobile device 6, for example the user's Hand 8»
- the speaker 12 Is also used to output conventional audio signals, typically in the audible range for use by the user of the mobile device 10.
- a speaker provided for outputting the ultrasonic signal may be separate from the speakers) used for audible signals.
- audio signals may be considered as those signals audible by a human, conventionally taken as up to 20kHz, although some audio signals may be limited in bandwidth by pre-processing or channel limitations to extend to a lower maximum frequency, say 8kHz or 3.4kHz for example.
- some function or application of the device 10 is activated in response to the detection of motion near to the device.
- the device 10 may be brought in to or out of a low-power mode, for example an "always-on" largely inactive but listening state in response to the detection of morion near to the device.
- the ultrasonic signal that is transmitted by the speaker 12 may be detected by the microphone 14, for example after reflecting off the user's hand 8, or any other nearby object.
- the ultrasonic signal that is transmitted by the speaker 12 will typically also be detected by the microphone 14 having travelled directly from the speaker to the microphone.
- the microphone 14 may also be used to detect audio signals, for example user voice signals as would be used In a conventional mobile telephone device.
- separate microphones may be provided for detecting audible and ultrasonic signals respectively.
- using the same microphone to detect audio and ultrasonic signals 1$ advantageous in terms of component count, cost and may opiate the need tor an additional aperture in the housing of the device and the associated risk of Ingress of extraneous matter or fluids into the device.
- FIG. 2 is a block diagram illustrating an embodiment of the device 10 shown in Figure 1
- Each of the modules shown in Figure 2 may be realised in hardware, in software running on a processor in the device 10 or elsewhere, or in a combination of hardware and software.
- a signal generator 16 generates a sequence of ultrasonic signal samples which may be in digital form. This signal may be in the form of repeated frames of length K samples, with each frame comprising a sequence of length L
- This signal x frt may then be converted into an analog signal by a digital-to
- the DAC 18 for outputting through the speaker 12.
- the DAC 18 may comprise a driver amplifier for driving the speaker 12 or such a driver amplifier may be a separate component, (not illustrated) inserted between the DAC and tie speaker. In some embodiments a similar signal amy be generated by analog techniques.
- the resulting acoustic signal output from the speaker 12 may be reflected off one or more objects before reaching the microphone 14.
- the distance travelled by the acoustic signal from the speaker via; any reflector to the microphone determines the time at which the corresponding reflected acoustic pulse signal will reach the microphone 14,
- the acoustic signal detected by the microphone 14 and the resulting electrical detected signal may therefore comprise a component that has travelled over a direct
- the analogue detected signal may be passed to an analog-to-digital converter
- a buffer 22 may store the
- Each stored frame of the detected signal may be input Into a matched filter 24 in order to increase a signal to noise ratio of the detected signal.
- the matched fitter 24 may convert each stored frame of the detected signal to obtain a frtteredsignal where * denotes the ⁇ omralution operation and is the time-reversed version of the pulse template
- the obtained filtered signal may then be input into an activity signal creation block 28, which creates an activity signal v ⁇ m) based on the present: frame m and at least one previous frame of the received signal.
- the activity signat v(m) is passed to a sjgnaRo-noise ratio (SNR) estinnator 28, which estimates the ratio of the activity signat during a portion of the present tame in which a motion signal may be detected (for example a first time window) to the activity signal during a portion of the presentf rame in which the signal is expected to represent noise (for example a second time window).
- SNR sjgnaRo-noise ratio
- the estimated SNR for the tame is passed to a median fitter 30, which generates a filtered SNR signal and th is turn is passed to a smoothing fitter 32, which generates a smoothed SNR signal .
- motion detection logic 34 which generates a signal M indicating whether motion has bean detected in mat frame.
- M indicating whether motion has bean detected in mat frame.
- FIG. 3 is a flow chart, illustrating a method Hi accordance with an aspect of the invention.
- the method contains steps that are performed by, or under the control of, one or more processor.
- step 100 an ultrasonic spinal is generated the ultrasonic signal that is generated in step 100 is a pufse signal, in this example, time is divided into frames, and one pulse is transmitted in each frame.
- a modem detection decision is obtained once in each frame, and so the length of the frame determines the rate at which such decisions can be made.
- the method described herein uses signals that are reflected from a moving object within a certain range of the device, and so the length of the frame is chosen tobe sufficiently long that such reflected signals are received comfortably within the same frame.
- the frame length is chosen to be 10.66ms. Thai is, the pulse repetition is 93.75Hz.
- Figure 4 shows a series of such frames, each containing one pulse.
- the pulse is a Hanntng windowed sine wave, as shown in Figure & That is, the pulse contains a carrier signal comprising a sine wave, to which is applied a Hanning window having a predetermined window length that defines the length of the pulse.
- the ultrasonic signal may be generated by applying a different window function to a sine wave or indeed an alternative carrier signal such as a bMevei, tri-level or triangle wave.
- the windowing function is tapered rather than being a simple rectangular function such that discontinuities in the signal are avoided and theref ore any audible pops and clicks which may result from the pulse signal are avoided.
- the sine wave has a frequency of 24kHz (that is, a period of «0.04ms). This is sampled at 96kHz, and the window lengths is 128 samples, giving a pulse length of 1.33ms in the time domain.
- the samples p(l) of the transmitted pulse can be denoted by a pulse template:
- an ultrasonic signal is detected by the microphone.
- the signal that is detected by the microphone includes a component thai is received over a direct path between the speaker and the microphone.
- the signal that is detected by the microphone also includes at least one component that is reflected from any nearby object If there is more than one nearby object, the signal that is detected by the microphone may include separate reflected components from each nearby object.
- the signal that is detected by the microphone is applied to the analog-digital converter to form a digital that is segmented into frames, in the fomr:
- the detected frames are, in this example, time aligned with the frames of the transmitted ultrasonic signal.
- the detected frames may not be time aligned with the transmitted frames, for example the start of ttre detected frames may be defined as delayed to compensate for the propagation delay of the direct path signal between the speaker and the microphone.
- the time shift between the transmitted and detected frames may be compensated for when selecting the time windows in order to ensure the desired distance range is accounted for. as will be discussed below.
- the sampling rate of the analog-digital converter is the same as the sampling rate used in the transmitted signal, i.e. 96kHz, and as before the frame length is 10.66ms, i.e. 1024 samples,
- Figure 6 shows the form, in one example, of one frame of the sampled signal that was detected by the microphone. This contains a component from the signal detected on the direct path between the speaker and the microphone, and one or more multipath echoes of the transmitted signal. This signal frame may be stored in a buffer memory.
- step 120 of the process shown in Figure 3 the detected signal stored In the buffer memory is applied to a matched filter which matches the detected signal to the transmitted ultrasonic signal template obtain a filtered signal
- the Altered signal is focused on the echoes and direct path signal resulting from the transmitted ultrasonic signal.
- the stored signal frame is converted to a filtered signal frame
- Figure 7 shows the form, in this one example, of one frame of Ithe output of the matched fitter, i.e. a frame y ⁇ m) of the obtained filtered signal.
- the group delay end processing delay of the matched fitter cause the peak to fee delayed slightly, compared to the peak of the signal shown in Figure 6,
- the fitter also increases the size of the peak.
- the peak is caused by both the direct path signal and the detected echo signals.
- the direct path signal will be stronger than the reflected signal and as illustrated here it may be difficult to distinguish the weaker reflected: portion of the signal without complex further signal processing.
- the detected signal will contain at least a component from the that is received on the direct path between the speaker and the microphone. This component will occur in the same time region of every detected frame * and indeed will be generally ideritical in every frame. Similarly, a signal delected as an echo from a nor* moving object will take a constant time-of-fiight between tne speaker and the microphone, and so this will also occur in the same time regions of the consecutive detected frames.
- the relative motion of the detector to an object may also be detected: for example a reflecting object may be stationary and the device composing a speaker and microphone may be moving . However, if required, the movement of the detector itself can be ignored by incorporating signals from other device sensors fndiicatihg that the device itself is being moved.
- step 130 of the process shown in Figure 3 an activity signal is generated *
- the activity signal is obtained by subtracting the sample values of the Uttered signal obtained in the previous frame from those in the current frame.
- an average of a number of previous frames may be taken and the average sample values subtracted from those in the current frame to obtain the activity signal.
- Either method removes the effect of the signals that are unchanged between frames and emphasising the: effect of the signals thai change from one frame to the next.
- the activity signal is calculated using the signal obtained from tie matched fitter.
- the activity signal may be calculated using the signal obtained from the analog-to-digitaf convenor 20, either directly or after some other form of processing, or using a signal obtained from a digital microphone.
- He signals transmitted by a nearby similar device may either be synchronous, in which case they will occur at approximately the same time within each frame, and will therefore be cancelled by the creation of tie activity vector, or may be asynchronous in which ease they will often fail into the second time window and be interpreted similarly to genera) background ultrasonic noise for example high frequency noise sources such as metallized or metallic objects rustling.
- the activity signal v(m) for the frame with the frame index m may therefore in some embodiments be defined as;
- Figure 8 shows an example of an activity signal v(i») calculated for a frame during which there was no nearby moving object Because the entire signal is largely unchanged between the previous frame and the current frame, the activity signal shown In; Figure 8 is at a very low level. This residual activity signal is a result of general background noise in these measurement conditions.
- Figure 9 shows an example of an activity signal v(m) calculated for a frame during which there was a nearby moving object. Because the received: signal includes a component that was altered from the previous: frame, the activity signal shown in Figure 9 is at a significantly non-zero level for a part of the frame.
- any moving object will determine the effect of that object on the activity signet. Any component of the received signal that is reflected from a more distant object will occur later in the frame than a component of the received signal that is reflected from an object or point on an object thai is closer to the detector. Similarly, a reflection from a mom distant object will be weaker than a reflection from an object closer to the detector, waves with distance and due to further transmission losses through the air which may be substantial for ultrasonic waves.
- the pulse repetition frequency is chosen tb be Slow enough (and, equivaJeritiy, the frame length is chosen to be long enough), that any moving object, which is sufficiently far from the detector that its reflection would occur near the end of the frame, will produce a very weak reflection.
- this form of activity signal indicates that there is a moving object that is close enough to the detector to produce an activity signal at a significant level during frame samples 100-400,
- the absence of an activity signal at a significant level during frame samples 600- 1000 only indicates that, if there was a moving object at a distance that would produce an activity signal during those frame samples, the reflections from that object are too weak to have a significant effect.
- step 140 of the process shown in Figure 3 a first component of the activity signal, during those samples of the frame in which the signal would result from motion of Interest, is then compared with a second component of the activity signal during those samples of the frame in which the signal would result mainly from noise. In some embodiments, this is referred to as a signal-to-noise ratio (SNR), which is determined by the SNR estimator 28 in Figure 2.
- SNR signal-to-noise ratio
- the SNR estimator may determine the first component as a value of the activity signal in e first time window of the frames and may determine the second component as a value of the activity signal representing noise in a second time window of the frame.
- the first time window may be different from the second time window.
- the lengths of the first and second time windows can be set, for example, by the device manufacturer.
- the fengjh of the first time window can be set based on the range within which the motion is intended to be detected, in some examples a motion detection range may be between 1cm and 30cm.
- An object at a distance of 30cm wilt cause a reflection after a time of In an exampie simdar to that illustrated here, with frame length, a time of samples out of 1024.
- selling a first time window that extends only a short way into the frame means that only reflexions from nearby objects will fail within the first time window* wh8e setting a first time window that extends further into the frame means that reflections from slightly more distant objects win fall within the first time window,
- the start of the first ti ⁇ ne window rrtay occur at the start of the frame, or may occur after the start of the frame, for exampie in order to compensate far the matched filter delay or to ignore signals with delay shorter than the direct path delay. If the start of the first time window is fixed, then setting a shorter first time window means that only reflections from nearby objects will fall within the first time window, while setting a longer first time window means that reflections from slightly more distant objects will fall within the first time window, The second window is set so that it Is not expected that any significant echoes will be received during that period, because any objects that are far enough away that they might cause such long-delayed echoes will also be expected to generate very weak echoes. In some examples the first and second time windows may overlap.
- the first and second time windows do not overlap.
- a gap is provided between the first and second time window. This gap may improve the signal- to-noise ratio as it avoids any frequency echoes which may occur towards the end of the first time window.
- the end of the time window may be defined early in order to avoid detecting echoes which may occur at distances where the reflected signal may be weak and hard to distinguish form noise in order to avoid unreliably flagging activity.
- the start of the second time window may be defined delayed in order to avoid the estimate of noise being possibly contaminated by residual signet activity due to such (ate echoes.
- the form of the waveform in Figure 9 implies there are actually multiple reflections, possibly from different objects or from multiple points on the same object. Such a scenario might confuse prior art methods which rely on calculating a single distance of a reflecting object per frame and frying to extract its velocity from inter-frame differences of this single calculated distance.
- Figure 10 shows an example in which the first time window extends from samples 60- 500 of the frame, and the second time window extends from samples 560-990 of the frame.
- the first time window may be considerably shorter than the second time window (for example less than half, or less Irian a quarter of the length),
- there may be a significantly long gap for example more than one third of the length of the frame, or longer than either the first or second time window) between the first and second time windows.
- the first time window may extend from samples 13&200 of the frame
- the second time window may extend from samples 700-1024 of the frame.
- the SNR estimator may determine the first component as a peak value of the activity signal in the first time window of the frame, and may determine the second component as a peak value of the activity signal in the second time window of the frame.
- determining a peak value of the activity signal in a first time window of the frame comprises determining the largest value of a magnitude of the activity signal In the first time window of the frame. Determining the largest value of the magnitude of the activity signal in the first time window of the frame may comprise squaring individual sample values of the activity signal, and determining the largest value of the squared: individual sample values of the activity signal in the second time window of the frame.
- the peak value of the activity signal in the first time window can be given as:
- the peak value of the activity signal in the second time window can be given as:
- An SNR estimate dan then be calculated from the peak value of the activity signal in the first time window and the peak value of the activity signal in the second time window.
- the SNR estimate for the frdrr ⁇ is calculated as a ratio the peak value of the activity signal in the first time window of the frame to the peak value of the activity signal in the second time window of the frame.
- the SNR estimate can be found by:
- the peak value for tie first time window or the second time window may be derived taking the absolute value of each sample rather than taking the square, Alternatively the peak maximum and minimum sample values may tie separately derived and the largest absolute value of these peak values selected, or the signal may be regarded as approximately symmetrical and only say the peak positive vaiue derived.
- the peak value for the first time window or the second time window may be derived by calculating an average vaiue of the magniMe of the signal, for example a mean square or root»mearHsquare of all the samples in a time window. This average may then be normalised by a factor obtained by assuming some peak-to- average ratio, or this factor may simply be ignored, and the resulting constant scaling or shift in the SNR parameter allowed for by appropriately adjusting threshold values that are later applied as described below.
- FIG 11 illustrates one possible form of the SNR signal for a sequence of 250 consecutive frames.
- the SNR estimate may then be input into a median filter 30 to help remove any outlying values.
- the median fitter 30 may for example output where is the median filter length.
- the output of the median filter is the
- Figure 12 illustrates an effect of the filtering on the SNR signal shown in Figure 11 for the same sequence of 250 consecutive frames.
- this may then be smoothed by smoothing block 32 using recursive averaging to smooth large transitions that ean occur from the median frttering.
- the smoothing block 32 may output: where a is a smocking parameter.
- step 170 of the process shown in Figure 3 this smoothed SNR estimate, waylben be input info the motion detection logic block 34.
- Figure 43 illustrates an effect of the smoothing on the SNR signal shown in Figures 11 and 12 for the same sequence of 250 consecutive frames, it wjB be appreciated that other filtering and/or smoothing methods may be used to remove outliers and to smooth large transitione within the SNR estimate.
- the SNR estimate obtained in step 140 may be input directly Nile the motion detection logic block 34.
- the motion detection logic block 34 compares the input SNR estimate with a threshold value to determine whether or not any motion of any object has occurred between the current frame and the at least one previous frame mat was considered when the activity signal was derived.
- the motion detection logic block 34 when the activity signal is greater than the threshold value the motion detection logic block 34 outputs a motion detection flag indicating that motion of an object has been detected, if the activity signal is less that the threshold value the motion detection logic block 34 outputs a motion detection flag indicating that there is no motion detected,
- a first, upper, threshold value and a second, lower, threshold value are provided. Hysteresis is then applied to these threshold values such that if the activity signal moves above the first threshold value the motion detection logic block will output a motion detection flag Indicating that motion is detected and if the activity signal drops below She second threshold value the motion detection logic block wilt output a motion detection flag indicating that motion is no longer detected, in step 180 of the process shown in Figure 3, an output is provided, in some embodiments the output is used to activate or deactivate a function or application of a mobile device.
- Figure 14 illustrates a state of the output flag(s) in the case of the signal shown in Figures 11 , 12 and 13 for the same sequence of 260 consecutive frames.
- the embodiment described above uses a single speaker 12 and single microphone 14. in some embodiments there may be multiple microphones each obtaining a distinct acoustic signal. These may be processed as above to generate separate output flags which may be logically combined, for example Ih an ANP or OR fashion, for example to detect motion in different zones around the device. Similarly there may be a plurality of speakers 12 transmitting the same or different acoustic stimuli at the same or different times, for example in alternate frames with the corresponding detected responses being processed in say alternate sets of frames.
- module shall be used to at least refer to a functional unit or block of an apparatus or device.
- the functional unit or block may be implemented at (east partly by dedicated hardware components such as custom defined circuitry and/or at least partly be implemented by one or more software processors or appropriate code running on a suitable general purpose processor or the like.
- a module may itself comprise other modules or functional units.
- This software code may be stored in the device as firmware on some non-volatile memory e.g. EEPROM (to preserve program data when the battery becomes discharged or Is removed for replacement.
- EEPROM electrically erasable programmable read-only memory
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Acoustics & Sound (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Measurement Of Velocity Or Position Using Acoustic Or Ultrasonic Waves (AREA)
Abstract
An ultrasonic motion activity detector is configured to, in each of a series of frames: obtain an ultrasonic signal derived from a transmitted ultrasonic signal; derive an activity signal based on a difference between the obtained signal in a present frame and at least one previous frame; determine a peak value of the activity signal in a first time window of the frame; determine a peak value of the activity signal in a second time window of the frame, wherein the first time window is different from the second time window; calculate a ratio of the peak value of the activity signal in the first time window of the frame to the peak value of the activity signal in the second time window of the frame; and compare the calculated ratio with a threshold value, and, in frames in which the calculated ratio exceeds the threshold value, determine that there is motion of an object relative to the detector.
Description
MOTION DETECTOR
TechnicaField This invention nelates to motion detection using ultrasonic signals. In particular, embodiments of the irwentjpn relate to a motion detectorfor use with a mobite device.
Background Ultrasonic signals can be used to provide motion detection of objects near devices* Such motion detection can then be ueedfor gesture recognition purposes, or any other motion triggered procedure, in particular, such motion detection can be used to activate a function or application of a device or to bring a device In or out of a iow^power mode. The Poppler Effect can be used to detect movement of an object near the detector, by determining the frequency shift of the echoes from a transmitted continuous wave- Usually ultrasonic signals, for example above 20 kHz, are used to avoid interfering with everyday use of the device. Alternativefy, a short pulse is transmitted and toe time delay between transmission and receipt of an echo pulse is used to determine the distance of an object from the device during that particular time period. The distance determined during different time periods can then be compared to determine if the object is moving or not.
However, these techniques suffer from false detections of object motion due to acoustic sources emitting in the ultrasonic range, for example metallized or metallic objects rustling or jangling. Furthermore, if another motion detection device is being used nearby, the first device may detect and misinterpret the ultrasonic signals being emitted from the nearby device, again resulting in a false detection of object motion. The frequency shift signal obtained using Peppier methods conveys only information about velocity so does not distinguish objects at different distances, and therefore does not allow any control over the range of distances over which the detector responds. Methods relying on an estimate of distance may be confused by simultaneous reflections from multiple different moving objects or from different areas on the same moving object Systems using Doppler methods also require relatively complex signal processing, and involve significant power consumption, making them unsuitable for continuous use.
Summary
According to a first aspect of the present invention there is provided a method of detecting motion activity by means of a detector, tie method comprising for each of a series of ftemes,
obtaining an ultrasonic signal derived from a transmitted ultrasonic signal;
deriving an activity signal based on a difference between the obtained signal in a present frame and in at least one previous frame;
determining a peak value of the activity signal in a first time window of the frame: determining a peak value of the activity signal in a second time window of the frame, wherein the second time window is different from the first time window;
calculating a ratio of the peak value of the activity signal in the first time window of the frame to the peak value of the actrvfty signal in the second time window of the frame;
comparing the calculated ratio with a threshold value; and
determining that, in frames in which the calculated ratio exceeds the threshold values, there is motion of an object relative to the detector,
According to a second aspect of the present invention there is provided an ultrasonic motion activity detector comprising modules to, in each of a series of frames:
obtain an ultrasonic signal derived from a transmitted ultrasonic signal;
derive an activity signal based on a difference between the obtained signal in a present frame and at least one previous frame;
determine a peak value of the activity signal in a first time window cf the frame; determine a peak value of the activity signal in a second time window of the frame, wherein
the first time window is different from the second time window; calculate a ratio of the peak value of the activity signal in the first time window of the frame to the peak value of the activity signal in the second time window of the frame;
compare the calculated ratio with a threshold value, and, in frames in which file calculated ratio exceeds the threshold value, determine that mere is motion of an object relative to the detector.
According to a third aspect of the present Invention there is provided a computer program product, comprising a computer readable medium containing instmcffonsfor causing a processor to perform a method according to the first aspect. According to a fourth aspect of the present invention there is provided a method of detecting motion of an object relative to a detector, the method comprising, at the detector;
receiving an uftrasonjc signal comprising a component received direct fjram a transmitter and at least one component reflected from said object;
processing the received signal to remove any component that is constant from one time period to another time period and to obtain a signal that contains any reflected component due to motion of said object; and
delecting motion of the object based on said obtained signal.
Brief Description of the Drawings
For a better understanding of the present invention, and to show how it may be put info effect, reference will now be made, by way of example only, to the accompanying drawngs, in which:-
Figure 1 illustrates a device;
Figure 2 is a block diagram, illustrating a form of the device shown in Figure 1;
Rgure 3 is a flow chart, illustrating a method in accordance with an aspect of the invention:
Figure 4 illustrates a series of transmitted frames, each containing one pulse;
Figure 5 illustrates a Hanning windowed sine wave pulse;
Figure 6 illustrates an example of the form of one frame of the sampled signal that may be detected by a microphone;
Figure 7 illustrates an example of truer form of one frame of the received signal at the output: of the matched filter;
Figure 8 illustrates 9η exampte of art activity signal calculated for a. frame during which there was no nearby moving object;
Figure 9 illustrates an example of an activity signal calculated for a frame during which there was a nearby moving object; Figure 10 illustrates an example of a first time window and a second time window in a frame;
Figure 11 illustrates one possible form of the SNR signal for a sequence of 250 consecutive frames;
Figure 12 Illustrates an effect of the filtering on the SNR signal shown in Figure 11 for the same sequence of 250 consecutive frames;
Figure 13 Illustrates an effect of the smoothing on the SNR signal shown In Figures 11 and 12 for the same sequence of 250 consecutive frames;
Figure 14 illustrates a stale of the output flag(s) in the case of the signal shown in Figures 11, 12 and 13 for the same sequence of 250 consecutive frames. Description
Embodiments of tie present invention are able to detect motion of an object within a user specifiable distance range, Ignoring any motion outside of this predefined range. Figure 1 illustrates a use of a mobile device according to embodiments of the invention, A table 6 is illustrated with a user's hand 8 passing in the vicinity of the mobile device 10 positioned on the tabie 6.
The mobile device 10 comprises a speaker 12 and a microphone 14. it will be appreciated that the mobile device may comprise more speakers 12 and/or microphones 14 and that the position of the speakers 12 and microphones 14 may be different to those
depicted by way of example here, In some entoodiments, the distance between the microphone 14 and the speaker 12 may be less than 20cm or may be less than 2cm,
In this iitustrative example, the mobile device 10 is a smartphone, but the Invention as described herein is applicable to any sort of device, including devices intended to be used in a fixed location, such as motion sensors, cameras, monitors, or the like, and including other mobile devices such as laptop or tablet computers, games consoles, or the like. The speaker 12 is configured to output an ultrasonic signal to be used to detect the motion of objects near to the mobile device 6, for example the user's Hand 8» In some embodiments, the speaker 12 Is also used to output conventional audio signals, typically in the audible range for use by the user of the mobile device 10. In other embodiments a speaker provided for outputting the ultrasonic signal may be separate from the speakers) used for audible signals. For the purposes of this document, audio signals may be considered as those signals audible by a human, conventionally taken as up to 20kHz, although some audio signals may be limited in bandwidth by pre-processing or channel limitations to extend to a lower maximum frequency, say 8kHz or 3.4kHz for example. We will refer to either an ultrasonic (>20kHz) or near ultrasonic {e,g> in the upper half of the audio band) as an ultrasonic signal.
In certain embodiments, some function or application of the device 10 is activated in response to the detection of motion near to the device. In certain embodiments, the device 10 may be brought in to or out of a low-power mode, for example an "always-on" largely inactive but listening state in response to the detection of morion near to the device.
The ultrasonic signal that is transmitted by the speaker 12 may be detected by the microphone 14, for example after reflecting off the user's hand 8, or any other nearby object. The ultrasonic signal that is transmitted by the speaker 12 will typically also be detected by the microphone 14 having travelled directly from the speaker to the microphone.
The microphone 14 may also be used to detect audio signals, for example user voice signals as would be used In a conventional mobile telephone device. Alternatively, separate microphones may be provided for detecting audible and ultrasonic signals
respectively. However using the same microphone to detect audio and ultrasonic signals 1$ advantageous in terms of component count, cost and may opiate the need tor an additional aperture in the housing of the device and the associated risk of Ingress of extraneous matter or fluids into the device.
Figure 2 is a block diagram illustrating an embodiment of the device 10 shown in Figure 1 Each of the modules shown in Figure 2 may be realised in hardware, in software running on a processor in the device 10 or elsewhere, or in a combination of hardware and software.
A signal generator 16 generates a sequence of ultrasonic signal samples
which may be in digital form. This signal may be in the form of repeated frames of length K samples, with each frame comprising a sequence of length L
samples, as described in more detail below.
analog converter (DAC) 18 for outputting through the speaker 12. The DAC 18 may comprise a driver amplifier for driving the speaker 12 or such a driver amplifier may be a separate component, (not illustrated) inserted between the DAC and tie speaker. In some embodiments a similar signal amy be generated by analog techniques.
The resulting acoustic signal output from the speaker 12 may be reflected off one or more objects before reaching the microphone 14. The distance travelled by the acoustic signal from the speaker via; any reflector to the microphone determines the time at which the corresponding reflected acoustic pulse signal will reach the microphone 14, The acoustic signal detected by the microphone 14 and the resulting electrical detected signal may therefore comprise a component that has travelled over a direct
path between the speaker and the microphone, and potentially one or more components reflected from nearby objects.
digital signal In frames
each comprising a sub-sequence of say K samples of the digital detected signal
Each stored frame
of the detected signal may be input Into a matched filter 24 in order to increase a signal to noise ratio of the detected signal. As shown in Figure 2, and as described In more detail with reference to Figure 3, the matched fitter 24 may convert each stored frame
of the detected signal to obtain a frtteredsignal
where * denotes the ©omralution operation and
is the time-reversed version of the pulse template
The obtained filtered signal may then be input into an activity signal creation block 28, which creates an activity signal v{m) based on the present: frame m and at least one previous frame of the received signal.
The activity signat v(m) is passed to a sjgnaRo-noise ratio (SNR) estinnator 28, which estimates the ratio of the activity signat during a portion of the present tame in which a motion signal may be detected (for example a first time window) to the activity signal during a portion of the presentf rame in which the signal is expected to represent noise (for example a second time window).
The estimated SNR for the tame
is passed to a median fitter 30, which generates a filtered SNR signal
and th is turn is passed to a smoothing fitter 32, which generates a smoothed SNR signal
.
This is passed to motion detection logic 34, which generates a signal M
indicating whether motion has bean detected in mat frame. In some embodiments,
or MD(M)
Tha operation of the device shown in Figure 2 will now he described in mora detail with reference to Figure 3.
Figure 3 is a flow chart, illustrating a method Hi accordance with an aspect of the invention. The method contains steps that are performed by, or under the control of, one or more processor.
In step 100, an ultrasonic spinal is generated the ultrasonic signal that is generated in step 100 is a pufse signal, in this example, time is divided into frames, and one pulse is transmitted in each frame. In this example, a modem detection decision is obtained once in each frame, and so the length of the frame determines the rate at which such decisions can be made. The method described herein uses signals that are reflected from a moving object within a certain range of the device, and so the length of the frame is chosen tobe sufficiently long that such reflected signals are received comfortably within the same frame.
In this example, the frame length is chosen to be 10.66ms. Thai is, the pulse repetition is 93.75Hz. Figure 4 shows a series of such frames, each containing one pulse. In this example, the pulse is a Hanntng windowed sine wave, as shown in Figure & That is, the pulse contains a carrier signal comprising a sine wave, to which is applied a Hanning window having a predetermined window length that defines the length of the pulse. However, it will be appreciated that the ultrasonic signal may be generated by applying a different window function to a sine wave or indeed an alternative carrier signal such as a bMevei, tri-level or triangle wave. Preferably the windowing function is tapered rather than being a simple rectangular function such that discontinuities in the signal are avoided and theref ore any audible pops and clicks which may result from the pulse signal are avoided. In this example, as shown In Figure 5, the sine wave has a frequency of 24kHz (that is, a period of «0.04ms). This is sampled at 96kHz, and the window lengths is 128 samples, giving a pulse length of 1.33ms in the time domain.
where
In step 110, an ultrasonic signal is detected by the microphone. The signal that is detected by the microphone includes a component thai is received over a direct path between the speaker and the microphone. The signal that is detected by the microphone also includes at least one component that is reflected from any nearby object If there is
more than one nearby object, the signal that is detected by the microphone may include separate reflected components from each nearby object.
The signal that is detected by the microphone is applied to the analog-digital converter to form a digital
that is segmented into frames, in the fomr:
where « is the frame index, k is the frame sample index and K is the frame length, in samptes. These detected frames are, in this example, time aligned with the frames of the transmitted ultrasonic signal. In some embodiments it will be appreciated that the detected frames may not be time aligned with the transmitted frames, for example the start of ttre detected frames may be defined as delayed to compensate for the propagation delay of the direct path signal between the speaker and the microphone. In these embodiments the time shift between the transmitted and detected frames may be compensated for when selecting the time windows in order to ensure the desired distance range is accounted for. as will be discussed below. in this illustrative example, the sampling rate of the analog-digital converter is the same as the sampling rate used in the transmitted signal, i.e. 96kHz, and as before the frame length is 10.66ms, i.e. 1024 samples,
Figure 6 shows the form, in one example, of one frame of the sampled signal that was detected by the microphone. This contains a component from the signal detected on the direct path between the speaker and the microphone, and one or more multipath echoes of the transmitted signal. This signal frame may be stored in a buffer memory.
In step 120 of the process shown in Figure 3, the detected signal stored In the buffer memory is applied to a matched filter which matches the detected signal to the transmitted ultrasonic signal template obtain a filtered signal
removing any noise uncorrelated to the transmitted ultrasonic signal, thereby ensuring mat the Altered signal is focused on the echoes and direct path signal resulting from the transmitted ultrasonic signal.
That Is, the stored signal frame is converted to a filtered signal frame
Figure 7 shows the form, in this one example, of one frame of Ithe output of the matched fitter, i.e. a frame y{m) of the obtained filtered signal. The group delay end processing delay of the matched fitter cause the peak to fee delayed slightly, compared to the peak of the signal shown in Figure 6, The fitter also increases the size of the peak. The peak is caused by both the direct path signal and the detected echo signals. However typically the direct path signal will be stronger than the reflected signal and as illustrated here it may be difficult to distinguish the weaker reflected: portion of the signal without complex further signal processing.
As mentioned above, the detected signal will contain at least a component from the that is received on the direct path between the speaker and the microphone. This component will occur in the same time region of every detected frame* and indeed will be generally ideritical in every frame. Similarly, a signal delected as an echo from a nor* moving object will take a constant time-of-fiight between tne speaker and the microphone, and so this will also occur in the same time regions of the consecutive detected frames.
However, when an object in the vicinity of the detector is moving, a signal defected as an echo from the moving object will take a time-of-flight between the speaker and the microphone that will change as the location of the object changes. Therefore, the signal that is detected as an echo will occur In different time regions of the signal in successive detected frames. This is true of virtually any type of movement in the vicinity of the detector, Even If the motion is such that the locus of one point on an object is such as to define a constant total path length, e.g. an elliptical trajectory, the shape of the object and Its trajectory are extremely unlikely to be such that this is true for every reflection point on the object Multiple echoes are likely to be received from the movement of a single object due to uneven surfaces and non-unrform motion. This allows lor movement in any direction to be detectable, if desired.
The relative motion of the detector to an object may also be detected: for example a reflecting object may be stationary and the device composing a speaker and microphone may be moving . However, if required, the movement of the detector itself can be ignored
by incorporating signals from other device sensors fndiicatihg that the device itself is being moved.
In step 130 of the process shown in Figure 3, an activity signal is generated*
In this example, the activity signal is obtained by subtracting the sample values of the Uttered signal obtained in the previous frame from those in the current frame. Alternativeiy, an average of a number of previous frames may be taken and the average sample values subtracted from those in the current frame to obtain the activity signal. Either method removes the effect of the signals that are unchanged between frames and emphasising the: effect of the signals thai change from one frame to the next.
In this example, the activity signal is calculated using the signal obtained from tie matched fitter. However, in other examples, the activity signal may be calculated using the signal obtained from the analog-to-digitaf convenor 20, either directly or after some other form of processing, or using a signal obtained from a digital microphone.
He signals transmitted by a nearby similar device may either be synchronous, in which case they will occur at approximately the same time within each frame, and will therefore be cancelled by the creation of tie activity vector, or may be asynchronous in which ease they will often fail into the second time window and be interpreted similarly to genera) background ultrasonic noise for example high frequency noise sources such as metallized or metallic objects rustling. The activity signal v(m) for the frame with the frame index m may therefore in some embodiments be defined as;
Figure 8 shows an example of an activity signal v(i») calculated for a frame during which there was no nearby moving object Because the entire signal is largely unchanged between the previous frame and the current frame, the activity signal shown In; Figure 8 is at a very low level. This residual activity signal is a result of general background noise in these measurement conditions.
Figure 9 shows an example of an activity signal v(m) calculated for a frame during which there was a nearby moving object. Because the received: signal includes a component that was altered from the previous: frame, the activity signal shown in Figure 9 is at a significantly non-zero level for a part of the frame.
The location of any moving object will determine the effect of that object on the activity signet. Any component of the received signal that is reflected from a more distant object will occur later in the frame than a component of the received signal that is reflected from an object or point on an object thai is closer to the detector. Similarly, a reflection from a mom distant object will be weaker than a reflection from an object closer to the detector, waves with distance and due to further transmission losses through the air which may be substantial for ultrasonic waves.
The pulse repetition frequency is chosen tb be Slow enough (and, equivaJeritiy, the frame length is chosen to be long enough), that any moving object, which is sufficiently far from the detector that its reflection would occur near the end of the frame, will produce a very weak reflection. Thus, in the case of Figure 9, this form of activity signal indicates that there is a moving object that is close enough to the detector to produce an activity signal at a significant level during frame samples 100-400, However, the absence of an activity signal at a significant level during frame samples 600- 1000 only indicates that, if there was a moving object at a distance that would produce an activity signal during those frame samples, the reflections from that object are too weak to have a significant effect.
In step 140 of the process shown in Figure 3, a first component of the activity signal, during those samples of the frame in which the signal would result from motion of Interest, is then compared with a second component of the activity signal during those samples of the frame in which the signal would result mainly from noise. In some embodiments, this is referred to as a signal-to-noise ratio (SNR), which is determined by the SNR estimator 28 in Figure 2.
Specifically, the SNR estimator may determine the first component as a value of the activity signal in e first time window of the frames and may determine the second
component as a value of the activity signal representing noise in a second time window of the frame. The first time window may be different from the second time window.
The lengths of the first and second time windows can be set, for example, by the device manufacturer. In particular the fengjh of the first time window can be set based on the range within which the motion is intended to be detected, in some examples a motion detection range may be between 1cm and 30cm. An object at a distance of 30cm wilt cause a reflection after a time of
In an exampie simdar to that illustrated here, with frame length, a time of samples out of 1024.
Thus, selling a first time window that extends only a short way into the frame means that only reflexions from nearby objects will fail within the first time window* wh8e setting a first time window that extends further into the frame means that reflections from slightly more distant objects win fall within the first time window,
The start of the first ti^ne window rrtay occur at the start of the frame, or may occur after the start of the frame, for exampie in order to compensate far the matched filter delay or to ignore signals with delay shorter than the direct path delay. If the start of the first time window is fixed, then setting a shorter first time window means that only reflections from nearby objects will fall within the first time window, while setting a longer first time window means that reflections from slightly more distant objects will fall within the first time window, The second window is set so that it Is not expected that any significant echoes will be received during that period, because any objects that are far enough away that they might cause such long-delayed echoes will also be expected to generate very weak echoes. In some examples the first and second time windows may overlap. However, in this example the first and second time windows do not overlap. In this example a gap is provided between the first and second time window. This gap may improve the signal- to-noise ratio as it avoids any frequency echoes which may occur towards the end of the first time window. The end of the time window may be defined early in order to avoid detecting echoes which may occur at distances where the reflected signal may be weak and hard to distinguish form noise in order to avoid unreliably flagging activity. The start
of the second time window may be defined delayed in order to avoid the estimate of noise being possibly contaminated by residual signet activity due to such (ate echoes.
The form of the waveform in Figure 9 implies there are actually multiple reflections, possibly from different objects or from multiple points on the same object. Such a scenario might confuse prior art methods which rely on calculating a single distance of a reflecting object per frame and frying to extract its velocity from inter-frame differences of this single calculated distance. Figure 10 shows an example in which the first time window extends from samples 60- 500 of the frame, and the second time window extends from samples 560-990 of the frame. In other examples, the first time window may be considerably shorter than the second time window (for example less than half, or less Irian a quarter of the length), In other examples, there may be a significantly long gap (for example more than one third of the length of the frame, or longer than either the first or second time window) between the first and second time windows. For example, the first time window may extend from samples 13&200 of the frame, and the second time window may extend from samples 700-1024 of the frame. in this example, the SNR estimator may determine the first component as a peak value of the activity signal in the first time window of the frame, and may determine the second component as a peak value of the activity signal in the second time window of the frame. In some embodiments, determining a peak value of the activity signal in a first time window of the frame comprises determining the largest value of a magnitude of the activity signal In the first time window of the frame. Determining the largest value of the magnitude of the activity signal in the first time window of the frame may comprise squaring individual sample values of the activity signal, and determining the largest value of the squared: individual sample values of the activity signal in the second time window of the frame.
activity signal. Defining the lowest and highest sample indexes for the first time window therefore defines the signal region of the activity signal in each frame, and this allows the motion detection range to be controlled,
Similarly , determining a peak value: of the activity signal in a second time window of the frame may comprise determining the largest value of a magnitude of the activity signal In the second time window of the frame. Determining the largest value of the magnitude of the activity signal in the second time window of the frame may comprise squaring individual sample values of the activity signal, and determining the largest value of the squared individual sample values of the activity signal in the second time window of the frame In this case, the peak value of the activity signal in the second time window can be given as: where
activity signal.
An SNR estimate dan then be calculated from the peak value of the activity signal in the first time window and the peak value of the activity signal in the second time window. In
some embodiments the SNR estimate for the frdrr^ is calculated as a ratio the peak value of the activity signal in the first time window of the frame to the peak value of the activity signal in the second time window of the frame. Thus, in some embodiments the SNR estimate can be found by:
In other embodiments the peak value for tie first time window or the second time window may be derived taking the absolute value of each sample rather than taking the square, Alternatively the peak maximum and minimum sample values may tie separately derived and the largest absolute value of these peak values selected, or the signal may be regarded as approximately symmetrical and only say the peak positive vaiue derived.
In further embodiments, the peak value for the first time window or the second time window may be derived by calculating an average vaiue of the magniMe of the signal, for example a mean square or root»mearHsquare of all the samples in a time window. This average may then be normalised by a factor obtained by assuming some peak-to- average ratio, or this factor may simply be ignored, and the resulting constant scaling or shift in the SNR parameter allowed for by appropriately adjusting threshold values that are later applied as described below.
Figure 11 illustrates one possible form of the SNR signal for a sequence of 250 consecutive frames. In step 150 of the process shown in Figure 3, the SNR estimate may then be input into a median filter 30 to help remove any outlying values. The median fitter 30 may for example output
where is the median filter length. Thus, the output of the median filter is the
median value of the SNR from amongst the most recently calculated SNR values.
Figure 12 illustrates an effect of the filtering on the SNR signal shown in Figure 11 for the same sequence of 250 consecutive frames.
in step 160 of the process shown in Figure 3, this may then be smoothed by smoothing block 32 using recursive averaging to smooth large transitions that ean occur from the median frttering. For example, the smoothing block 32 may output:
where a is a smocking parameter. jn step 170 of the process shown in Figure 3, this smoothed SNR estimate,
waylben be input info the motion detection logic block 34.
Figure 43 illustrates an effect of the smoothing on the SNR signal shown in Figures 11 and 12 for the same sequence of 250 consecutive frames, it wjB be appreciated that other filtering and/or smoothing methods may be used to remove outliers and to smooth large transitione within the SNR estimate. Alternatively the SNR estimate obtained in step 140 may be input directly Nile the motion detection logic block 34.
In step 170 of the process shown in Figure 3, the motion detection logic block 34 compares the input SNR estimate with a threshold value to determine whether or not any motion of any object has occurred between the current frame and the at least one previous frame mat was considered when the activity signal was derived.
In some embodiments when the activity signal is greater than the threshold value the motion detection logic block 34 outputs a motion detection flag indicating that motion of an object has been detected, if the activity signal is less that the threshold value the motion detection logic block 34 outputs a motion detection flag indicating that there is no motion detected,
In some embodiments, as shown in Figure 13, a first, upper, threshold value and a second, lower, threshold value are provided. Hysteresis is then applied to these threshold values such that if the activity signal moves above the first threshold value the motion detection logic block will output a motion detection flag Indicating that motion is detected and if the activity signal drops below She second threshold value the motion
detection logic block wilt output a motion detection flag indicating that motion is no longer detected, in step 180 of the process shown in Figure 3, an output is provided, in some embodiments the output is used to activate or deactivate a function or application of a mobile device.
Figure 14 illustrates a state of the output flag(s) in the case of the signal shown in Figures 11 , 12 and 13 for the same sequence of 260 consecutive frames.
The embodiment described above uses a single speaker 12 and single microphone 14. in some embodiments there may be multiple microphones each obtaining a distinct acoustic signal. These may be processed as above to generate separate output flags which may be logically combined, for example Ih an ANP or OR fashion, for example to detect motion in different zones around the device. Similarly there may be a plurality of speakers 12 transmitting the same or different acoustic stimuli at the same or different times, for example in alternate frames with the corresponding detected responses being processed in say alternate sets of frames.
There is therefore provided a method and apparatus for detecting motion of an object within a user or manufacturer specifiable distance range, ignoring any apparent motion outside of this predefined range and insensitive to multiple simultaneous reflections.
As used herein, the term 'module' shall be used to at least refer to a functional unit or block of an apparatus or device. The functional unit or block may be implemented at (east partly by dedicated hardware components such as custom defined circuitry and/or at least partly be implemented by one or more software processors or appropriate code running on a suitable general purpose processor or the like. A module may itself comprise other modules or functional units.
This software code may be stored in the device as firmware on some non-volatile memory e.g. EEPROM (to preserve program data when the battery becomes discharged or Is removed for replacement. It should be understood— especially by those having ordinary skill in the art with the benefit of this disclosure— that that the various operations described herein, particularly
in connection with the figures, may be implemented by other circuitry or other hardware components. The order in which each operation of a given method is performed may be changed, and various elements of the systems illustrated herein may be added, reordered, combined, omitted, modified, etc. It is intended that this disclosure embrace all suer* modiftcatlons and change* and, accordingly, the above description should be regarded in an illustrative rather than a restrictive sense.
It should be noted that; the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in fie art will be able to design many alternative embodiments without departing from the scope of the appended claims. The word "comprising" does not exclude the presence of elements or steps other than those listed In a claim, "a* or "an" does not exclude a plurality, and a: single feature or other unit may fulfil the functions of several units recited In the claims. Any reference numerals of labels m the claims shall not be constraed so as to limit their scope,
Similarly* although this disclosure makes reference to specific embodiments, certain modifications and changes can be made to those embodiments without departing from the scope and coverage of this disclosure. Moreover, any benefits, advantages, or solutions to problems that are described herein with regard to specific embodiments are not intended to be construed as a critical, required, or essential feature or element Further embodiments likewise, with the benefit of this disclosure, will be apparent to those having ordinary skill in the art, and such embodiments should be deemed as being encompassed herein.
Claims
1. A method of detecting motion activity by means of a detector, the method comprising for each of a series of frames,
obtaining an ultrasonic signal derived from a transmitted ultrasonic signal;
deriving an activity signal based on a difference between the: obtained signal in a present frame and in at least one previous frame;
determining a peak value of the activity signal in a first time window of the frame; detemrining a peak value of the activity signet in a second time window of the frame, wherein the second time window is different from the first time window;
calculating a ratio of the peak value of the actMy signal in the first time window of the frame to the peak value of the activity signal in the second time window of the frame;
comparing the calculated ratio with a threshold value; and
determining that, in frame* in which the calculated ratio exceeds the threshold values, there is motion of an object relative to the detector.
2. The method as claimed in claim 1 further comprising:
generating the transmitted ultrasonic signal.
3. The method as claimed in claim 2 wherein the step of generating the transmitted ultrasonic signal comprises applying a tapered window function to a carrier signal.
4. The method as claimed in claim 2 or 3 wherein the step of generating the transmitted ultrasonic signal comprises generating a Hanning windowed sine wave pulse.
5. The method as claimed In any preceding claim wherein the first time window and the second time window do not overlap.
6. A method as claimed in claim 5 wherein there is a gap in time in between the first time window and the second time window.
7. The method as claimed in any preceding claim further comprising;
receiving from a microphone a detected ultrasonic signal derived from the transmitted ultrasonic signal, and
generating the obtained signal from the detected uttrasonlc signal.
8, The method as claimed in claim 7, composing generating the obtained signal by filtering the defected ultrasonic signal.
9. The method as claimed in claim 8 wherein the step of filtering the detected ultrasonic signal comprises applying a matched filter to the detected signet, wherein the matched fitter matches the detected signal to a template used to generate the transmitted ultrasonic signal.
10. The method m claimed in any preceding claim wherein the step of determining a peak value of the activity signal in a first time window of the frame comprises determining the largest value of a magnitude of the activity signal in tine first time window of the frame.
11. The method as claimed in claim 10 wherein determining the largest value of the magnitude of the activity signal in the first time window of the frame comprises: squaring indMdual sample values of tie activity signal, and
determining the largest value of the squared individual sample values of the activity signal in the second time window of the frame.
12. The method as claimed in any preceding claim wherein tie step of determining a peak value of the activity signal in a second time window of the frame comprises determining the largest value of a magnitude of the activity signal in the second time window of the frame.
13. The method as claimed in claim 12 wherein determining the largest value of the magnitude of the activity signal in the second time window of the frame comprises squaring individual sample values of the activity signal, and
determining the largest value of the squared individual sample values of the activity signal in the second time window of the frame.
14. The method as claimed in any preceding claim wherein calculating the ratio of the peak value of the activity signal in the first time window of the frame to the peak value of the activity signal in the second time window of the frame comprises,
applying a median filter to a set of ratio values from a plurality of frames.
15. The method as claimed in claim 14, wherein calculating the ratio of the peak value of the activity signal in the first time window of the frame to the peak value of the activity signal in the second time window of the frame further comprises applying a smoothing filter to the filtered ratio to generate the calculated ratio.
16, The method as claimed in any of claims 1 to 13 , wherein calculating the; ratio of the peak value of the activity signal in the first time window of the frame to the peak value of the activity signal in the second time window of the frame further comprises applying a smoothing fitter to a ratio of the peak value of the activity signal in the first time window of the frame to the peak value of the activity signal in the second time window of the frame to generate the calculated ratio. 17, The method as claimed in any preceding claim further comprising, if it is determined that the calculated ratio exceeds the threshold in a frame,
comparing the calculated ratio to a second threshold, and determining that, in frames in which the calculated ratio drops below the second threshold value, there is no longer motion of an object relative to the detector,
13; The method as claimed in any preceding claim further comprising outputting a signal if it is determined that there is motion of an object relative to the detector.
19. The method as claimed In any preceding claim, further comprising setting at least one of a duration and a erne position of the first time window to correspond to an intended detection range of the detector
20. The method as claimed in any preceding claim, wherein the detector is provided in an electronic device.
The method as claimed in claim 20, further comprising activating a function or of the device if it is determined mat there is motion of an object relative to
22. The method as claimed in claim 20, farther comprtsingi activating or deactivating a low power mode of operation of the device if it is determined that there is motion of an object relative to the detector.
23. The method as claimed in any of claims 20, 21 or 22, wherein the electronic device is a mobile device.
24. An ultrasonic motion activity detector comprising modules to, in each of a series of frames:
obtain an ultrasonic signal derived from a transmitted ultrasonic signal;
derive an activity signal based on a difference between the obtained signal in a present frame and at least one previous frame;
determine a peak value of tie activity signal in a first time window of the frame; determine a peak value of the activity signal in a second time window of the frame, wherein
the first time window is different from the second time window; calculate a ratio of the peak value of the activity signal in the first time window of the frame to the peak value of the activity signal in the second time window of the frame;
compare the calculated ratio with a threshold value, and, in frames in which the calculated ratio exceeds the threshold value, determine that there is motion of an object relative to the detector.
25. An electronic device comprising an ultrasonic motion activity detector as claimed in claim 24.
26. An electronic device as claimed in claim 25, comprising a smartphone, motion sensor, camera, monitor, laptop or tablet computer, or games console.
27. A computer program product comprising a computer readable medium containing instructions for causing a processor to perform a method according to any one of claims 1 to 23.
28. A method of detecting motion of an object relative to a detector, the method comprising, at the detector;
receiving an ultrasonic signal comprising a component received direct from a transmitter and at feast one component reflected from said object;
processing the received signal to remove any component that is constant from one time period to another time period and to obtain a signal that is dependent on any change in the received signal from one time period to another; and
detecting motion of the object based on said obtained signal.
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US201762455888P | 2017-02-07 | 2017-02-07 | |
| US62/455,888 | 2017-02-07 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2018146454A1 true WO2018146454A1 (en) | 2018-08-16 |
Family
ID=58795890
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/GB2018/050265 Ceased WO2018146454A1 (en) | 2017-02-07 | 2018-01-30 | Motion detector |
Country Status (3)
| Country | Link |
|---|---|
| US (1) | US10641650B2 (en) |
| GB (1) | GB2559427A (en) |
| WO (1) | WO2018146454A1 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10641650B2 (en) * | 2017-02-07 | 2020-05-05 | Cirrus Logic, Inc. | Motion detector |
Families Citing this family (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP3650987B1 (en) * | 2018-11-08 | 2023-11-01 | Vestel Elektronik Sanayi ve Ticaret A.S. | Apparatus and method for tracking movement of an object |
| US10743143B1 (en) * | 2019-05-15 | 2020-08-11 | Cognitive Systems Corp. | Determining a motion zone for a location of motion detected by wireless signals |
| US11194044B2 (en) * | 2020-02-13 | 2021-12-07 | Tymphany Acoustic Technology (Huizhou) Co., Ltd. | Object movement detection based on ultrasonic sensor data analysis |
| US11156714B2 (en) * | 2020-02-13 | 2021-10-26 | Tymphany Acoustic Technology (Huizhou) Co., Ltd. | Object movement detection based on ultrasonic sensor data analysis |
| US11395091B2 (en) | 2020-07-02 | 2022-07-19 | Cisco Technology, Inc. | Motion detection triggered wake-up for collaboration endpoints |
| US10992905B1 (en) | 2020-07-02 | 2021-04-27 | Cisco Technology, Inc. | Motion detection triggered wake-up for collaboration endpoints |
| US11919644B2 (en) * | 2021-01-27 | 2024-03-05 | B/E Aerospace, Inc. | Galley equipment hazards alert |
| US20230417907A1 (en) * | 2022-06-22 | 2023-12-28 | Invensense, Inc. | Coexistence of ultrasonic transducers in an operating environment |
| CN115980725B (en) * | 2023-02-21 | 2025-12-19 | 广东奥迪威传感科技股份有限公司 | Target object detection method, device and computer equipment |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120224456A1 (en) * | 2011-03-03 | 2012-09-06 | Qualcomm Incorporated | Systems, methods, apparatus, and computer-readable media for source localization using audible sound and ultrasound |
| US20130129102A1 (en) * | 2011-11-23 | 2013-05-23 | Qualcomm Incorporated | Acoustic echo cancellation based on ultrasound motion detection |
| EP2983063A2 (en) * | 2014-08-07 | 2016-02-10 | Nxp B.V. | Low-power environment monitoring and activation triggering for mobile devices through ultrasound echo analysis |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US4961039A (en) * | 1987-04-03 | 1990-10-02 | Matsushita Electric Works, Ltd. | Moving object detecting device |
| US8223589B2 (en) * | 2010-10-28 | 2012-07-17 | Hon Hai Precision Industry Co., Ltd. | Gesture recognition apparatus and method |
| GB201105587D0 (en) * | 2011-04-01 | 2011-05-18 | Elliptic Laboratories As | User interfaces for electronic devices |
| DE102013223701A1 (en) * | 2013-11-20 | 2015-05-21 | Robert Bosch Gmbh | Method and device for measuring a relative speed by means of an acoustic sensor |
| US20160091308A1 (en) * | 2014-09-30 | 2016-03-31 | Invensense, Inc. | Microelectromechanical systems (mems) acoustic sensor-based gesture recognition |
| GB2559427A (en) * | 2017-02-07 | 2018-08-08 | Cirrus Logic Int Semiconductor Ltd | Motion detector |
-
2017
- 2017-03-01 GB GB1706624.2A patent/GB2559427A/en not_active Withdrawn
-
2018
- 2018-01-30 WO PCT/GB2018/050265 patent/WO2018146454A1/en not_active Ceased
- 2018-02-05 US US15/888,275 patent/US10641650B2/en not_active Expired - Fee Related
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120224456A1 (en) * | 2011-03-03 | 2012-09-06 | Qualcomm Incorporated | Systems, methods, apparatus, and computer-readable media for source localization using audible sound and ultrasound |
| US20130129102A1 (en) * | 2011-11-23 | 2013-05-23 | Qualcomm Incorporated | Acoustic echo cancellation based on ultrasound motion detection |
| EP2983063A2 (en) * | 2014-08-07 | 2016-02-10 | Nxp B.V. | Low-power environment monitoring and activation triggering for mobile devices through ultrasound echo analysis |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10641650B2 (en) * | 2017-02-07 | 2020-05-05 | Cirrus Logic, Inc. | Motion detector |
Also Published As
| Publication number | Publication date |
|---|---|
| GB2559427A (en) | 2018-08-08 |
| US10641650B2 (en) | 2020-05-05 |
| US20180224325A1 (en) | 2018-08-09 |
| GB201706624D0 (en) | 2017-06-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2018146454A1 (en) | Motion detector | |
| EP3414598B1 (en) | Proximity detection | |
| EP3133474B1 (en) | Gesture detector using ultrasound | |
| CN101236250B (en) | Sound determination method and sound determination apparatus | |
| US9151840B2 (en) | Semiconductor device and method of forming same for acoustic sensing of close proximity objects | |
| JP4266659B2 (en) | Method and apparatus for automatic control of spectral Doppler imaging | |
| US5628321A (en) | Processing velocity information in an ultrasonic system | |
| CN104898844B (en) | Gesture identification and control device and identification and control method based on ultrasonic wave positioning | |
| EP2681586B1 (en) | Systems, methods, apparatus, and computer-readable media for source localization using audible sound and ultrasound | |
| CN100555353C (en) | The control device of electronic equipment and the control method of electronic equipment | |
| JP5890087B2 (en) | Detecting device | |
| CN106645434A (en) | Recognition method of strong pulse signal based on slope and amplitude difference value threshold | |
| CN110519450B (en) | Ultrasonic processing method, ultrasonic processing device, electronic device, and computer-readable medium | |
| JP4985230B2 (en) | Electronic apparatus and audio signal processing method used therefor | |
| US11308733B2 (en) | Gesture detection using ultrasonic clicks | |
| CN110031848B (en) | Ultrasonic figure identification method | |
| JP2022168855A (en) | Device and method for processing signal from set of ultrasonic transducer | |
| KR101483513B1 (en) | Apparatus for sound source localizatioin and method for the same | |
| US20070167795A1 (en) | Image processing system and method for controlling gains for color flow images | |
| CN113470680B (en) | Sound signal processing system and method | |
| CN114299994B (en) | Laser Doppler long-distance voice detection method, device and medium | |
| EP3650987B1 (en) | Apparatus and method for tracking movement of an object | |
| Saez et al. | Ultrasound technology for touchless HMI system: finger tracker | |
| JP4950971B2 (en) | Reverberation removal apparatus, dereverberation method, dereverberation program, recording medium | |
| Cvijanović et al. | Robustness improvement of ultrasound-based sensor systems for speech communication |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18703826 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 18703826 Country of ref document: EP Kind code of ref document: A1 |

