Professional Documents
Culture Documents
Final Year Project (Lie Detector) Report
Final Year Project (Lie Detector) Report
On
By
i
BHARATI VIDYAPEETH DEEMED TO BE UNIVERSITY
COLLEGE OF ENGINEERING, PUNE – 4110043
DEPARTMENT OF ELECTRONICS & TELECOMMUNICATION
ENGINEERING
CERTIFICATE
Certified that the project report entitled, “Lie Detector using MATLAB” is a bonafide work done by
Vikram Singh Rathaur, Ankit Raj and Ankit Raj in partial fulfillment of the requirements for the
award of degree of Bachelor of Technology in Electronics & Telecommunication Engineering.
Prof. Prasad D. Kadam Prof. P V Deshmukh & Prof. Aarti Sawant Prof.Dr. S.K. Oza
(Guide) (Project Coordinator) (HOD)
Examiner1:
Examiner2:
Date: / /2020
Place: Pune
ii
ACKNOWLEDGEMENT
We would like to extend our sincere gratitude to the Principal Dr. A. R. Bhalerao, Head of
Department Electronics & Telecommunication, Prof. S.K. Oza, for nurturing a congenial yet
competitive environment, which motivates all the students not only to pursue goals but also to
elevate the Humanitarian level.
Inspiration and guidance are invaluable in every aspect of life, which we have received from
our respected Project Guide Prof. Prasad D. Kadam, who gave us his careful and ardent
guidance because of which we are able to complete this project. More words won’t suffice to
express our gratitude to his untiring devotion. She undoubtedly belongs to the members of the
artistic gallery who are masters in all aspects.
We would also like to thank all the faculty members who directly or indirectly helped us from
time to time with their invaluable inputs.
iii
ABSTRACT
Crime records are reported to show an increasing pattern over the years and it is heart breaking
since crimes cases will affect a lot of people especially the victims since they have to face
severe loss. Interrogations in crime cases are fundamental since this is the element that will
determine the status of the crime and the perpetrator. In order to prevent from any deceptions
by the criminals, lie detector might be an invention that will be a great help to separate truth
and lies. Due to this, the study proposed a lie detector technique using APG signal. APG signal
is the second derivative of PPG that can be obtained by placing detector at the fingertip.
Literature reviews on related topics were conducted to gather more information regarding
deception detection. In order to realise our objective, the proposed methodology is constructed
with data collection as the first step. The data were collected form 10 subjects in form of PPG
signals. The next step is signal transformation where PPG signals are converted into APG
waveforms and the transformed signals will then undergo pre-processing to eliminate noise.
Both techniques use MATLAB as the platform to obtain the output. The following step is
feature extraction where the filtered signals undergo segmentation to point out the important
information to be used in the next stage. The last step is classification where the extracted data
is analysed to perform a conclusion whether the subject is lying or telling the truth. This process
involves analysing 3 characteristics of the signals which are the Peak to Peak Interval (PPI),
Peak Height Difference and Cardioid graph. Results from the experimentation indicates that
PPI is not suitable as a mean to differentiate deception and truth as the difference between these
two signals are trivial. Peak Height Difference and Cardioid graph are more suitable to detect
lies in both PPG and APG signals since there are significant different in PPG and APG waves
when subject are telling lies as compared to telling the truth.
iv
TABLE OF CONTENT
1 INTRODUTION 10
1.1 OVERVIEW 10
1.2 CONVENTIONAL METHODS 11
1.3 DRAWBACKS OF CONVENTIONAL METHODS 11
1.4 TECHNOLOGY GOING TO BE USED 12
1.5 ADVANTAGES OF METHODOLOGY USED 12
1.6 OBJECTIVE 16
1.7 MOTIVATION 16
1.8 LITRATURE SURVEY 17
2 LIE DETECTOR USING MATLAB 18
2.1 PRICIPLE 19
2.2 APPLICATIONS 20
2.3 COMPONENTS 23
2.3.1 ARDUINO UNO 23
2.3.2 LM 35 TEMPRATURE SENSOR 26
2..3.3 BPM SENSOR 28
2.3.4 16X2 JHD LCD DISPLAY 31
2.3.5A LED 33
2.3.5B BUZZER 33
2..3.6 ARDUINO IDE 36
2.3.7 MATLAB SIMULINK 37
3 IMPLEMENTATION 40
3.1 BLOCK DIAGRAM 40
3.2 CIRCUIT DIAGRAM 41
3.3 WORKING MODEL 41
3.4 SIMULATION 43
4 SOURCE CODE 45
4.1 SIMULATION 46
5 CONCLUSION AND RESULT 49
v
5.1 CONCLUSION 49
5.2 RESULT 51
6 ADVANTAGES AND DRAWBACKS 54
6.1 ADVANTAGES 55
6.2 DRAWBACKS 55
8 REFRENCES 59
9 RESEARCH PAPER 63
vi
LIST OF TABLES
vii
LIST OF FIGURES
viii
LIST OF ABBREVIATION
ix
Lie Detector Using MATLAB
1.INTRODUCTION
1. INTRODUCTION
For our final project for experimental engineering we will design, calibrate and implement a
polygraph test. We will sample data from two sensors collecting two distinct types of data. The
first sensor is a galvanic skin response sensor, which will measure the perspiration rate of the
subject’s hand. The second sensor, which is an electrocardiogram, measures movement of the
person who is being tested. After the detector is assembled, we will initially gather data from
a group of volunteers. Their movement and perspiration will be recorded while they are asked
a series of test questions. Afterwards they will be asked which questions they answered false.
Based on these we will calibrate the data and determine how much of a change indicates a lie.
From these determined values, a SIMULINK program will be assembled that will acquire
future readings from subjects and compare these new values to the calibrated data. If the new
readings are above our pre-determined level, the SIMULINK program will activate a light
indicating that the subject is most likely telling a lie.
1.1 OVERVIEW
A “lie detector” or polygraph instrument measures changes occurring in the body of a subject
such as: heart rate, blood pressure, respiratory rate, electro dermal activity, and arm and leg
motions. These measurements are then compared to the normal levels of the subject.
Polygraphs do not detect lies; however, they are designed to look for substantial involuntary
changes in bodily rates, which occur in a person's body when that person is subjected to stress,
such as the stress associated with deception.
antiperspirant on fingertips, tacks placed in shoes (to give the subject pain after each question),
and biting the tongue, lip, or cheek. These countermeasures may not even go into the accuracy
levels provided by the American Polygraph Association because the measures may produce
inconclusive results, not errors. Although measures can be made to stop some countermeasures,
some may be hard to detect. The validity of our detector is very inaccurate because of our
design. We have fewer sensors than a normal polygraph and our sensors are likely to be less
accurate. Due to these reasons, our lie detector is merely a primitive model that will portray
how a real polygraph works.
SAM platform source code has been moved to its own repository
(https://github.com/arduino/ArduinoCore-sam) - all PRs and issues have been moved as
well.
Update Wifi101 Firmware Updater plugin
The Arduino Integrated Development Environment - or Arduino Software (IDE) -
contains a text editor for writing code, a message area, a text console, a toolbar with
buttons for common functions and a series of menus. It connects to the Arduino and
Genuino hardware to upload programs and communicate with them.
A very large (and growing) database of built-in algorithms for image processing and
computer vision applications.
MATLAB allows you to test algorithms immediately without recompilation. You can
type something at the command line or execute a section in the editor and immediately
see the results, greatly facilitating algorithm development.
The MATLAB Desktop environment, which allows you to work interactively with your
data, helps you to keep track of files and variables, and simplifies common
programming/debugging tasks.
The ability to auto-generate C code, using MATLAB Coder, for a large (and growing)
subset of image processing and mathematical functions, which you could then use in
other environments, such as embedded systems or as a component in other software.
Technical support from a well-staffed, professional organization (assuming your
maintenance is up-to-date).
Advantages of Arduino IDE
The biggest advantage of Arduino is its ready to use structure
Arduino has its library of examples present inside its software
Arduino has easy effortless function
Arduino has many forums present on the internet
1.6 OBJECTIVE
The main objective of our project work is to develop a model for lie detector.The above
mentioned objective of our project work can be achieved using the following steps one by
one as follows:
1. lie detection tests record a number of different bodily responses which can then be
used to determine whether someone is telling the truth. They usually measure things
like blood pressure, change in a person's breathing, and sweating on the palms and
sudden changes in body temperature.
2. lie detection tests record a number of different bodily responses which can then be
used to determine whether someone is telling the truth. They usually measure things
like blood pressure, change in a person's breathing, and sweating on the palms and
sudden changes in body temperature.
3. This project obtain the related autonomic signals from a subject and analyses them
to detect nervousness of the subject. Further, the detected signal is given to a GUI of
the signals to simplify analysis and finally set up a conducive environment for
inducing lie related stress.
1.7 MOTIVATION
Lie detectors can be helpful to the judiciary of our country in making faster decisions .No ,
guilty person would be able to get away from his/her doings. Narcotics test are very harmful to
the charged persons neural system and sometimes even fatal . So this can be an alternative to
the narcotic analysis. The polygraph lie detector is not an accurate version of lie detector
making it a difficult choice for investigations our modifications will make it more accurate and
trustworthy.lie detection tests record a number of different bodily responses which can then be
used to determine whether someone is telling the truth. They usually measure things
like blood pressure, change in a person's breathing, and sweating on the palms and sudden
changes in body temperature.Conventional method requires the presence of an individual
during the test for examining the results which most of the times lead to discrepancy during the
results. Implementation of digital database in lie detection helps to control the discrepancy
involved.
2.1 PRINCIPLE
The implementation of our project is done using Arduino UNO (ATMEGA 328)
microcontroller development board. The LM35 temperature sensor is in contact with
the skin of the individual and when the temperature rises, the LM35 module gives
output in the form of output analog voltage.
Similarly, when the BPM sensor is connected to the fingertip of the individual and it
has two sides, a side for LED and other for amplifying circuitries detects the BPM and
again gives output in analog form.
The output of both sensors is fed to the analog pins of Arduino uno and the digital pins
of the Arduino are connected to LCD. The ADC (analog to digital converter) in Arduino
convert analog signal to digital form and then display it on LCD.
Both temperature and BPM has a fixed threshold and whenever temperature or BPM
crosses the threshold the buzzer beeps and LED blinks. Now coming to the
implementation of software parts of the project. The Arduino and Simulink are
connected through serial communication port.
On the Simulink model the real time reading is taken from Arduino through serial
communication port at 9600 baud rates. The output of Simulink model is plotted on
graph simultaneously for both the sensors.
2.2 APPLICATION
Lie detector testing is used to determine if a person is truthful or not, based on the circumstances
surrounding their particular case. Lie detection tests are costly because they are carried out by
Gleaning out the truth from several complicated circumstances can be a tough job to handle all
by yourself. That’s why you’d likely need the services of a reputable lie detection company to
help you get one step closer to the truth you’ve been yearning to learn.There are several
circumstances where lie detector tests can be used to determine the truth and solve a PPG is
used to determine if a person is truthful or not, based on the circumstances surrounding their
particular case.Lie detection tests are costly because they are carried out by professional
examiners trained in discerning the truth from polygraph test results Gleaning truth from
several complicated circumstances can be a tough job to handle all by yourself. That’s why
you’d likely need the services of a reputable lie detection company to help you get one step
closer to the truth you’ve been yearning to learn.There are several circumstances where lie
detector tests can be used to determine the truth and solve a case. This article presents This
article presents various types of cases where polygraph testing/lie detection can be especially
useful. Poly graph Testing for Qualified Employees. If you’re a business owner seeking to hire
the most qualified individuals for your job vacancies, polygraph testing could be an essential
step in your hiring process. Some companies require potential employment candidates to
undergo screening with polygraph testing. This is to help identify the integrity of the potential
employee and ensure that the company is hiring an individual of good integrity. Most
government employees in the United States undergo lie detector tests before being accepted
into their posts. Testing for pre-employment purposes often comes with a series of questions
aimed at know in a person’s educational status, previous work history, and any activities related
to gambling, criminality, and drug use. Polygraph results may be used to filter out potential
employees that do not meet the integrity standards of the hiring company.case.This article
presents various types of cases where polygraph testing/lie detection can be especially
useful.Polygraph Testing for Qualified Employees. If you’re a business owner seeking to hire
the most qualified individuals for your job vacancies, polygraph testing could be an essential
step in your hiring process. Some companies require potential employment candidates to
undergo screening with polygraph testing. This is to help identify the integrity of the potential
employee and ensure that the company is hiring an individual of good integrity. Most
government employees in the United States undergo lie detector tests before being accepted
into their posts. Testing for pre-employment purposes often comes with a series of questions
aimed at know in a person’s educational status, previous work history, and any activities related
to gambling, criminality, and drug use. Polygraph results may be used to filter out potential
employees that do not meet the integrity standards of the hiring company.
if they’re truly a part of the case development or not. The subject’s participation in the case
and his guilt can also be determined via testing Fraud and Theft Cases Lie detectors are widely
used to resolve fraud and theft cases. Subjects are often put under through tests to help
determine if they truly committed the theft or fraud, the amount of resources stolen, and the
manner by which the theft or fraud was committed. The test results can be used to either
develop stronger evidence against the persons involved in the cases, or free the subject from
the case.
2.2.3 Testing for Sexual Offences
Sexual assault and other similar offences are highly disturbing cases that call for
meticulouprobes to find out the truth. Since cases of this nature are very sensitive, professional
polygraph examiners are trained to observe confidentiality at all times.Lie detector technology
can be used on the alleged sexual predator to determine if they really are guilty of the offence
and the manner by which they carried out the crime. When combined with other investigation
methods and medical records, polygraph testing can be of great help toresolve sexual offences
and crimes. Test results can be valuable sources or foundations upon which evidence for the
case can be built and retrieved.
2.2.4 Source Verification for Media Personnel
Media sources claiming to offer knowledge of controversial issues may undergo truth veri
fication via lie detector technology. This is to help media personnel discern if their source
are truthful before they publish the stories told by these sources.be out. From finding valuable
information about criminal cases to verifying the integrity of potential company employees,
polygraph testing is a helpful tool that promises to bring truth to all.
2.3 COMPONENTS
We divided our task into two parts to make the task easy and simple and to avoid complexity
and make it error free.The first is the hardware parts which includes following components:
Arduino Uno
LM 35
BPM sensor
16 X 2 JHD LCD
LED and Buzzer
Power Supply Board
The second is the software parts which comprises of the following main components:
Arduino IDE
Simulink (MATLAB)
use by other circuits. The Diecimila, Duemilanove, and current Uno provide 14 digital I/O pins,
six of which can produce pulse-width modulated signals, and six analog inputs, which can also
be used as six digital I/O pins. These pins are on the top of the board, via female 0.1-inch (2.54
mm) headers. Several plug-in application shields are also commercially available. The Arduino
Nano, and Arduino-compatible Bare Bones Board and Boarduino boards may provide male
header pins on the underside of the board that can plug into solderless breadboards.
The original Arduino hardware was produced by the Italian company Smart Projects. Some
Arduino-branded boards have been designed by the American companies SparkFun Electronics
and Adafruit Industries. As of 2016, 17 versions of the Arduino hardware have been
commercially produced.
Key features
Inexpensive and flexible hardware
Arduino boards are relatively inexpensive compared to other microcontroller platforms,
ranging from 8-bit microcontrollers to IoT applications.
Simple programming environment
The Arduino Software (IDE) is easy-to-use for beginners, yet flexible enough for advanced
users.
Cross-platform
The Arduino Software (IDE) runs on Windows, Mac OSX, and Linux operating systems.
Open source and extensible software
The Arduino software is published as open source tools, available for contribution by
programmers worldwide. The language can be extended through C/C++ libraries and ported to
other hardware platforms.
Open source and extensible hardware
The diagrams of the Arduino boards are published under a Creative Commons license, so
experienced circuit designers can make their own version of the different modules, extending
and improving them or simply learn how they are built. Novices can build breadboard versions
of the board in order to understand how it works and save money.
PINS DESCRIPTION
0 D0
1 D1
2 D2
3 D3
4 D4
5 D5
6 D6
7 D7
8 D8
9 D9
10 D10
11 D11
12 D12
13 D13
14 GND
15 AREF
16 SDA
17 SCL
18 A0
19 A1
20 A2
21 A3
22 A4
23 A5
24 VIN
25 GND
26 GND
27 5V
28 3.3V
29 RESET
30 IOREF
31 NC
2.3.2 LM 35
LM35 is a temperature sensor that outputs an analog signal which is proportional to the
instantaneous temperature. The output voltage can easily be interpreted to obtain a temperature
reading in Celsius. The advantage of lm35 over thermistor is it does not require any external
calibration. The coating also protects it from self-heating. Low cost (approximately $0.95) and
greater accuracy make it popular among hobbyists, DIY circuit makers, and students. Many
low-end products take advantage of low cost, greater accuracy and used LM35 in their
products. Its approximately 15+ years to its first release but the sensor is still surviving and is
used in any products.
LM35 Temperature sensor Features
Calibrated Directly in Celsius (Centigrade)
Linear + 10-mV/°C Scale Factor
0.5°C Ensured Accuracy (at 25°C)
Rated for Full −55°C to 150°C Range
Suitable for Remote Applications
Operates from 4 V to 30 V
Less than 60-µA Current Drain
Low Self-Heating, 0.08°C in Still Air
Non-Linearity Only ±¼°C Typical
Low-Impedance Output, 0.1 Ω for 1-mA Load
Figure 2.3.2 LM 35
LM35 can measure from -55 degrees centigrade to 150-degree centigrade. The accuracy level
is very high if operated at optimal temperature and humidity levels. The conversion of the
output voltage to centigrade is also easy and straight forward.
The input voltage to LM35 can be from +4 volts to 30 volts. It consumes about 60
microamperes of current. Lm35 has many family members a few names are LM35C, LM35CA,
LM35D, LM135, LM135A, LM235, LM335. All LM35 family members work on the same
principles but temperature measuring capacity varies and also they are available in many
packages (SOIC, TO-220, TO-92, TO ). In order to understand the working principle of LM35
temperature sensor we have to understand the linear scale factor. In the features of LM35 it is
given to be +10 mills volt per degree centigrade. It means that with increase in output of 10
mills volt by the sensor vout pin the temperature value increases by one. For example, if the
sensor is outputting 100 mills volt at vout pin the temperature in centigrade will be 10-degree
centigrade. The same goes for the negative temperature reading. If the sensor is outputting -
100 mills volt the temperature will be -10 degrees Celsius. LM35 can be used in two circuit
configurations. Both yield different results. In the first configuration, you can only measure the
positive temperature from 2 degrees Celsius to 150 degrees Celsius. In this first configuration,
we simply power lm35 and connect the output directly to analog to digital converters. In the
second configuration, we can utilize all the sensor resources and can measure the full range
temperature from -55 degree centigrade to 150-degree centigrade. This configuration is a little
complex but yields high results. We have to connect an external resistor, in this case, to switch
the level of negative voltage upwards. The external resistor value can be calculated from the
formula given below the configuration circuit. The second configuration circuit can be made
in various ways.To see about the second configuration circuits visit the LM35 datasheet by
Texas Instruments. Texas Instruments data sheet enlists the circuit with clear component
values. Although the first configuration did not need a resistor at the output side, I recommend
connecting an 80 k to 100 k resistor between vout and gnd pin. When I performed several
experiments. I noticed that the readings some time fluctuate and the vout pin floats. So a resistor
between vout and gnd tights the vout pin low and prevents the pin from floating. The accuracy
parameters for both configurations are different. The average accuracy level is +- 1 degree
Celsius for both configurations. But the accuracy level decreases for temperature between 2
degrees to 25-degree centigrade. Now that we have discussed the LM35 temperature sensor
pinout, structure, linear scale factor and accuracy level its time to list down the steps on how
to measure temperature using LM35 temperature sensor.
PIN NO. FUNCTIONS
1 VCC
2 OUT
3 GND
each other and the finger of the person must be placed in between the transmitter and receiver.Reflective
Sensor, on the other hand, has the light source and the detector adjacent to each other and the finger of
the person must be placed in front of the sensor.
2.3.5 A LED
The Light emitting diode is a two-lead semiconductor light source. In 1962, Nick Holonyak
has come up with an idea of light emitting diode, and he was working for the general electric
company. The LED is a special type of diode and they have similar electrical characteristics of
a PN junction diode. Hence the LED allows the flow of current in the forward direction and
blocks the current in the reverse direction. The LED occupies the small area which is less than
the 1 mm2. The applications of LEDs used to make various electrical and electronic projects.
In this article, we will discuss the working principle of the LED and its applications. The
lighting emitting diode is a p-n junction diode. It is a specially doped diode and made up of a
special type of semiconductors. When the light emits in the forward biased, then it is called as
a light emitting diode.
The recombination indicates that the electrons in the conduction band jump down to the
valence band. When the electrons jump from one band to another band the electrons will emit
the electromagnetic energy in the form of photons and the photon energy is equal to the
forbidden energy gap. For an example, let us consider the quantum theory, the energy of the photon
is the product of both Planck constant and frequency of electromagnetic radiation. The mathematical
equation is shown
Eq = hf
Where h is known as a Planck constant, and the velocity of electromagnetic radiation is equal
to the speed of light i.e c. The frequency radiation is related to the velocity of light as a f= c /
λ. λ is denoted as a wavelength of an electromagnetic radiation and the above equation will
become as a
Eq = he / λ
From the above equation, we can say that the wavelength of electromagnetic radiation is
inversely proportional to the forbidden gap. In general silicon, germanium semiconductors this
forbidden energy gap is between the condition and valence bands are such that the total
radiation of electromagnetic wave during recombination is in the form of the infrared radiation.
We can’t see the wavelength of infrared because they are out of our visible range.
The infrared radiation is said to be as a heat because the silicon and the germanium
semiconductors are not direct gap semiconductors rather these are indirect gap semiconductors.
But in the direct gap semiconductors, the maximum energy level of the valence band and
minimum energy level of conduction band does not occur at the same moment of electrons.
Therefore, during the recombination of electrons and holes are a migration of electrons from
the conduction band to valence band the momentum of electron band will be changed.
2.3.5 B BUZZER
A buzzer is a small yet efficient component to add sound features to our project/system. It is very
small and compact 2-pin structure hence can be easily used on breadboard, Perf Board and even on
PCBs which makes this a widely used component in most electronic applications.
There are two types are buzzers that are commonly available. The one shown here is a simple
buzzer which when powered will make a Continuous Beeeeeeppp.... sound, the other type is
called a readymade buzzer which will look bulkier than this and will produce a Beep. Beep.
Beep. Sound due to the internal oscillating circuit present inside it. But, the one shown here is
most widely used because it can be customised with help of other circuits to fit easily in our
application.
This buzzer can be used by simply powering it using a DC power supply ranging from 4V to
9V. A simple 9V battery can also be used, but it is recommended to use a regulated +5V or
+6V DC supply. The buzzer is normally associated with a switching circuit to turn ON or turn
OFF the buzzer at required time and require interval.
3.IMPLEMENTATION
3.IMPLEMENTATION
The implementation of our project is done using Arduino UNO (ATMEGA 328) microcontroller
development board. The LM35 temperature sensor is in contact with the skin of the individual and
when the temperature rises, the LM35 module gives output in the form of output analog voltage.
Similarly, when the BPM sensor is connected to the fingertip of the individual and it has two sides, a
side for LED and other for amplifying circuitries detects the BPM and again gives output in analog
form. The output of both sensors is fed to the analog pins of Arduino uno and the digital pins of the
Arduino are connected to LCD. The ADC (analog to digital converter) in Arduino convert analog
signal to digital form and then display it on LCD. Both temperature and BPM has a fixed threshold
and whenever temperature or BPM crosses the threshold the buzzer beeps and LED blinks. Now
coming to the implementation of software parts of the project. The Arduino and Simulink are
connected through serial communication port. On the Simulink model the real time reading is taken
from Arduino through serial communication port at 9600 baud rates. The output of Simulink model is
plotted on graph simultaneously for both the sensors.
1. Block 1 .A PPG sensor is used for the detection of volume change in the micro-vascular bed of
tissue. Whenever oxygenated blood reaches the tips of the fingers there is a surge in the volume of
blood and when the de-oxygenated blood leaves through the vessels the volume decreases and the
sensors detects this and give output in the form of varying voltage.
2. Block 2 The output from the sensor is obtained and filtered to suppress the large DC component
and boost the pulsating AC voltage.
3. Block 3 The Arduino development board is the interfaced with Matlab and Simulink package , the
data is collected Per second and is saved in the memory.
4. Block 4 The signal transformer convert the signal to graphical form in the form of
polygraph.Finally, the result is obtained and will be presented in the final stage on a serial monitor
and mobile handset , which may conclude the effectiveness of proposed methodology developed
by us.
sensor. It’s design includes a lens that focuses the infrared energy being emitted by the object
in front of a detector. The detector converts the energy into an electrical signal which then can
be passed to a microcontroller to interpret and display in units of temperature after
compensating for the variation in ambient temperature.The matalb and Simulink package
collects the data per second and plot The graph on the matlab.
3.4 SIMULATION
We have used the Simulink Support Package for Arduino Uno Hardware for communicating
between MATLAB and Arduino as used A library of Simulink Blocks is provided by the
support package which allows access to Arduino I/O pins and Serial Port. The package allows
implementation of Simulink Models in Arduino board such that the board acts as stand-alone
hardware.It takes in inputs from the circuits and sends them serially to Simulink. The Simulink
model counts the number of incoming pulses and displays the heart rate . The counter is updated
every 5 seconds to have a continuous monitoring over any changes in the heart-rate. Every
person has a different normal heart rate. Before conducting a test, the model requires calibration
unique to each individual. On questioning if at any point of time the subject’s heart rate
elevates, it implies that he has lied.
4 .SOURCE CODE
4 .SOURCE CODE
4.1 SIMULATION
The source code for the Lie Detector is as follows:-
#include<LiquidCrystal.h>
#include <PulseSensorPlayground.h>
LiquidCrystal lcd(12,11,10,9,8,7);
int Buzz=A1;
int led=6;
float temp=0;
const int PulseWire = A5; // PulseSensor PURPLE WIRE connected to ANALOG PIN 0
const int LED13 = 13; // The on-board Arduino LED, close to PIN 13.
void setup()
pinMode(Buzz,OUTPUT);
pulseSensor.analogInput(PulseWire);
if (pulseSensor.begin())
Serial.println("We created a pulseSensor Object !"); //This prints one time at Arduino power-up, or
on Arduino reset.
lcd.clear();
Serial.begin(9600);
lcd.begin(16,2);
delay(500);
void loop()
vout=analogRead(sensor);
vout=(vout*500)/1023;
lcd.setCursor(0,0);
lcd.print(tempc);
lcd.setCursor(0,1);
//lcd.print("in Fahrenheit=");
//lcd.print(tempf);
if (tempc>30)
digitalWrite(Buzz,HIGH);
digitalWrite(6, HIGH);
else
digitalWrite (Buzz,LOW);
digitalWrite(6, LOW);
// Serial.println("♥ A HeartBeat Happened ! "); // If test is "true", print a message "a heartbeat
happened".
lcd.clear();
lcd.print("BPM:");
lcd.setCursor(0,1);
lcd.print(myBPM);
5.2 RESULT
6.1 ADVANTAGES
• Law enforcement agencies and intelligence agencies in the countries are by far the
biggest users of polygraph technology.
• The reason for the use of lie detector test is its legality of using inhuman degrading
methods to confess the crime.
• Advantage over narco-analysis which involve the usage of drugs on the accused. it can
cause a permanent damage to brain if dosage not calculated properly.
• The most important aspect is to ban the use of torture to seek information on the
accused.
6.2 DRAWBACKS
The temperature sensor output is not up to the mark since LM35 sensor are slow and
senses the output after some delay.
Due to latency of sensors the output at LCD and Simulink are difficult to match.
Requires a operator for proper working of the project.
7. APPLICATIONS
7. APPLICATIONS
Polygraph testing is used to determine if a person is truthful or not, based on the
circumstancessurrounding their particular case. Lie detection tests are costly because they are
carried out by Gleaning out the truth from several complicated circumstances can be a tough
job to handle allby yourself. That’s why you’d likely need the services of a reputable lie
detection company to helpyou get one step closer to the truth you’ve been yearning to
learn.There are several circumstanceswhere lie detector tests can be used to determine the truth
and solve a PPG is used to determine if a person is truthful or not, based on the circumstances
surrounding their particular case.Lie detection tests are costly because they are carried out by
professional examiners trained in discerning the truth from polygraph test results Gleaning
truth from several complicated circumstances can be a tough job to handle allby yourself.
That’s why you’d likely need the services of a reputable lie detection company to help you
get one step closer to the truth you’ve been yearning to learn.There are several circumstances
where lie detector tests can be used to determine the truth and solve a case. This articlepresents
This article presents various types of cases where polygraph testing/lie detection can be
especially useful.Polygraph Testing for Qualified Employees. If you’re a business owner
seeking to hire the most qualified individuals for your job vacancies, polygraph testing could
be an essential step in your hiring process. Some companies require potential employment
candidates to undergo screening with polygraph testing. This is to help identify the integrity
of the potential employee and ensure that the company is hiring an individual of good integrity.
Most government employees in the United States undergo lie detector tests before being
accepted into their posts. Testing for pre-employment purposes often comes with a series of
questions aimed at know in a person’s educational status, previous work history, and any
activities related to gambling, criminality, and drug use. Polygraph results may be used to filter
out potential employees that do not meet the integrity standards of the hiring
company.case.Thisarticle presents various types of cases where polygraph testing/lie detection
can be especially useful.Polygraph Testing for Qualified Employees. If you’re a business
owner seeking to hire the most qualified individuals for your job vacancies, polygraph testing
could be an essential step in your hiring process. Some companies require potential
employment candidates to undergo screening with polygraph testing. This is to help identify
the integrity of the potential employee and ensure that the company is hiring an individual of
good integrity. Most government employees in the United States undergo lie detector tests
before being accepted into their posts. Testing for pre-employment purposes often comes with
a series of questions aimed at know in a person’s educational status, previous work history, and
any activities related to gambling, criminality, and drug use. Polygraph results may be used to
filter out potential employees that do not meet the integrity standards of the hiring company.
8.REFRENCES
8.REFRENCES
[1] Akarsh Sinha, M. Pavithra, K.R. Sutharshan, “Arduino based pulse width modulated output
voltage control of a dc-dc boost converter using PID strategy,” unpublished.
[2]Calin Corciova, Radu Ciorap, Dan Zaharia and Daniela Matei, 2011. On Using Impedance
Plethysmography for Estimation of Blood Flow, IEEE.
[3]Edward Sazonov, Timothy Haskew, Andrew Price, Bryant Grace and Stephanie Schuckers,
2012.
[4]Electronic and Electromechanical Tester of Physiological Sensors , Sixth International
Conference on Sensing Technology (ICST).
[5]Introducing easy pulse: A diy photoplethysmographic sensor for measuring heart rate.
(2012, September 12). Retrieved from http://embedded-lab.com/blog/?p=5508
[6]Geddes, L.A., 2002. Purdue University, The truth shall set you free: Development of the
Polygrapgh, IEEE Engineering In Medicine and Biology.
[7]Hashem, M.M.A., Rushdi Shams, Md. Abdul Kader and Md. Abu Sayed, 2010. Design and
Development of a Heart Rate Measuring Device using Fingertip, International Conference on
Computer and Communication Engineering (ICCCE 2010), 11-13 May 2010, Kuala Lumpur,
Malaysia.
[8] Programming Arduino: Getting Started with Sketches by SIAMON MONK
[9] The Polygraph and Lie Detection Book by Mark Moore
9.RESEARCH PAPER
Key Words: Final year project, LM35, BPM, Arduino ide, Simulink, Result
1. EINLEITUNG
For our final year project, we are designing an experimental setup for lie detection using MATLAB. Here we are using two
sensors first one is a blood pressure monitor sensor (B.P.M) and the other one is the temperature sensor and we sample the
output data from the two sensors. The LM35 temperature sensor will measure the body temperature of the individual by the
help of skincontact. The second sensor is the BPMsensor which will measure the beats perminute of the individual anddisplay
the output on the LCD. These two sensors will be used to assemble the lie detector. After the assembling we will initially
gather data from a group of volunteers. We will also design a Simulink model and a Simulink program so that we can serially
communicate to the lie detector with the MATLAB and then digitally acquire the Real-time readings on the MATLAB
Simulink model. Thehardware reading can be seen on theliquidcrystal display (LCD). We took both hardware and software
readings for the purpose of calibration of the device. So, after getting both the readings we can calibrate the device. All the
measurement such as temperature and blood pressure are compared to the normal reading of any individual. The lm35 is
mounted on a wrist band and then placed on the wrist of the individual. The BPM is taken using an infrared sensor is
mounted on the fingertip. The reading can also be observed at the serial window of the Arduino ide (integrated
development environment).
2. LITRATURE SURVEY
Research [1] has been conducted where a lie detector was made using GSR and Heart rate sensor and LAB VIEW from NI but
the GSR output was quite unstable since sweating vary drastically from person to person so it can’t be a parameter for
comparisons.
More research [2] has been conducted on the serial communication between Arduino UNO and MATLAB Simulink about
its accuracy and dependence.
More research [3] has been conducted with reference of the text book “The Polygraph and Lie Detection “by Mark Moore
that how does lie detection process works.
Next reserch [4] has been conducted a lie detector was made using Arduino and TMP36 temperature sensor the project
was working but we used LM35 since The LM35 boasts a slightly higher temperate range at -55°C to 150°C versus the -
40°C to 125°C range of the TMP36.
© 2020, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 64
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 07 Issue: 03 | Mar 2020 www.irjet.net
p-ISSN: 2395-0072
3. SYSTEM DESIGN
LM 35
LM35 is a temperature sensor. The output voltage is directly proportional to temperature and for every 10mv there is
increase in 1-degree celcius. It does not require any external calibration; it is calibrated to degree celcius. It is a linear
sensor and operates from 4v to 30 v.
The BPM sensor senses the heart beats per minute, this is done using optical method. The sensor is placed at the fingertip
since the rate of change in vascular level of blood is high at the finger tips. When the density of blood at fingertip changes,
the infrared light catches the rate of change in blood density and is amplified by an amplifier circuit and then passed on to
the analog pins of the Arduino
© 2020, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 65
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 07 Issue: 03 | Mar 2020 www.irjet.net
p-ISSN: 2395-0072
Arduino
Arduino is a microcontroller development board containing ATMEGA328 microcontroller. It consists of 14 digital pins (d0 –
d13) and 6 analog pins (a0 – a5). Programing in Arduino is done in embedded c language. It is a single board microcontroller
and has Static Random-Access Memory (SRAM) memory. It has storage of flash or EEPROM.
LCD
LCD stands for liquid crystal display. It is an output device used to display output. They are commonly used in LED TV, smart
phone and instrument panels. It has a total of 16 pins, here we will interface the LCD in 4 – bit mode. It has a register select
pin which when low the input is command and when high the input is data. The read and write pin when low write to LCD
and when high read from LCD. The last configuration pin is enabling pin which should come from high too low for writing
to LCD.
Simulink
Simulink is a MATLAB simulation tool developed by math work. We would need the Arduino package, Simulink package and
legacy package to interface the Arduino using MATLAB(R2018). The communication between MATLAB and Simulink is done
withthe help of serial communication. The serial communication port is used to communicate Arduino and MATLAB.
Arduino IDE
It is basically an open source software used to program Arduino microcontroller board. The programming is done in
embedded c language. The IDE contains serial window and serial monitor to see the Real-time output of the system.
4. IMPLEMENTATION
The implementation of our project is done using Arduino UNO (ATMEGA 328) microcontroller development board. The
LM35 temperature sensor is in contact with the skin of the individual and when the temperature rises, the LM35 module
gives output in the form of output analog voltage. Similarly, when the BPM sensor is connected to the fingertip of the
individual and it has two sides, a side for LED and other for amplifying circuitries detects the BPM and again gives output in
analog form. The output of both sensors is fed to the analog pins of Arduino Uno and the digital pins of the Arduino are
connected to LCD. The ADC (analog to digital converter) in Arduino convert analog signal to digital formand then display it
on LCD. Both temperature and BPM has a fixed threshold and whenever temperature or BPM crosses the threshold the
buzzer beeps and LED blinks. Now coming to the implementation of software parts of the project. The Arduino and Simulink
are connected throughserialcommunicationport. On the Simulink model the real time reading is taken from Arduino through
serial communication port at 9600 baud rates. The output of Simulink model is plotted on graph simultaneously for both the
sensors.
© 2020, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 66
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 07 Issue: 03 | Mar 2020 www.irjet.net
p-ISSN: 2395-0072
The project when implemented produces various outputs using various inputs from the sensors which are shown in the
table 1.
INPUT OUTPUT
Temperature Sensor It detects the change in temperature in the
individual’s bodyand gives the output in the
form of analog voltage.
BPM Sensor It detects the change in BPM in the
individual’s body and gives the output in the
form of analog voltage to the radio.
Table no: 1
© 2020, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 67
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 07 Issue: 03 | Mar 2020 www.irjet.net
p-ISSN: 2395-0072
© 2020, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 68
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 07 Issue: 03 | Mar 2020 www.irjet.net
p-ISSN: 2395-0072
© 2020, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 69
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 07 Issue: 03 | Mar 2020 www.irjet.net
p-ISSN: 2395-0072
ACKNOWLEDGEMENT
We would like to extend our gratitude towards all our faculty members especially our project guide Prof. Prasad D. Kadam
for their continues support and guidance.
REFERENCES
[1] Akarsh Sinha, M. Pavithra, K.R. Sutharshan, “Arduino based pulse width modulated output voltage control of a dc- dc boost
converter using PID strategy,” unpublished.
[2] Calin Corciova, Radu Ciorap, Dan Zaharia and Daniela Matei, 2011. On Using Impedance Plethysmography for Estimation
of Blood Flow, IEEE.
[3] Edward Sazonov, Timothy Haskew, Andrew Price, Bryant Grace and Stephanie Schuckers, 2012.
[4] Electronic and Electromechanical Tester of Physiological Sensors, Sixth International Conference on Sensing Technology
(ICST).
[5] Introducing easy pulse: A diy photoplethysmographic sensor for measuring heart rate. (2012, September 12). Retrieved
from http://embedded- lab.com/blog/?p=5508
[6] Geddes, L.A., 2002. Purdue University, The truth shall set you free: Development of the Polygrapgh, IEEE Engineering In
Medicineand Biology.
[7] Hashem, M.M.A., Rushdi Shams, Md. Abdul Kader and Md. Abu Sayed, 2010. Design and Development of a Heart Rate
Measuring Device using Fingertip, International Conference onComputerand CommunicationEngineering(ICCCE2010), 11-13
May 2010, Kuala Lumpur,Malaysia.
[10] https://en.wikipedia.org/wiki/Arduino_Uno
BIOGRAPHIES
PHOTOS BIOGRAPHY
Mr. Prasad D. Kadam is Assistant Professor in
Department of Electronics and Telecommunication at
B.V(D.U)C.O.E. Pune. He completed his M.Tech in
Electronics. He was the project guide throughout the
project.
© 2020, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 70
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 07 Issue: 03 | Mar 2020 www.irjet.net
p-ISSN: 2395-0072
© 2020, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 71
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 07 Issue: 03 | Mar 2020 www.irjet.net
p-ISSN: 2395-0072
© 2020, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 72
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 07 Issue: 03 | Mar 2020 www.irjet.net
p-ISSN: 2395-0072
© 2020, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 73
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 07 Issue: 03 | Mar 2020 www.irjet.net
p-ISSN: 2395-0072
© 2020, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 74
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 07 Issue: 03 | Mar 2020 www.irjet.net
p-ISSN: 2395-0072
© 2020, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 75