1 of 65

�CS60055: Ubiquitous Computing 

Contactless Sensing

Part I: Sensing with RF: Basic Principles

INDIAN INSTITUTE OF TECHNOLOGY

KHARAGPUR

Sandip Chakraborty

sandipc@cse.iitkgp.ac.in

Department of Computer Science and Engineering

2 of 65

Contactless Sensing

  • IMU-based sensing needs the subject to wear some devices: smartwatch, earable, smart glass, smart ring, …
    • Might not be very convenient all the times (ex. Sleep monitoring)

  • Contactless sensing are useful when the user does not want to attach the sensors with their body
    • Useful for continuous and passive monitoring of human activities
    • Widely used to monitor objects (materials, liquids, structures, ...)

Indian Institute of Technology Kharagpur

3 of 65

Sensing Modalities

Indian Institute of Technology Kharagpur

4 of 65

Sensing Modalities

  • Primarily two modalities
    • Electromagnetic waves (majority of the sensing devices work on some EM waves)
    • Mechanical waves (acoustic-based sensing)

  • The basic operating principles vary depending on the type and the frequency of the waves being used in the sensing applications

Indian Institute of Technology Kharagpur

5 of 65

Fundamentals of EM Waves

  • The existence of EM was predicted by James Clerk Maxwell in 1864
    • Heinrich Hertz confirmed the same in 1887
    • Hertz also demonstrated that EM waves are affected and reflected by solid objects
  • The frequency and the wavelength characterizes the waves

Indian Institute of Technology Kharagpur

6 of 65

Fundamentals of EM Waves

  • The existence of EM was predicted by James Clerk Maxwell in 1864
    • Heinrich Hertz confirmed the same in 1887
    • Hertz also demonstrated that EM waves are affected and reflected by solid objects
  • The frequency and the wavelength characterizes the waves

The objects we sense

Indian Institute of Technology Kharagpur

7 of 65

Fundamentals of EM Waves

  • The existence of EM was predicted by James Clerk Maxwell in 1864
    • Heinrich Hertz confirmed the same in 1887
    • Hertz also demonstrated that EM waves are affected and reflected by solid objects
  • The frequency and the wavelength characterizes the waves
    • Long wavelength, low frequency: Penetrate more through physical objects
    • Medium wavelength, medium frequency: Reflect more from physical objects
    • Short wavelength, high frequency: Penetrate more through the objects

Penetrate more

Reflect more

Penetrate more

Indian Institute of Technology Kharagpur

8 of 65

Fundamentals of EM Waves

  • The existence of EM was predicted by James Clerk Maxwell in 1864
    • Heinrich Hertz confirmed the same in 1887
    • Hertz also demonstrated that EM waves are affected and reflected by solid objects
  • The frequency and the wavelength characterizes the waves
    • Long wavelength, low frequency: Penetrate more through physical objects
    • Medium wavelength, medium frequency: Reflect more from physical objects
    • Short wavelength, high frequency: Penetrate more through the objects

Penetrate more

Reflect more

Penetrate more

This is just a general idea; the penetration/reflection capability of the signal also depends on its bandwidth and other channel parameters

Indian Institute of Technology Kharagpur

9 of 65

Fundamentals of EM Waves

  • The existence of EM was predicted by James Clerk Maxwell in 1864
    • Heinrich Hertz confirmed the same in 1887
    • Hertz also demonstrated that EM waves are affected and reflected by solid objects
  • The frequency and the wavelength characterizes the waves
    • Long wavelength, low frequency: Penetrate more through physical objects
    • Medium wavelength, medium frequency: Reflect more from physical objects
    • Short wavelength, high frequency: Penetrate more through the objects

Penetrate more

Reflect more

Penetrate more

Useful for passive contactless sensing

Indian Institute of Technology Kharagpur

10 of 65

Fundamentals of EM Waves

  • The existence of EM was predicted by James Clerk Maxwell in 1864
    • Heinrich Hertz confirmed the same in 1887
    • Hertz also demonstrated that EM waves are affected and reflected by solid objects
  • The frequency and the wavelength characterizes the waves
    • Long wavelength, low frequency: Penetrate more through physical objects
    • Medium wavelength, medium frequency: Reflect more from physical objects
    • Short wavelength, high frequency: Penetrate more through the objects

Penetrate more

Reflect more

Penetrate more

Used widely for sensing, but privacy is a concern

(the vision domain)

Indian Institute of Technology Kharagpur

11 of 65

Fundamentals of EM Waves

  • The existence of EM was predicted by James Clerk Maxwell in 1864
    • Heinrich Hertz confirmed the same in 1887
    • Hertz also demonstrated that EM waves are affected and reflected by solid objects
  • The frequency and the wavelength characterizes the waves
    • Long wavelength, low frequency: Penetrate more through physical objects
    • Medium wavelength, medium frequency: Reflect more from physical objects
    • Short wavelength, high frequency: Penetrate more through the objects

Penetrate more

Reflect more

Penetrate more

Analyze the signal reflection properties for the long wavelength signals

Indian Institute of Technology Kharagpur

12 of 65

Fundamentals of EM Waves

  • The existence of EM was predicted by James Clerk Maxwell in 1864
    • Heinrich Hertz confirmed the same in 1887
    • Hertz also demonstrated that EM waves are affected and reflected by solid objects
  • The frequency and the wavelength characterizes the waves
    • Long wavelength, low frequency: Penetrate more through physical objects
    • Medium wavelength, medium frequency: Reflect more from physical objects
    • Short wavelength, high frequency: Penetrate more through the objects

Penetrate more

Reflect more

Penetrate more

Analyze the signal reflection properties for the long wavelength signals

Analyze the signal penetration properties for the short wavelength signals

Indian Institute of Technology Kharagpur

13 of 65

Radio Waves

Indian Institute of Technology Kharagpur

14 of 65

Radio Waves

RFID

WiFi

UWB

mmWave

We'll see sensing applications in these ranges

Indian Institute of Technology Kharagpur

15 of 65

Signal Interference to Detect Motion: The Concept of Radar

  • 1897: Alexander Popov, a Russian Imperial Navi physicist, was testing an early version of wireless communication between two ships in Baltic Sea
    • He observed an interference wave pattern caused by a third ship
    • Popov proposed the idea that this might be used to detect moving objects

Indian Institute of Technology Kharagpur

16 of 65

Signal Interference to Detect Motion: The Concept of Radar

  • 1932: Radar as a technical equipment was proposed by a military engineer Piotr Oshchepkov
    • "RUS-1": The first industrial radar (1939): 4m wavelength, transmitter and receiver seperated by 35 km

Indian Institute of Technology Kharagpur

17 of 65

Basic Principle: The Doppler Effect

  • Change in the frequency of the wave in relation to an observer who is moving relative to the wave source
    • Wave source moves towards the observer: Each successive wave cycle is emitted from a position closer to the observer
      • Time between cycles is reduced; frequency is increased
    • Wave source moves away from the observer: Each successive wave cycle is emitted from a position farther from the observer
      • Time between cycles is increased; frequency is decreased

Image Source: Wikipedia

Indian Institute of Technology Kharagpur

18 of 65

The Doppler Effect

  • Let,
    • f0 is the emitted frequency
    • f is the observed frequency
    • c is the propagation speed of the wave in the medium
    • 𝑣r is the speed of the receiver, 𝑣s is the speed of the source

  • 𝑣r is added to 𝑐 if the receiver is moving towards the source, subtracted if the receiver is moving away from the source (opposite for 𝑣s)

Indian Institute of Technology Kharagpur

19 of 65

The Doppler Effect

  • Equivalently, if the source is directly approaching or receding from the observer,

    • 𝑣wr is the wave speed related to the receiver, 𝑣ws is the wave speed related to the source
    • λ is the wavelength

Indian Institute of Technology Kharagpur

20 of 65

Doppler Effect for the Sound Sources

Stationary sound source

Image Source: Wikipedia

Indian Institute of Technology Kharagpur

21 of 65

Doppler Effect for the Sound Sources

Stationary sound source

Source moves at a speed 0.7c

Image Source: Wikipedia

Indian Institute of Technology Kharagpur

22 of 65

Doppler Effect for the Sound Sources

Stationary sound source

Source moves at a speed 0.7c

Source moves at a speed c

Image Source: Wikipedia

Indian Institute of Technology Kharagpur

23 of 65

Doppler Effect for the Sound Sources

Source moves at a speed 1.4c

Advancing wavefront

Image Source: Wikipedia

Creates a shock wave and consequently the sonic boom

Indian Institute of Technology Kharagpur

24 of 65

The Wave: Concept of Bandwidth

  • Any arbitrary wave signal can be decomposed into a set of sinusoidal wave of multiple frequencies
    • Called the frequency components of the wave signal (or simply, the signal)

Indian Institute of Technology Kharagpur

25 of 65

The Wave: Concept of Bandwidth

  • Any arbitrary wave signal can be decomposed into a set of sinusoidal wave of multiple frequencies
    • Called the frequency components of the wave signal (or simply, the signal)

  • The bandwidth of a signal is the�difference between the highest and�the lowest frequency components�of that signal
    • We assume that any of the frequency�components between the highest�and the lowest can be present in�the signal

Indian Institute of Technology Kharagpur

26 of 65

Impact of Bandwidth on Sensing

  • Higher bandwidth signal means it is likely to have more number of signal components
    • Therefore, scattering, diffraction, reflection, etc., are likely to be more on high-bandwidth signals

Indian Institute of Technology Kharagpur

27 of 65

Impact of Bandwidth on Sensing

  • Higher bandwidth signal means it is likely to have more number of signal components
    • Therefore, scattering, diffraction, reflection, etc., are likely to be more on high-bandwidth signals
  • Although create noises for communication, but good for sensing

Indian Institute of Technology Kharagpur

28 of 65

Impact of Bandwidth on Sensing

  • Higher bandwidth signal means it is likely to have more number of signal components
    • Therefore, scattering, diffraction, reflection, etc., are likely to be more on high-bandwidth signals
  • Although create noises for communication, but good for sensing

How do we get the various frequency components of a signal?

Indian Institute of Technology Kharagpur

29 of 65

Fourier Analysis

  • Extracts the frequency components of a signal

Indian Institute of Technology Kharagpur

30 of 65

Fourier Analysis

  • Extracts the frequency components of a signal

Indian Institute of Technology Kharagpur

31 of 65

Fourier Analysis

  • Extracts the frequency components of a signal

Indian Institute of Technology Kharagpur

32 of 65

Fourier Analysis

  • Extracts the frequency components of a signal

Indian Institute of Technology Kharagpur

33 of 65

Fourier Analysis

  • Extracts the frequency components of a signal

Indian Institute of Technology Kharagpur

34 of 65

Fourier Analysis

  • Extracts the frequency components of a signal

Indian Institute of Technology Kharagpur

35 of 65

Fourier Analysis

  • Extracts the frequency components of a signal

How do we perform Fourier Analysis of a complex signal?

Indian Institute of Technology Kharagpur

36 of 65

Representation of a Signal

What is the significance of frequency of this signal?

y(t) = A sin (ωt + φ)

A: Amplitude

ω: Angular frequency

φ: Phase

Indian Institute of Technology Kharagpur

37 of 65

Fourier Representation in Complex Domain

y(t) = A sin (2πft + φ)

A: Amplitude

f: Ordinary frequency

φ: Phase

Indian Institute of Technology Kharagpur

38 of 65

The Notion of Phase

  • The fraction of the cycle covered upto some time instance t
  • An important metric for sensing
    • The phase of the reflected/scattered signal depends on the type of the material where the transmitted signal hitted
    • Introduces a shift in the reflected/scattered signal

Indian Institute of Technology Kharagpur

39 of 65

The Notion of Phase

  • The fraction of the cycle covered upto some time instance t
  • An important metric for sensing
    • The phase of the reflected/scattered signal depends on the type of the material where the transmitted signal hitted
    • Introduces a shift in the reflected/scattered signal
  • Phase difference/phase shift:

Indian Institute of Technology Kharagpur

40 of 65

Fourier Representation in Complex Domain

Indian Institute of Technology Kharagpur

41 of 65

Fourier Representation in Complex Domain

Check this video for a nice explanation of Fourier transformation

Indian Institute of Technology Kharagpur

42 of 65

Discrete Fourier Transformation

  • In practice, we record the samples of a continuous signal 
    • Discrete representation of the signal

  • So, we need to perform the Fourier�transformation on the discrete samples�of the signals
    • Discrete Time Fourier Transform (DTFT)

  • However, the input and the output of�the samples are also finite
    • Discrete Fourier Transform (DFT): Works on the finite time series data

Indian Institute of Technology Kharagpur

43 of 65

DTFT and DFT

A Continuous signal and its Fourier transform

Periodic summation of the original signal and its Fourier transform

Original signal discretized and its Fourier transform (DTFT)

Periodic summation of the discrete signal, DFT computes discrete samples of the continuous DTFT

Image Source: Wikipedia

Indian Institute of Technology Kharagpur

44 of 65

Discrete Fourier Transformation (DFT)

  • Let be complex numbers. The DFT is defined by the formula,

    • Where is the primitive nth root of 1

  • Evaluating the above equation needs O(n2) operations

Indian Institute of Technology Kharagpur

45 of 65

Discrete Fourier Transformation (DFT)

  • Let be complex numbers. The DFT is defined by the formula,

    • Where is the primitive nth root of 1

  • Evaluating the above equation needs O(n2) operations

Indian Institute of Technology Kharagpur

46 of 65

DFT Matrix

  • An N-point DFT is represented as
    • x is the original input signal
    • W is NxN DFT matrix

    • ω is a primitive Nth root of unity

  • For different values of j, W can be �represented as a matrix

Indian Institute of Technology Kharagpur

47 of 65

Example: 8-point DFT

Indian Institute of Technology Kharagpur

48 of 65

Example: 8-point DFT

Indian Institute of Technology Kharagpur

49 of 65

Example: 8-point DFT

Indian Institute of Technology Kharagpur

50 of 65

Example: 8-point DFT: Pictorial Representation

Cosine wave: Solid Line

Sine wave: Dashed line

Indian Institute of Technology Kharagpur

51 of 65

Example: 8-point DFT: Pictorial Representation

Cosine wave: Solid Line

Sine wave: Dashed line

DC Component

Indian Institute of Technology Kharagpur

52 of 65

Example: 8-point DFT: Pictorial Representation

Cosine wave: Solid Line

Sine wave: Dashed line

Fractional frequency +1/8

Indian Institute of Technology Kharagpur

53 of 65

Example: 8-point DFT: Pictorial Representation

Cosine wave: Solid Line

Sine wave: Dashed line

Fractional frequency +1/4

Indian Institute of Technology Kharagpur

54 of 65

Example: 8-point DFT: Pictorial Representation

Cosine wave: Solid Line

Sine wave: Dashed line

Fractional frequency +3/8

Indian Institute of Technology Kharagpur

55 of 65

Example: 8-point DFT: Pictorial Representation

Cosine wave: Solid Line

Sine wave: Dashed line

Fractional frequency +5/8

Indian Institute of Technology Kharagpur

56 of 65

Example: 8-point DFT: Pictorial Representation

Cosine wave: Solid Line

Sine wave: Dashed line

Fractional frequency +5/8

or –3/8

cos (2π - φ) = cos φ

sin (2π - φ) = -sin φ

Indian Institute of Technology Kharagpur

57 of 65

Example: 8-point DFT: Pictorial Representation

Cosine wave: Solid Line

Sine wave: Dashed line

Fractional frequency +3/4

or –1/4

Indian Institute of Technology Kharagpur

58 of 65

Example: 8-point DFT: Pictorial Representation

Cosine wave: Solid Line

Sine wave: Dashed line

Fractional frequency +7/8

or –1/8

Indian Institute of Technology Kharagpur

59 of 65

Discrete Fourier Transformation (DFT)

  • Let be complex numbers. The DFT is defined by the formula,

    • Where is the primitive nth root of 1

  • Evaluating the above equation needs O(n2) operations

Can we reduce the complexity?

Indian Institute of Technology Kharagpur

60 of 65

Fast Fourier Transform (FFT)

  • Divide the DFT matrix recursively into smaller DFTs and then combine them
    • Based on the multiplications on complex root of unity
  • Radix-2 decimation-in-time (DIT) FFT
    • Divide between odd and even inputs

Indian Institute of Technology Kharagpur

61 of 65

Fast Fourier Transform (FFT)

  • Divide the DFT matrix recursively into smaller DFTs and then combine them
    • Based on the multiplications on complex root of unity
  • Radix-2 decimation-in-time (DIT) FFT
    • Divide between odd and even inputs

    • By rearranging,

Indian Institute of Technology Kharagpur

62 of 65

FFT for N = 8

Indian Institute of Technology Kharagpur

63 of 65

Application of FFT in Sensing -- Filters

  • Extract a portion of the signal components

  • Example: Acoustic data processing
    • You want to analyze the acoustic chirp�sent from your smartphone
    • However, the sound emitted may get�mixed with other environmental�noises
    • Pass the received signal through a�band-pass filter to extract only the�components of the target frequency�band

Indian Institute of Technology Kharagpur

64 of 65

In Summary

  • Signal propagation, distortion, reflection, etc., can help us sense the environment
    • Doppler analysis helps in identifying moving objects or movement patters
    • The reflection patterns (frequency components, time of flight, etc.) can be used to compute the distance of the object from the transmitter, angle of arrival, etc.
    • Phase shift can be used to identify material properties

  • Fourier transform helps us to identify the frequency components in the signal
    • Helpful for signal analysis (we'll see the details later)
    • Useful for preprocessing the signals – removing unwanted signal components – low-pass/ high-pass/ bandpass filters

Indian Institute of Technology Kharagpur

65 of 65

Happy Learning!

Some resources related to this topic

Introduction

Related Work

Background

Observation

Methodology

Evaluation

Conclusion