Professional Documents
Culture Documents
21bkt0152 Internship Report
21bkt0152 Internship Report
APPLICATION
An Industrial Internship Report
submitted by
B. TECH
in
1|Page
DECLARATION BY THE CANDIDATE
I hereby declare that the Industrial Internship report entitled “AUDIO PERCEPTION
AND ANALYSIS FOR ROBOTIC APPLICATION” submitted by me to Vellore
Institute of Technology, Vellore in partial fulfilment of the requirement for the award of
the degree of B.tech in Computer Science And Engineering With Specialization
Block-Chain Technology is a record of bonafide industrial training undertaken by me
under the supervision of Mrs. Bani Hazra, R&DE(ENGRS), DRDO. I further declare
that the work reported in this report has not been submitted and will not be submitted,
either in part or in full, for the award of any other degree or diploma in this institute or
any other institute or university.
2|Page
ACKNOWLEDGEMENT
Project Guide: We express our deep appreciation to MRS. BANI HAZRA, SCIENTIST G for
providing valuable guidance, insightful feedback, and continuous support throughout the internship.
Your mentorship was instrumental in shaping our internship.
Organization: We sincerely thank R&DE (ENGRS), DRDO, Pune, for the internship opportunity and
support provided during our project. Thank you for this enriching experience and the chance to
contribute to meaningful projects aligned with our academic and professional goals.
Institution/University: We are grateful to VIT for providing us with the resources, infrastructure, and
access to research materials that enabled us to carry out this internship.
Family and Friends: We would like to thank our family and friends for their unwavering support and
encouragement throughout the internship. Your understanding and patience were crucial during this
time.
Other Contributors: We extend our thanks to anyone not mentioned above who provided assistance,
feedback, or encouragement at any stage of our internship.
This internship would not have been possible without the collective effort and support of our guide
MRS. BANI HAZRA, SCIENTIST G and organization. I am truly grateful for your guidance.
3|Page
4|Page
5|Page
6|Page
TABLE OF CONTENTS
CONTENTS PAGE NO.
Declaration 3
Acknowledgement 4
Bonafide 5
Offer letter 6
Certificate 7
List of Figures 10
List of Tables 10
List of Abbreviations 11
Chapter 1 - Introduction
1.1 Learning objectives/Internship objectives 12
1.2 About the organization 13
1.3 Company Domains/Departments 14
1.4 My Department 15
Chapter 2 – Methodology
2.1 Ongoing Work Methodology 17
2.2 Challenges 19
Chapter 3 – Overview of the Internship
3.1 Persons interacted with 20
3.2 Machinery/Equipment’s Observed 21
3.3 Learnings 23
7|Page
4.7 Observations 34
Chapter 7 – Analysis
7.1 Amplitude and Power Variation 51
7.2 Triangulation Using Two Arrays 51
7.3 Adding Noise and MVDR Algorithm
51
8|Page
Chapter 8 – Software Learnt-MATLAB 52
Chapter 9- Conclusion
9.1Work Experience 53
9.2Comments for Improvement 53
9|Page
LIST OF FIGURES
LIST OF TABLES
10 | P a g e
LIST OF ABBREVATIONS
11 | P a g e
CHAPTER 1- INTRODUCTION
LEARNING OBJECTIVES
In this project we have used MATLAB to Simulate and study various concepts related to
Direction of arrival and Sound Source Localization of an Omnidirectional Microphone
arrayarranged in a Uniform Linear Array. Throughout this project, we've acquired the
followingskills and knowledge:
12 | P a g e
ABOUT THE ORGANIZATION
13 | P a g e
COMPANY DEPARTMENTS
DRDO is the R&D wing of Ministry of Defence, Govt of India, with a vision to empower India
with cutting-edge defence technologies and a mission to achieve self-reliance in critical
defence technologies and systems, while equipping our armed forces with state-of-the-art
weapon systems and equipment in accordance with requirements laid down by the three
Services. DRDO is a network of around 41 laboratories and 05 DRDO Young Scientist
Laboratories (DYSLs) which are deeply engaged in developing defence technologies covering
various disciplines, like aeronautics, armaments, electronics, combat vehicles, engineering
systems, instrumentation, missiles, advanced computing and simulation, special materials,
naval systems, life sciences, training, information systems and agriculture. Some of the
laboratories are:
1. Research & Development Establishment (Engrs) [R&D (Engrs)], Pune
2.DRDO Research & Innovation Centre (RIC), Chennai
3. Defence Metallurgical Research Laboratory (DMRL), Hyderabad
4. Defence Research & Development Establishment (DRDE), Gwalior
5. Defence Institute of Physiology & Allied Science (DIPAS), Delhi
14 | P a g e
MY DEPARTMENT
I got an opportunity to work at the Department of Robotics and Unmanned Systems, which
is a department under R&DE(Engrs)). Department of Robotics and Unmanned Systems uses
the following technology: Platform, manipulators, sensor integration, communication System.
Some of their products are:
REMOTELY OPERATED VEHICLE (ROV) DAKSH: The ROV is versatile equipment
for improvised explosive device identification and handling. It can also be utilised to survey
and monitor nuclear and chemical contamination levels. The ROV has stair climbing
capabilities and can operate continuously for 3 hours. The ROV can be controlled either by
fibre optic communication over 100m distance or can be controlled by wireless communication
over 500m line of sight.
UNMANNED AERIAL VEHICLE (UAV) ‘NETRA’: This mini UAV has been developed
for surveillance applications. It is battery operated, silent and is equipped with a Day Camera
with zoom for detailed surveillance. It also has an optional Thermal Imager for night
operations. IT A number of UAV systems have been supplied to Paramilitary Forces and Police
and are currently in operation.
Confined Space Remotely Operated Vehicle (CSROV): DAKSH MINI is a battery operated
tracked vehicle with multiple degrees of freedom manipulator arm (telescopic arm) weighing
not more than 100 kg. DAKSH MINI is capable of extracting suspected objects with telescopic
manipulator arm.
Surveillance Remotely Operated Vehicle (SROV) (on the verge of induction): The
DAKSH-SCOUT is remotely controlled from a portable Operator Console using RF. It has
adequate number of cameras suitably mounted on the platform for real time viewing in front,
at the rear and on either side.
Unexploded Ordnance Handling Robot (UXOR): The UXO handling Robot (UXOR) is
capable to handle, diffuse and detect Unexploded Ordnance (UXO) i.e. Bombs and Missiles up
to 1000 kg remotely from of 1km LOS. UXOR is based on a IC Engine operated, tracked Skid
Steer Loader platform, good cross country mobility with six hours of endurance. UXOR is
capable to diffuse Unexploded Ordnance (UXO) i.e. Bombs and Missiles with low order
detonation. UXOR is having a multiple DOF manipulator arm with cutting mechanism to
defuse the UXO.
15 | P a g e
Figure 1: Robots developed by DRDO
16 | P a g e
CHAPTER 2- METHODOLOGY
The department works closely with the Indian defense forces to understand their specific
requirements for robotic applications. This could involve analyzing combat scenarios,
identifying areas where robots could enhance soldier safety and effectiveness, and studying the
limitations of existing equipment, including challenges in audio perception and sound
localization.
Leveraging their established technology base, the department explores existing and emerging
technologies in areas like robotics, artificial intelligence, sensors (including microphones), and
materials. A specific focus might be on overcoming limitations in audio perception for robots,
such as sound source localization in noisy environments. This might involve collaborating with
universities, research institutions, or private companies with relevant expertise.
Based on research findings and identified needs, engineers translate concepts into technical
designs. This would involve computer-aided design (CAD), simulations, and prototyping using
their expertise in areas like mechanical engineering, control systems, software development,
and potentially biomimetic design for audio perception systems inspired by natural systems.
Developed robot prototypes undergo rigorous testing in simulated environments that replicate
real-world military scenarios. This ensures the robots meet performance requirements, are
durable, and function effectively in harsh conditions. Soldier feedback is likely incorporated
during this stage, including evaluation of the robot's ability to perceive and respond to audio
cues.
Based on testing results, designs are refined to address shortcomings, including limitations in
audio perception. Additionally, the department likely focuses on ensuring seamless integration
of their robots with existing military equipment and communication systems, including
incorporating audio data into situational awareness for the robots.
17 | P a g e
6. Production and Deployment:
Once finalized, the R&D phase transitions to production, potentially involving collaboration
with private or public sector manufacturers. The department might also be involved in training
soldiers on operating and maintaining the robots, including how to interpret the audio
information the robots collect.
7. Continuous Improvement:
18 | P a g e
CHALLENGES TO THE DEPARMENT
2.Range and Endurance Limitations: Extending the operational range and endurance of
robots would allow for wider deployment and longer mission times.
5.Cost vs Capability: Striking a balance between the functionalities needed and the
affordability of developing and deploying robots is crucial.
6.Keeping Pace with Evolving Threats: The department needs to stay ahead of emerging
threats by developing robots for new applications.
7.Integration with Existing Systems: Seamless integration of robots with existing military
communication and command-and-control systems is an ongoing effort.
8.Audio Perception and Sound Localization: Overcoming limitations in audio perception for
robots in noisy environments remains a significant challenge. This includes accurately
identifying sound sources, understanding speech commands, and filtering out background
noise.
19 | P a g e
CHAPTER 3- INTERNSHIP OVERVIEW
Dr. Makarand Ganesh Joshi, Scientist ‘H’ and Director, R&DE(Engrs): I had the
privilege of meeting Dr. Joshi, who provided insightful guidance on the overall mission and
vision of R&DE(Engrs).This interaction provided a broader perspective on the critical role the
establishment plays in developing innovative engineering solutions for the Indian defense
forces.
Mrs. Bani Hazra, Scientist ‘G’ and Head, Department of Robotics, R&DE(Engrs): I am
particularly grateful for the continuous guidance and support I received from Mrs. Hazra
throughout my internship. As my project supervisor, her expertise in robotics was instrumental
in shaping my research and development. Through her mentorship, I gained valuable insights
into the concepts of audio perception and sound localization in Robotics.
20 | P a g e
MACHINERY/EQUIPMENT’S OBSERVED
1.DAKSH: This versatile ROV is designed for critical tasks like identifying and handling
improvised explosive devices (IEDs). It can also assess nuclear and chemical contamination
levels and even climb stairs!
2.DAKSH MINI (CSROV): This compact tracked vehicle is ideal for confined spaces.
Equipped with a multi-degree-of-freedom manipulator arm (think telescopic arm), it can
extract suspicious objects.
3.DAKSH-SCOUT (SROV): This surveillance ROV is nearing deployment. Controlled
remotely from a portable console, it features multiple cameras for real-time viewing in all
directions.
4.Unmanned Aerial Vehicle (UAV): The NETRA, a mini UAV, impressed me with its silent
operation and long battery life. Equipped with a day camera with zoom and an optional thermal
imager, it's perfect for discreet surveillance missions.
This impressive machine is designed for the safe handling and disposal of unexploded ordnance
(UXOs) like bombs and missiles. UXOR boasts a tracked platform for excellent off-road
mobility, a manipulator arm with cutting mechanisms, and the ability to operate remotely over
a distance of 1 km.
Beyond the Robotics Department, I also had the opportunity to learn about some of the
broader capabilities of R&D(Engrs):
1.MEMS Fabrication Facility: This state-of-the-art facility allows for the design and creation
of micro-electro-mechanical systems (MEMS), which have a wide range of applications.
2.Kinematic & Dynamic Test Facility: This impressive simulator allows for testing
equipment under various simulated conditions, helping ensure their functionality in different
environments.
21 | P a g e
This list represents just a portion of the impressive machinery and equipment I encountered at
R&D(Engrs). The experience provided valuable insight into the world of defense robotics and
engineering innovation.
22 | P a g e
LEARNING
My internship at the R&D(Engrs) Robotics Department was an exciting journey into the world
of robotics engineering. It provided a fantastic opportunity to not only develop new skills but
also solidify my foundational knowledge in key areas.
Coming into the internship, I had limited experience with MATLAB, a powerful software
program widely used in engineering. To ensure I had the necessary tools for success, I began
by diligently working through introductory courses like "MATLAB onramp" and "Simulink
onramp." These courses provided a solid understanding of the program's basic functionalities
and its capabilities for simulation. Following that, I delved deeper into "Signal Processing in
MATLAB," which equipped me with the essential knowledge to manipulate and analyze
signals, a crucial aspect of my project.
With this strong foundation in place, I was prepared to tackle the project's challenges. The
internship involved using MATLAB to simulate and study concepts related to sound source
localization using microphone arrays. This required me to apply advanced techniques like:
Audio Perception & Sound Localization: I learned how to leverage MATLAB to simulate
real-world scenarios and analyze how sound travels and interacts with its environment.
23 | P a g e
CHAPTER 4- DETERMINATION OF DOA OF A ULA
In diverse fields such as robotics, audio signal processing, and radar systems, determining the
origins of sound signals holds fundamental significance. At the core of this task lies the crucial
task of estimating the Direction of Arrival (DOA) of a sound signal, a process vital for various
applications and analyzes the variations in amplitude, power, and estimated DOA. The
methodology employed centers around the utilization of a Uniform Linear Array (ULA)
equipped with four microphone elements. Key parameters driving this estimation include the
speed of sound, the frequency of the emitted signal, and the spatial arrangement of the
microphone array. The objective is to achieve an estimation of the direction from which the
sound signal emanates. This endeavor contributes to the foundational understanding of signal
processing but also holds practical implications in refining audio signal analysis.
24 | P a g e
4.3 Algorithms for DOA Estimation:
In the realm of Direction of Arrival (DOA) estimation, several algorithms play a pivotal role
in accurately determining the origin of incoming signals. One such algorithm, the Minimum
Variance Distortionless Response (MVDR) algorithm, focuses on minimizing the output power
of an array while maintaining unity gain for the desired signal direction. This makes MVDR
particularly effective in scenarios where interference or noise emanates from various
directions, providing a robust solution for DOA estimation.
Another notable algorithm in this domain is the Multiple Signal Classification (MUSIC)
algorithm. Unlike MVDR, MUSIC aims to identify the angles corresponding to incoming
signals and separate them from noise and interference. This algorithm is particularly useful in
scenarios with multiple signals, showcasing robustness in the presence of noise.
These algorithms, including MVDR, MUSIC, and ESPRIT, represent a subset of the diverse
array of techniques employed in array signal processing for DOA estimation. The choice
among these algorithms depends on the specific characteristics of the signal and the unique
requirements of the application at hand. The field continues to evolve with ongoing research,
offering a rich tapestry of methodologies to address the challenges associated with accurately
determining the direction of incoming signals.
In the provided MATLAB solution, the integration of three prominent algorithms - Minimum
Variance Distortionless Response (MVDR), Multiple Signal Classification (MUSIC), and
Estimation of Signal Parameters via Rotational Invariance Techniques (ESPRIT) - offers a
comprehensive approach to tackle the DOA estimation challenge. This section will outline the
functionality of each algorithm and shed light on why MVDR is a key component in this
particular problem.
The MVDR algorithm is employed as a foundational method for DOA estimation in the
provided solution. This choice is rooted in the algorithm's ability to provide optimal
performance, particularly in scenarios where the incoming signal is contaminated by
interference or noise from various directions. Here are the key aspects of MVDR that make it
a suitable choice:
25 | P a g e
Minimum Variance Objective: MVDR minimizes the output power of the microphone array
while maintaining unity gain for the desired signal direction. This makes it robust in the
presence of interference or noise from other directions.
Covariance Matrix Utilization: MVDR explicitly considers the covariance matrix of the
received signal. By capturing the statistical relationships between different microphone
elements, MVDR provides a robust and optimal solution for DOA estimation.
Spectral Analysis: MUSIC operates in the spectral domain, allowing it to distinguish between
closely spaced sources with high resolution.
26 | P a g e
4.4.3 ESPRIT Algorithm: Exploiting Rotational Invariance
The provided MATLAB solution tackles the challenge of estimating the direction of arrival
(DOA) of a sound signal within an acoustic environment using a Uniform Linear Array (ULA)
comprising N microphone elements. This problem is fundamental in various applications,
including audio signal processing, sonar systems, and radar arrays, where determining the
origin of a signal is crucial for accurate analysis and interpretation.
27 | P a g e
To elaborate further, the code leverages parameters such as the speed of sound in the air, the
frequency of the emitted sound signal, and the spatial configuration of the microphone array.
The array's geometry is defined by the positions of its elements in a two-dimensional space,
and the inter-element spacing is calculated. Additionally, the position of the sound source is
specified within the environment.
The ULA response matrix is then generated, encapsulating the system's response to incoming
signals from various angles. The received signal at each microphone is computed by taking
into account the distances between the sound source and each microphone element. This
emulates the real-world scenario of sound waves reaching the microphones with distinct delays
based on their spatial positions.
The core of the solution lies in the implementation of the Minimum Variance Distortion less
Response (MVDR) algorithm for DOA estimation. This algorithm involves the calculation of
the covariance matrix of the received signals, an essential step in characterizing the statistical
relationships between the different microphones. To ensure the matrix's invertibility, a
regularization term is introduced, and the regularized inverse of the covariance matrix is
computed. The MVDR spectrum is then calculated for a range of angles, and the angle
corresponding to the maximum MVDR power is identified as the estimated DOA. The solution
systematically investigates the dependencies among amplitude, power, and estimated Direction
of Arrival (DOA), providing a comprehensive analysis of the algorithm's behavior under
diverse signal conditions.
The Minimum Variance Distortionless Response (MVDR) method employed in the MATLAB
code is a sophisticated signal processing technique widely used for Direction of Arrival (DOA)
estimation in array signal processing applications. The MVDR algorithm aims to minimize the
output power of an array while maintaining unity gain for the desired signal direction, making
it particularly effective in scenarios where there may be interference or noise from other
directions.
28 | P a g e
b) Regularization:
• The covariance matrix is often ill-conditioned, especially when the number of
snapshots (observations) is limited. To address this, a regularization term (epsilon)
is introduced to ensure the matrix is invertible. This regularization is crucial for
stability in the subsequent
computations.
c) Regularized Inverse (Rxx_reg_inv):
• The next step is to calculate the regularized inverse of the covariance matrix. This
involves taking the inverse of the sum of the covariance matrix and the
regularization term. The resulting matrix is used in the
computation of the MVDR spectrum.
d) MVDR Spectrum Calculation:
• The heart of the MVDR algorithm lies in the computation of the MVDR spectrum
for a range of angles. For each angle, a steering vector is constructed, representing
the array's response to a signal arriving from that direction. The MVDR spectrum is
then calculated using this steering
vector and the regularized inverse of the covariance matrix.
e) Direction of Arrival Estimation:
• The angle with the maximum MVDR power in the spectrum is identified
as the estimated direction of arrival. This corresponds to the direction from which
the desired signal is arriving at the array.
f) Analysis with Amplitude and Power
• The solution analyzes the variations between amplitude, power, and
estimated DOA and the results are plotted through tables for the variations
are included
The MVDR method excels in scenarios where the incoming signal may be contaminated by
interference or noise from various directions. By explicitly considering the covariance matrix
of the received signal, the MVDR algorithm provides a robust and optimal solution for DOA
estimation. It is widely utilized in fields such as radar systems, sonar arrays, and microphone
array signal processing in acoustics. Understanding the intricacies of the MVDR method
enhances the appreciation of the code's functionality and its broader implications in real-world
signal processing applications with the study of dependencies of amplitude, power, and
estimated Direction of Arrival (DOA). The code generates two plots to visualize the MVDR
power spectrum in polar coordinates and MVDR power spectrum vs angle.
29 | P a g e
MATLAB SOLUTION ENVIORNMENT:
This MATLAB code simulates a microphone array system to estimate the direction of arrival
(DOA) of a sound source. The system parameters include a speed of sound in air of 343 m/s, a
sound signal frequency of 1000 Hz, and a Uniform Linear Array (ULA) with 4 microphone
elements positioned at [0, 0], [300, 100], [600, 200], and [900, 300] centimeters. The array's
element spacing is determined based on these positions. The sound source is located at [4000,
10000] centimeters. The simulation explores variations in signal amplitude (30 volts) and
employs the Minimum Variance Distortionless Response (MVDR) algorithm to estimate the
DOA. The code computes received signals at each microphone, calculates the MVDR
spectrum, and determines the DOA. Results are presented through plots, including the MVDR
power spectrum versus angle and a polar plot highlighting the estimated DOA. The code also
displays information on the signal amplitude, power, and estimated DOA, providing insights
into the system's performance under different signal conditions.
30 | P a g e
epsilon = 1e-4; % Regularization term
Rxx_reg_inv = inv(Rxx + epsilon * eye(size(Rxx)));
% Regularized inverse of the covariance matrix
MVDR_spectrum = zeros(size(angles));
for i = 1:length(angles)
steering_vector = exp(1i * 2 * pi * frequency * elementSpacing /
speedOfSound * (0:numElements-1).' * sind(angles(i)));
MVDR_spectrum(i) = 1 / (steering_vector' * Rxx_reg_inv *
steering_vector);
end
% Calculate power
power = signalAmplitude^2;
hold on;
subplot(2,1,2);
polarplot(deg2rad(angles), abs(MVDR_spectrum), 'LineWidth', 2);
% Use abs() to plot the magnitude
title('MVDR Power Spectrum in Polar Coordinates');
31 | P a g e
hold on;
polarplot(deg2rad(estimated_DOA), max(abs(MVDR_spectrum)), 'ro',
'MarkerSize', 10, 'LineWidth', 2);
hold off;
OUTPUT:
32 | P a g e
Figure 4.4- Results of DOA estimation using MVDR Algorithm
33 | P a g e
4.7 Observations
From the above results we can conclude that, on changing the amplitude values the Power
varies, but there is almost a negligible change in the Direction of Arrival (DOA).
It is also observed that on changing the Position of the Microphone or the Sound Source, there
is a change in the Direction of Arrival.
34 | P a g e
CHAPTER 5- TRIANGULATION & DETERMINATION OF
SOUND SOURCE LOCATION
The fundamental problem addressed in this task is the determination of the spatial position
of a sound source emitting a wideband signal within an acoustic environment. Traditional
methods often involve single-array DOA estimation, but this task innovatively combines
two ULAs to enhance accuracy. The use of two arrays adds complexity but significantly
improves the robustness of the localization process. Additionally, the impact of noise on
Direction of arrival before and after the noise is added is also studied.
The applications of sound source localization are diverse, with critical implications in
various industries. In robotics, knowing the location of a sound-emitting object enhances
the robot's ability to interact with its environment. In radar systems and audio signal
processing, accurate localization is vital for nuanced analysis and interpretation of
incoming signals.
35 | P a g e
5.3 Understanding GCC-PHAT Algorithm:
The Generalized Cross-Correlation with Phase Transformation (GCC-PHAT) algorithm
plays a crucial role in the project. This algorithm is specifically chosen for its effectiveness
in handling wideband signals. Unlike traditional DOA estimation algorithms based on phase
differences, GCC-PHAT utilizes time-of-arrival differences, making it well-suited for the
complexities associated with wideband signals. This algorithm is particularly relevant for
scenarios where conventional methods might falter.
b. Waveform Generation:
A crucial step involves generating a wideband signal using a linear frequency
modulated (LFM) waveform.
Parameters such as carrier frequency, propagation speed, pulse characteristics, and
bandwidth are considered to accurately model the emitted signal.
The choice of a wideband signal necessitates the use of the GCC-PHAT algorithm for
DOA estimation, as traditional methods relying on phase differences are not suitable for
wideband signals.
36 | P a g e
GCC-PHAT is chosen due to its effectiveness in handling wideband signals by focusing
on time-of-arrival differences.
The algorithm calculates the cross-correlation of the received signals from each ULA,
considering phase transformations that enhance accuracy in DOA estimates.
e. Triangulation:
f. Results Visualization:
The project concludes with a 3D scatter plot that visually compares the estimated source
position with the true source position.
The plot provides a tangible representation of the accuracy and reliability of the
triangulation method.
Visualization is crucial for understanding the effectiveness of the localization approach
and gaining insights into any potential deviations between the estimated and true
positions.
The output consists of the values of the estimated DOA/source position before and after
addition of noise.
37 | P a g e
propagation, adding noise with a specified signal-to-noise ratio. The direction of arrival
(DOA) is estimated using the Generalized Cross-Correlation (GCC) method for both
noiseless and noisy scenarios. The code then calculates and visualizes the estimated 3D
position of the source, comparing it with the true position. This simulation allows for
evaluating the accuracy of the sound source localization system. The code provides
insights into the system's performance under various conditions, assessing its ability to
accurately locate a sound source in a 3D space.
KEY PARAMETERS:
Number of microphones: 4 per array Distance between arrays: 50 meters Source
position: [30, 100, 0] meters
Waveform parameters: Carrier frequency (300 kHz), pulse repetition frequency, and
bandwidth
Signal-to-noise ratio: 10 dB
rxpos1 = [0;0;0];
rxvel1 = [0;0;0];
rxax1 = azelaxes(90,0);
rxpos2 = [L;0;0];
rxvel2 = [0;0;0]; rxax2 = rxax1;
srcpos = [30;100;0];
srcvel = [0;0;0];
srcax = azelaxes(-90,0);
srcULA = phased.OmnidirectionalMicrophoneElement;
38 | P a g e
nfft = 128;
radiator = phased.WidebandRadiator('Sensor',srcULA,...
'PropagationSpeed',c,'SampleRate',fs,... 'CarrierFrequency',fc,'NumSubbands',nfft);
collector1 = phased.WidebandCollector('Sensor',rxULA,...
'PropagationSpeed',c,'SampleRate',fs,... 'CarrierFrequency',fc,'NumSubbands',nfft);
collector2 = phased.WidebandCollector('Sensor',rxULA,...
'PropagationSpeed',c,'SampleRate',fs,... 'CarrierFrequency',fc,'NumSubbands',nfft);
channel1 = phased.WidebandFreeSpace('PropagationSpeed',c,...
'SampleRate',fs,'OperatingFrequency',fc,'NumSubbands',nfft);
channel2 = phased.WidebandFreeSpace('PropagationSpeed',c,...
'SampleRate',fs,'OperatingFrequency',fc,'NumSubbands',nfft);
[~,ang1t] = rangeangle(rxpos1,srcpos,srcax);
[~,ang2t] = rangeangle(rxpos2,srcpos,srcax);
[~,ang1r] = rangeangle(srcpos,rxpos1,rxax1);
[~,ang2r] = rangeangle(srcpos,rxpos2,rxax2);
39 | P a g e
% Display the DOA for both arrays disp('True DOA for Array 1:'); disp(ang1t);
disp('True DOA for Array 2:'); disp(ang2t);
disp('Estimated DOA for Array 1 (Without Noise):'); disp(angest1);
disp('Estimated DOA for Array 2 (Without Noise):'); disp(angest2);
40 | P a g e
OUTPUT:
41 | P a g e
CHAPTER 6- IMPACT OF NOISE ON DOA
The problem addressed in this chapter is adding gaussian noise to the signal in the chapter
1 and determining the DOA after addition of noise. A detail study of noise addition and
the effects after addition of noise on the DOA has been made. Also the power and
Amplitude values are calculated before and after addition of noise
42 | P a g e
algorithm is known for its efficacy in extracting signals of interest in the presence of
interference and noise, making it a valuable tool for DOA estimation in challenging
environments.
The clean received signal is generated by considering the positions of the microphone
array elements and the known location of the sound source. The MVDR algorithm,
implemented with regularization to ensure stability, is then applied to estimate the DOA.
The results are visualized through MVDR power spectra plots, providing a clear depiction
of the directional sensitivity of the microphone array.
The code introduces noise to the received signal. This is a crucial consideration as real-
world signals are often contaminated by various forms of interference. The Signal- to-
Noise Ratio (SNR) is controlled as a parameter, allowing for the systematic investigation
of how noise affects the accuracy of DOA estimation. Gaussian noise is added to the
signal, and the MVDR algorithm is reapplied to estimate the DOA in the presence of this
noise. This step provides valuable insights into the algorithm's robustness and
performance in practical, noisy conditions. Next step analyzes and compares power and
amplitude before and after the addition of noise.
43 | P a g e
highlighting the algorithm's performance under noisy conditions. Quantitative DOA
comparisons are provided for both scenarios. Additional plots illustrate power and
amplitude changes due to noise. These visualizations offer a concise assessment of the
MVDR algorithm's reliability and directional accuracy in the presence of noise.
44 | P a g e
6.10 MATLAB CODE:
% Parameters
speedOfSound = 343; % Speed of sound in air in m/s
frequency = 1000; % Frequency of the sound signal in Hz
numElements = 4; % Number of microphone elements in the ULA
for i = 1:length(angles)
steering_vector = exp(1i * 2 * pi * frequency * elementSpacing / speedOfSound *
(0:numElements-1).' * sind(angles(i)));
45 | P a g e
MVDR_spectrum_without_noise(i) = 1 / (steering_vector' * Rxx_reg_inv *
steering_vector);
end
% Find the angle with the maximum MVDR power without noise [~, idx] =
max(MVDR_spectrum_without_noise); estimated_DOA_without_noise = angles(idx);
power_without_noise = signalAmplitude^2;
% Calculate power with noise
power_with_noise = mean(abs(receivedSignalWithNoise).^2);
hold on;
plot(estimated_DOA_without_noise, max(MVDR_spectrum_without_noise), 'ro',
46 | P a g e
'MarkerSize', 10, 'LineWidth', 2);
hold off;
47 | P a g e
OUTPUT:
48 | P a g e
49 | P a g e
Figure 6.4- Noise Addition Effect on DOA Graphs
6.11 Observations
From the above results we can conclude that, on changing the amplitude, there is almost
a negligible change in the Direction of Arrival (DOA) with and without noise.
But on addition of noise a change in the Signal Power is observed.
50 | P a g e
CHAPTER 7- ANALYSIS
51 | P a g e
CHAPTER 8- SOFTWARE LEARNT
My internship was a deep dive into MATLAB. I began with foundational courses: MATLAB
Onramp for workspace navigation, Simulink Onramp for simulations, and Signal and image
processing courses to analyze data. I also explored Deep Learning concepts, giving me a
glimpse into the future of computational techniques.
My project leveraged MATLAB's extensive toolbox library. The Phased Array System
Toolbox became essential for simulating sound wave propagation, considering factors like
obstacles and microphone geometry. The Signal Processing Toolbox provided functionalities
for core tasks and direction of arrival (DOA) estimation, a crucial capability for applications
like robot navigation.
Beyond toolboxes, I explored algorithms like MVDR, which excelled at extracting signals for
DOA estimation in noisy environments. However, for my project's wideband signals, the
GCC-PHAT algorithm, focusing on time-of-arrival differences, proved more suitable.
By the end, MATLAB wasn't just software; it was my engineering toolkit. I built a strong
foundation in core functionalities, explored advanced toolboxes and algorithms, and gained
valuable skills in signal processing, sound wave analysis, and DOA estimation. This skillset
will undoubtedly benefit my future endeavors in various engineering fields.
52 | P a g e
CHAPTER 9- CONCLUSION
My internship focused on utilizing MATLAB for sound source localization within a defense
organization. This experience not only bolstered my technical skills but also refined important
behavioral skills crucial in professional settings.
Technical Skills:
Behavioral Skills:
✓ Discipline: The organization's policy prohibiting mobile phone usage within the
premises fostered a culture of discipline and focused work ethic. I learned to manage
distractions and prioritize tasks effectively.
53 | P a g e
✓ Collaboration: While I had interactions with my supervisor, I would like to explore
opportunities for more collaborative work in future projects. This would allow me to
learn from the expertise of others and refine my teamwork skills.
The project systematically investigated three key aspects of sound source localization. Initially,
it examined amplitude and power variations in relation to estimated DOA, shedding light on
the complexities influenced by array geometry and signal field characteristics. The
triangulation task showcased the innovative use of two ULAs, emphasizing the potential for
improved accuracy in spatial localization. The final task delved into the practical challenges
posed by noise, introducing Gaussian noise and evaluating its impact on the MVDR algorithm.
This comprehensive analysis not only demonstrated the robustness of the MVDR algorithm
but also underscored the significance of noise management in real-world scenarios.
For future enhancements, the project suggests avenues for improvement in adaptive signal
processing techniques. Strategies could involve refining algorithms to better handle non-linear
variations in amplitude and power, exploring advanced noise reduction methods, and
optimizing array configurations for increased precision in sound source localization.
Additionally, considering real-world applications, further research could focus on
implementing these techniques in diverse environments, such as robotics, radar systems, and
wireless communication, to validate their effectiveness and broaden their scope of application.
Overall, this internship within a defense organization was an enriching experience that
significantly enhanced both my technical skillset and instilled valuable behavioral skills. I am
confident that the knowledge, experience, and professionalism I gained will be a valuable asset
in my future career path.
54 | P a g e
CHAPTER 10- REFERENCES
[4] https://in.mathworks.com/help/phased/direction-of-arrival-doa-estimation-1.html
[5] https://in.mathworks.com/videos/matlab-and-simulink-robotics-arena-direction-
of-arrival- with-matlab-
1504107605701.html?s_tid=srchtitle_site_search_2_Direction%20of%20Arrival
[6] https://in.mathworks.com/help/phased/ug/source-localization-using-
generalized-cross- correlation.html
55 | P a g e