Infrared depth detection technology, which can be considered as infrared LiDAR, consists of an infrared emitter which projects a grid of infrared dots on a scene/face and an infrared sensor which calculates distance/depth. It was originally used for motion detection for the game console Kinnect Xbox by Microsoft/PrimeSense. Kinnect 2.0 could perform face recognition and heart rate measurement. In 2017, Apple incorporated infrared depth detection technology in its iPhone X camera with the purpose of advanced face recognition. It consists of 30.000 infrared dots directed towards the subject's face to create a 3D full animated mesh.
How can you measure breathing remotely?
Breathing means air flow/current via the nose.
Air current changes the temperature of the nose and in particular the nostrils.
Acquire thermal image of the face and determine when nostrils become cold or warm (less cold). The repetition rate of cold-warm provides the breathing rate.
Next step: inference of emotional state. E.g. restricted breathing would be anxiety etc.
Computer Science & Artificial Intelligence Laboratory, MIT
5.46 GHz to 7.25 GHz electromagnetic waves reflected from chest record its displacement due to heart beat and respiration (radar FMCW). These indices can be correlated with emotional states.
(Note that a Wi-Fi router emits 2.4GHz waves)
“Just by knowing how people breathe and how their hearts beat in different emotional states, we can look at a random person’s heartbeat and reliably detect their emotions,” says Zhao.
“EQ-Radio operates on RF reflections off the human body. To capture such reflections, EQ-Radio uses a radar technique called Frequency Modulated Carrier Waves (FMCW) . “
“We reproduced a state-of-the-art FMCW (Freradio designed by past work on wireless vital sign monitoring . The device generates a signal that sweeps from 5.46 GHz to 7.25 GHz every 4 milliseconds, transmitting sub-mW power.”
“(…) The radio transmits a low power signal and measures its reflection time. It separates RF reflections from different objects/bodies into buckets based on their reflection time. It then eliminates reflections from static objects which do not change across time and zooms in on human reflections. It focuses on time periods when the person is quasi-static. It then looks at the phase of the RF wave which is related to the traveled distance as follows : φ(t) = [2π d(t)]/ λ , where φ(t) is the phase of the signal, λ is the wavelength, d(t) is the traveled distance, and t is the time variable. The variations in the phase correspond to the compound displacement caused by chest expansion and contraction due to breathing, and body vibration due to heartbeats.
“Recall that a person’s emotions are correlated with small variations in her/his heartbeat intervals; hence, to recognize emotions, EQ-Radio needs to extract these intervals from the RF phase signal described above.”
“After EQ-Radio recovers individual heartbeats from RF reflections, it uses the heartbeat sequence along with the breathing signal to recognize the person’s emotions.”
“Non-contact Measurement Of Heart And Respiration Rates With A Single Chip Microwave Doppler Radar”
Dissertation submitted to the Dept of Electrical Engineering of Stanford University
Amy Diane Droitcour 2006 (https://www.linkedin.com/in/amydroitcour)
Comment based on reading notes: Contactless detection and monitoring of heart rate and respiratory rate can be performed by Microwave Doppler Radar. This technique can be used in patient care in hospitals or at home (cf. sleep apnea) and in applications such as measuring energy expenditure. It is possible to measure chest wall motion through clothing or bedding in order to extract in real-time the heart beat and the respiration rate. This dissertation adapts methods associated with bulky equipment to create a chip, a Doppler radar transceiver, that functions as a heart rate and respiration rate sensor/monitor (transceiver: transmitter and receiver).
What is the principle of the RADAR (RAdio Detection And Ranging)? Let us assume that we have an automatic tennis ball machine that sends balls onto a wall with a velocity of 1 meter per second. If the ball comes back in 2 seconds, what is the range/the distance the wall was found at? It is 1 meter; it took 2 seconds to do two identical travels (to the wall and back).
Similarly we can send an electromagnetic wave like the one that is emitted from our router. This is a 2.4GHz wave that falls into the category of microwaves (its wavelength is 12cm). Doppler radar motion detection systems typically transmit a continuous wave (CW) electromagnetic signal, (sometimes frequency modulated) that falls on a target, is reflected by it and is captured by a receiver.
What happens if the wall is moving? For instance towards us? If we send one ball every 2 seconds and the wall was still we would get 1 ball every 2 seconds. If the wall was moving towards us, we could get the first ball after 2 seconds and the second ball in less than that as it would bounce on a wall that was closer to us. So we would get the balls back more frequently. This shift in frequency is termed Doppler shift and it allows us to calculate the velocity of the moving object.
The function of respiration is linked to a moving chest/thoracic wall!
How much does the chest wall move during respiration? From 4mm to 12mm (peak-to-peak).
How much does the chest wall move during heart beat? Approximatively 0.5mm.
It must be mentioned the chest wall just moves back and forth and does not mark a net displacement in space. This is a special case that falls into the category of periodic motions and the net velocity is zero. In this case, it is said that the phase of the reflected signal is modulated by the time varying position of the chest. Also, it is said that heart and respiration information is encoded in phase modulation of 0.1Hz to 10Hz.
How do you demodulate the signal that is reflected off the chest? Experts say that this depends on whether the peak-to-peak motion is greater than the wavelength used. For 2.4GHz, the wavelength is 12cm and this is much greater than the chest motion. Experts say that at this case, in order to demodulate the signal you multiply the signal with an unmodulated signal from the same source.
This dissertation could detect accurately the heart beat from a distance of 1m and the respiratory rate from a distance of 1.5m. This is based on measurements from 22 patients using standard techniques as control.
Key words: Doppler-radar cardiorespiratory (cardiopulmonary) monitor
Figure: Image from Amy Diane Droitcour's thesis at above link
Figure: Amy Diane Droitcour is co-author of book “Doppler Radar Physiological Sensing” http://eu.wiley.com/WileyCDA/WileyTitle/productCd-1118024028.html
@infobook tweet (book)
Use of hearbeat as a biometric identifier for security applications
Excerpt from Amy Diane Droitcour’s thesis (2006):
p.23 “An automatic clutter-cancellation circuit was developed by Chuang, et al., facilitating measurement of the heart and respiration signatures through seven layer of brick  and through ten feet of rubble . Heart and respiration rates of athletes were successfully detected at ranges exceeding 10m by Greneker et al ; at 100m, the limit was moving background clutter, not the system sensitivity. A quadrature receiver was used to avoid phase-demodulation null points by J. Seals, et al. .
 internet link:
E.F. Greneker, “Radar sensing of heartbeat and respiration at a distance with security applications” Proc. SPIE 3066, Radar Sensor Technology II, 22 (June 10, 1997); doi:10.1117/12.276106
Abstract: Researchers at the Georgia Tech Research Institute have developed a radar that will detect heartbeat and respiration without any physical connection to the subject. The system is capable of making these measurements at ranges exceeding 10 meters. This paper explores the use of the system for the biometric identification of personnel who work in a highly secure environment. The system, used in this application, would use the heartbeat signature of an individual as a biometric identifier. Also, the system could be used to determine the stress level being experienced by an individual on the basis of respiration and heartbeat rates.
More information including radar gait measurement at this publication: G. Greneker, “Radar Technology For Acquiring Biological Signals”, RADAR Flashlight, LLC, Powder Springs, Georgia
Figure: Combined image generated from above publication
Figure: Radar Measured Gait - Doppler signatures from above publication.
(Future studies for infant ventillation)
T. Kondo, T. Uhlig, P. Pemberton, and P.D. Sly, “Laser monitoring of chest wall displacement, “European Respiratory Journal, vol. 10, pp. 1865-1869, 1997 http://erj.ersjournals.com/content/10/8/1865.long
Excerpt from Amy Diane Droitcour’s thesis (2006):
In the study by T.Kondo et al “a laser sensor was used to measure anterioposterior chest wall motion. This is a non-contact measurement, offering no resistance to respiration and no tactile stimuli, which should ensure a noninvasive measurement of respiration that does not alter the respiratory pattern. The laser monitor measures the distance between the chest wall and the sensor, and obtains a respiratory waveform by plotting the change in distance over time. The laser monitor can track rapid changes in lung volume with almost no lag. They propose a monitor with multiple laser sensors so that they can monitor multiple points on the chest, and better model the volumes of respiration.”
Helpful resource on Lasers: http://www.explainthatstuff.com/lasers.html
Laser Therapy – Physiotherapy cf. http://www2.information-book.com/physics/lasers/
Excerpt from Amy Diane Droitcour’s thesis (2006):
“In magnetometer measurements, one coil is driven by an oscillator to produce a weak magnetic field, while other coils are attached to the skin on the thorax and abdomen. The coils on the skin pick up the magnetic field and can determine their position in the field. Magnetometers are susceptible to rotational movement, which creates artifacts . Magnetometers were used to measure the anterio-posterior motion of the rib cage and abdomen , and to measure displacement between the abdomen and the sternum . In , two transmitter coils operating at two different frequencies are placed near the spine at the sternal level and on the abdomen. Two receiving coils are also placed on the body: one tuned to both frequencies is placed on the sternum to measure the sternal-umbilical displacement and the rib cage anterio-posterior displacement. The other is tuned only to the frequency of the abdominal transmitter and measures the anterior-posterior abdominal displacement. With these three measurements, after calibration, respiratory volume can be estimated using a three-degree-of-freedom model.”
References below (both available upon subscription)
 J Med Eng Technol. 1983 Sep-Oct;7(5):217-23.
Using body surface movements to study breathing.
 Chest. 2002 Aug;122(2):684-91.
Tidal volume and respiratory timing derived from a portable ventilation monitor.
Excerpts from : The device consists of a flowmeter, transmitter, and receiver circuitry. Schematic of the magnetometer device depicting coil placement is shown below. Two transmitter coils (yellow and black) oscillate at 8.97 KHz and 7.0 KHz, respectively. The red receiver coil is tuned to both frequencies, and the green receiver coil is tuned only to 7.0 KHz. The received signals are processed as three channels by three detection circuits. Dual functionality of the second receiver coil eliminates the need for a third pair of coils, thereby simplifying design and decreasing power needs.
Figure (modified) from reference  mentioned above.
A note on magnetometers
Excerpt from Wikipedia: https://en.wikipedia.org/wiki/Magnetometer
"Military submarines are degaussed—by passing through large underwater loops at regular intervals—to help them escape detection by sea-floor monitoring systems, magnetic anomaly detectors, and magnetically-triggered mines. However, submarines are never completely de-magnetised. It is possible to tell the depth at which a submarine has been by measuring its magnetic field, which is distorted as the pressure distorts the hull and hence the field. Heating can also change the magnetization of steel".
Picture from https://en.wikipedia.org/wiki/Degaussing
"RMS Queen Mary arriving in New York Harbor, 20 June 1945, with thousands of U.S. soldiers – note the prominent degaussing coil running around the outer hull".