ADDING (INJECTING) NOISE TO IMPROVE RESULTS.

Similar documents
EE-217 Final Project The Hunt for Noise (and All Things Audible)

Digital Signal. Continuous. Continuous. amplitude. amplitude. Discrete-time Signal. Analog Signal. Discrete. Continuous. time. time.

A Parametric Autoregressive Model for the Extraction of Electric Network Frequency Fluctuations in Audio Forensic Authentication

Chapter 14 D-A and A-D Conversion

A Parametric Autoregressive Model for the Extraction of Electric Network Frequency Fluctuations in Audio Forensic Authentication

Digital Representation

Please feel free to download the Demo application software from analogarts.com to help you follow this seminar.

Realizing Waveform Characteristics up to a Digitizer s Full Bandwidth Increasing the effective sampling rate when measuring repetitive signals

MIE 402: WORKSHOP ON DATA ACQUISITION AND SIGNAL PROCESSING Spring 2003

Lab experience 1: Introduction to LabView

Digitizing and Sampling

Dither Explained. An explanation and proof of the benefit of dither. for the audio engineer. By Nika Aldrich. April 25, 2002

Musical Acoustics Lecture 15 Pitch & Frequency (Psycho-Acoustics)

Analog Performance-based Self-Test Approaches for Mixed-Signal Circuits

8/30/2010. Chapter 1: Data Storage. Bits and Bit Patterns. Boolean Operations. Gates. The Boolean operations AND, OR, and XOR (exclusive or)

ECE 5765 Modern Communication Fall 2005, UMD Experiment 10: PRBS Messages, Eye Patterns & Noise Simulation using PRBS

DIGITAL COMMUNICATION

Supplementary Course Notes: Continuous vs. Discrete (Analog vs. Digital) Representation of Information

Appendix D. UW DigiScope User s Manual. Willis J. Tompkins and Annie Foong

Clock Jitter Cancelation in Coherent Data Converter Testing

Investigation of Digital Signal Processing of High-speed DACs Signals for Settling Time Testing

Note on Posted Slides. Noise and Music. Noise and Music. Pitch. PHY205H1S Physics of Everyday Life Class 15: Musical Sounds

Tempo and Beat Analysis

Digital Fundamentals. Introduction to Digital Signal Processing

Chapter 1. Introduction to Digital Signal Processing

PCM ENCODING PREPARATION... 2 PCM the PCM ENCODER module... 4

Calibrate, Characterize and Emulate Systems Using RFXpress in AWG Series

Experiment 13 Sampling and reconstruction

BER MEASUREMENT IN THE NOISY CHANNEL

Digital Signal Processing

DATA COMPRESSION USING THE FFT

Spectrum Analyser Basics

How to use the DC Live/Forensics Dynamic Spectral Subtraction (DSS ) Filter

CZT vs FFT: Flexibility vs Speed. Abstract

ni.com Digital Signal Processing for Every Application

Lecture 1: What we hear when we hear music

Department of Electrical & Electronic Engineering Imperial College of Science, Technology and Medicine. Project: Real-Time Speech Enhancement

BBN ANG 141 Foundations of phonology Phonetics 3: Acoustic phonetics 1

Chapter 6: Modifying Sounds Using Loops

Experiment 9 Analog/Digital Conversion

ECE 402L APPLICATIONS OF ANALOG INTEGRATED CIRCUITS SPRING No labs meet this week. Course introduction & lab safety

Getting Started with the LabVIEW Sound and Vibration Toolkit

Chapter 7. Scanner Controls

Supplemental Material for Gamma-band Synchronization in the Macaque Hippocampus and Memory Formation

ONE SENSOR MICROPHONE ARRAY APPLICATION IN SOURCE LOCALIZATION. Hsin-Chu, Taiwan

Linrad On-Screen Controls K1JT

Assessing and Measuring VCR Playback Image Quality, Part 1. Leo Backman/DigiOmmel & Co.

Tempo Estimation and Manipulation

Digitization: Sampling & Quantization

ECE438 - Laboratory 4: Sampling and Reconstruction of Continuous-Time Signals

DAT335 Music Perception and Cognition Cogswell Polytechnical College Spring Week 6 Class Notes

White Paper JBL s LSR Principle, RMC (Room Mode Correction) and the Monitoring Environment by John Eargle. Introduction and Background:

Announcements. Project Turn-In Process. and URL for project on a Word doc Upload to Catalyst Collect It

Mixing in the Box A detailed look at some of the myths and legends surrounding Pro Tools' mix bus.

Automatic LP Digitalization Spring Group 6: Michael Sibley, Alexander Su, Daphne Tsatsoulis {msibley, ahs1,

PHYSICS OF MUSIC. 1.) Charles Taylor, Exploring Music (Music Library ML3805 T )

Bioengineering 508: Physical Aspects of Medical Imaging Nature of Medical Imaging. Nature of Medical Imaging

NanoGiant Oscilloscope/Function-Generator Program. Getting Started

Decade Counters Mod-5 counter: Decade Counter:

Delta-Sigma ADC

Choosing an Oscilloscope

A NEW LOOK AT FREQUENCY RESOLUTION IN POWER SPECTRAL DENSITY ESTIMATION. Sudeshna Pal, Soosan Beheshti

LabView Exercises: Part II

Voice & Music Pattern Extraction: A Review

Dac3 White Paper. These Dac3 goals where to be achieved through the application and use of optimum solutions for:

APP USE USER MANUAL 2017 VERSION BASED ON WAVE TRACKING TECHNIQUE

Welcome to Vibrationdata

Measurement of overtone frequencies of a toy piano and perception of its pitch

Experiment 7: Bit Error Rate (BER) Measurement in the Noisy Channel

Detection and demodulation of non-cooperative burst signal Feng Yue 1, Wu Guangzhi 1, Tao Min 1

Reconstruction of Ca 2+ dynamics from low frame rate Ca 2+ imaging data CS229 final project. Submitted by: Limor Bursztyn

Chapter 5 Flip-Flops and Related Devices

Intro to DSP: Sampling. with GNU Radio Jeff Long

Automatic music transcription

Solution for Nonuniformities and Spatial Noise in Medical LCD Displays by Using Pixel-Based Correction

CONSTRUCTION OF LOW-DISTORTED MESSAGE-RICH VIDEOS FOR PERVASIVE COMMUNICATION

Lecture 17 Microwave Tubes: Part I

FSK Transmitter/Receiver Simulation Using AWR VSS

Chapter 4. Logic Design

ttr' :.!; ;i' " HIGH SAMPTE RATE 16 BIT DRUM MODUTE / STEREO SAMPTES External Trigger 0uick Set-Up Guide nt;

Signal Stability Analyser

Experiments on musical instrument separation using multiplecause

1/29/2008. Announcements. Announcements. Announcements. Announcements. Announcements. Announcements. Project Turn-In Process. Quiz 2.

Announcements. Project Turn-In Process. Project 1A: Project 1B. and URL for project on a Word doc Upload to Catalyst Collect It

Musical Sound: A Mathematical Approach to Timbre

Lab 5 Linear Predictive Coding

F600A COMPRESSOR Operating Manual

Digital Audio: Some Myths and Realities

COMPOSITE VIDEO LUMINANCE METER MODEL VLM-40 LUMINANCE MODEL VLM-40 NTSC TECHNICAL INSTRUCTION MANUAL

CPE 400L Computer Communication Laboratory. Laboratory Exercise #9 Baseband Digital Communication

Getting Started. Connect green audio output of SpikerBox/SpikerShield using green cable to your headphones input on iphone/ipad.

+ Human method is pattern recognition based upon multiple exposure to known samples.

The BAT WAVE ANALYZER project

ECE 2274 Pre-Lab for Experiment Timer Chip

12-bit Wallace Tree Multiplier CMPEN 411 Final Report Matthew Poremba 5/1/2009

Pseudorandom Stimuli Following Stimulus Presentation

Experiment P32: Sound Waves (Sound Sensor)

Data Converter Overview: DACs and ADCs. Dr. Paul Hasler and Dr. Philip Allen

QUIZ. Explain in your own words the two types of changes that a signal experiences while propagating. Give examples!

CSC475 Music Information Retrieval

Transcription:

D. Lee Fugal DIGITAL SIGNAL PROCESSING PRACTICAL TECHNIQUES, TIPS, AND TRICKS ADDING (INJECTING) NOISE TO IMPROVE RESULTS. 1

DITHERING 2

DITHERING -1 Dithering comes from the word Didder meaning to tremble, jitter, or shake. Dithering is used in various applications to reduce distortion and quantization errors of low-amplitude signals. You may have already used Dithering without realizing it! When a mechanical watch stops ticking it can sometimes be started again by tapping it to unstick the mechanism. This can also be done with older analog meters to get a more accurate reading. Whenever we tap a mechanical measuring instrument we are hoping to get it unstuck and provide a more accurate reading by adding some noise (the tapping). 3

DITHERING -2 Complicated mechanical bomb-sights proved to be more accurate in combat than in the lab. This surprising result was verified when small vibrators were attached to these mechanical computers thus unsticking moving parts and allowing them to work as well on the ground as in the flying bombers. Adding noise to a system doesn t seem like a good idea at first but it is extremely useful in randomizing quantization errors and allowing extremely small signals to be detected. It can smooth banding in images and is often used in mastering digital audio. Dithering is also used in Analog to Digital Converters (ADC). Other applications include finance and medicine. 4

5

DITHERING -3 Here is a conceptual demonstration of Dithering. Assume we have a system that quantizes signal values into integers in other words it rounds up or down to the nearest integer. Assume for this simple case all our input values are at a constant 3.4 as shown Although this case is simplified for instructional purposes, long periods where the data value stays the same or approximately the same are not uncommon. 6

ORIGINAL SIGNAL AT CONSTANT 3.4 7

QUANTIZED SIGNAL 12% ERROR Signal now quantized to nearest integer, 3. Significant quantization error of 0.4 (3.4-3). Thus the error is 0.4/3.4 = 0.1176 or almost 12% 8

PSEUDO-RANDOM NOISE CENTERED AT ZERO 9

SIGNAL WITH ADDED NOISE BEFORE QUANTIZATION ORIGINAL SIGNAL (ALL 3.4) WITH NOISE ADDED (some noise will reduce values) 10

NOISY SIGNAL QUANTIZED 0.64% ERROR Noisy signal quantized to nearest integer, 3 OR 4 Average value (mean) = 3.4219. Much closer to 3.4 than 3. Quantization error = 3.4219 3.4 = 0.0219 Error = 0.0219/3.4 = 0.0064 or < 1%. Noise helped! 11

USING NOISE TO REDUCE IMAGE BANDING In digital video compression an area of sky that has little variation in intensity (and/or color) can be represented by a single value rather than separate values for each pixel. An adjacent area with a slightly different intensity can also be represented by a slightly different value thus allowing further compression. The problem arises that when the picture is reconstructed the human eye can see a border or band where the values changed slightly as shown in the next slide. By adding a small amount of noise the borders or bands are no longer noticeable. 12

BANDING IN SKY CAUSED BY COMPRESSION Discernable edges Areas of sky represented by a single value ANNOTATION SHOWS WHERE TO LOOK IN THE NEXT SLIDE 13

BANDING WITHOUT ANNOTATION 14

COMPRESSION BANDING WITH NOISE ADDED With no abrupt change between the 2 values, human eye does not notice edges 15

RESONANCE 16

INJECTING NOISE FOR SIGNAL DETECTION DEMONSTRATION OF METHOD TO CAREFULLY ADD (INJECT) NOISE TO A VERY SMALL SIGNAL THAT IS BELOW THE DETECTION THRESHOLD TO DETERMINE THE FREQUENCY. 17

ORIGINAL SIGNAL Tsamp = 1 sec, Freq = 1/32 Hz = 0.03125 Hz, Nyquist = 0.5 Hz For instruction we use Sec/Hz. Can use Msec/KHz, usec/mhz, etc. 18

CLOSE-UP OF ORIGINAL SIGNAL AGAIN WE HAVE 1 CYCLE/32 SECONDS OR 0.3125 HZ 19

CLOSE-UP OF ORIGINAL SIGNAL IN HZ AGAIN WE SEE 0.3125 HZ 20

MINISCULE SIGNAL WOULD BE IN BIN 64 THIS SIGNAL IS PRESENTLY UNDETECTABLE IF WE COULD DETECT IT, THE PEAK WOULD BE IN BIN 64 21

ADD (INJECT) PSEUDO-RANDOM NOISE ADD PSEUDO-RANDOM NOISE FOR SIMULATION NOISE IS RANDOM IN TIME AND FREQUENCY BUT TINY SIGNAL IS CONSTANT IN FREQUENCY MAY HAVE MILLIONS OF SAMPLES IN REAL WORLD (PROCESSING GAIN) BUT CAN SHOW METHOD HERE WITH FEWER SAMPLES AND LOWER THRESHOLD 22

FFT OF PSEUDO-RANDOM NOISE White noise in the sense that it has all the frequencies (like white has all the colors). 23

NOISELESS SIGNAL (Nothing above Det. Thresh.) ORIGINAL TINY SIGNAL IS WELL BELOW DETECTION THRESHOLD 24

NO POINTS DETECTED WITH ORIG SIGNAL 25

SIG WITH 1X NOISE (Nothing above Det. Thresh.) 26

SIG WITH 2x NOISE (SOME POINTS DETECTED) 27

30 DETECTABLE POINTS ABOVE 5.0 THESHOLD FROM 2048 POINTS (SIGNAL + NOISE) THERE ARE 30 POINTS WITH A MAGNITUDE OF 5.0 OR MORE. 28

CLOSE-UP OF FFT OF SIGNAL WITH 2x NOISE 2 largest points In this close-up we can see clearly the peak at bin 64. Software has also found the location and magnitude of 2 largest peaks. Problem is that the signal peak at bin 64 is only slightly greater than a noise peak at bin 773. The highest peak is only 1.0523 times the next larger peak. Let us try again with more noise. 29

ORIGINAL SIGNAL WITH 3x INJECTED NOISE 30

DETECTABLE POINTS WITH 3 TIMES NOISE 31

CLOSE-UP OF FFT OF SIGNAL WITH 3x NOISE 2 largest points As with 2x noise case top peak at 64 but the 2 nd highest peak has changed location from 773 to 634. We can see that the ratio of highest peak (original signal) increased from1.0523 to almost 1.2. It seems adding more noise gave better results. See if this is the case as we add even more noise. 32

CLOSE-UP OF FFT OF SIGNAL WITH 4x NOISE 2 largest points Ratio is higher at 1.3. Tiny signal freq easily discernable. 33

CLOSE-UP OF FFT OF SIGNAL WITH 5x NOISE 2 largest points Ratio reduced from about 1.3 to about 1.2 34

CLOSE-UP OF FFT OF SIGNAL WITH 6x NOISE Ratio getting lower 35

CLOSE-UP OF FFT OF SIGNAL WITH 7x NOISE Ratio getting still lower 36

CLOSE-UP OF FFT OF SIGNAL WITH 8x NOISE Miniscule signal is now 2 nd -largest peak with 8x noise 37

SIGNAL WITH 9x NOISE 38

CLOSE-UP OF FFT OF SIGNAL WITH 9x NOISE SOI SWAMPED 39

HOW MUCH NOISE SHOULD BE ADDED? We were first able to detect the frequency of our signal when 2x noise was added to our original signal. The best result was when 4x noise was added. The most noise we could add to the original signal without beginning to swamp the system was 7 times noise. In practice then, a method to find the optimum noise then is to inject a gradually increasing amount of noise into the system. We notice when a peak consistently appears when noise is added and when it goes away. We then back off on the noise injection to a midpoint. In this case the midpoint was between 3x and 5x noise 40

NOISE INJECTION METHODOLOGIES Remember that in the real world the noise will be constantly changing. This means that the frequency peaks will also be constantly changing. What we look for is the peak that stays at a constant frequency in the FFT. The author has used this method with molecular level miniscule signals that stay at a constant frequency for long periods of time but are below the detection threshold. As a small amount of noise is injected peaks begin to appear at random frequencies. As more noise is injected we begin to detect a constant frequency peak from the original signal 41

SIMULATION OF SCOPE SCREEN WITH 4x NOISE 42

43

STOCHASTIC RESONANCE - 1 Stochastic Resonance is somewhat similar to dithering or simple noise injection. It is used to detect very weak signals. Like dithering, random (stochastic) white * noise is added to the signal. Listen to some of the strings of the 88 notes on an acoustic piano vibrate after the author speaks the words Heh Low (Hello) into it. *White Noise is all the frequencies. Some background noise machines used in therapist s offices to mask conversations emit pink noise. Just as the color pink has more lower-frequencies than white noise, pink noise has more of the soothing lower-frequency bass tones. 44

PIANO DEMO OF RESONANCE ( Audio FFT ) THE WORD HELLO IS SPOKEN INTO AN ACOUSTIC PIANO CAUSING SOME OF THE STRINGS TO VIBRATE. WE NEXT LISTEN TO JUST THE STRINGS FOR HELLO THE WORDS HEH AND LOW ARE SPOKEN AND WE LISTEN TO JUST THE STRINGS THAT ARE EXCITED. WE CAN ALMOST DISCERN THE WORD HELLO. THIS IS A SIMPLE AUDIO FOURIER TRANSFORM OR AUDIO SHORT TIME FOURIER TRANSFORM (STFT) 45

BI-STABLE STATES Bi-Stable systems are common. Ordinary light switch is either on or off. Other binary systems. Other examples include atomic/molecular energy levels, electronic Flip-Flops, and Multivibrators/ Consider a potential energy graph as shown on next slide. Potential energy is given by y = x 4 /4 - x 2 /2 46

POTENTIAL ENERGY EXAMP (Bi-Stable) Ball Slope is thus given by dy/dx = x(x 2 1) Slope is zero when x = -1, 0, or +1 but only stable at x = -1 and +1 (bi-stable) 47

BREAKING A GLASS WITH SOUND WAVES NOTICE THAT THE FREQUENCY OF THE GLASS MOTION CHANGES AS MORE NOISE IS ADDED EVEN THOUGH THE EXCITING FREQUENCY STAYS THE SAME 48

STOCHASTIC RESONANCE - 2 It has been postulated that organisms such as crayfish are able to hear the swimming motions of certain fish by being tuned to weak but coherent water motions. Application of stochastic noise aids in this detection by the crayfish.* * Stochastic resonance and the benefits of noise: from ice ages to crayfish and SQUIDs (Superconducting QUantum Interference Devices) by Kurt Wiesenfeld and Frank Moss. Nature, Volume 373, Issue 6509, pp. 33-36 (1995). 49

RESONANCE & NOISE INJECTION As white noise is injected the system may resonate at certain frequencies. This can cause the original undetectable signal to resonate and produce a higher frequency peak as demonstrated below: Resonance causes peak to be higher 50

BI-STABLE STATES & NOISE INJECTION If the system is bi-stable, a 2 nd frequency may replace the first as the highest peak. For extremely weak bi-stable signals at the atomic level, noise injection is combined with autocorrelation and extremely long integration times to successfully extract the information about the signal. A SQUID (Superconducting Quantum Interference Device) is sometimes used with liquid helium at 3 o Kelvin. Other applications are found in Classical and Quantum Physics and many other disciplines. One Biomedical application is in patients who are are almost numb in their feet to help them walk. Special shoes vibrate just below the level where they can be felt. When the patient walks, the floor can then be felt with the added stimulus. 51