Questions tagged [waveform-similarity]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
69 votes
8 answers
128k views

How do I implement cross-correlation to prove two audio files are similar?

I have to do cross correlation of two audio file to prove they are similar. I have taken the FFT of the two audio files and have their power spectrum values in separate arrays. How should I proceed ...
user avatar
12 votes
3 answers
2k views

Good metric for qualitatively comparing image patches

I am trying to "match" little square patches in an image. At first glance, it seems reasonable to simply do a Euclidean distance style comparison of two of these arrays to get a "similarity" measure. ...
David Doria's user avatar
11 votes
1 answer
2k views

What is the difference between normalized peak of correlation, versus peak of correlation divided by its average?

Given a template, and a signal, the question arises as to how similar the signal is to the template. Traditionally a simple correlation approach is used, whereby the template and a signal are cross-...
Spacey's user avatar
  • 9,817
8 votes
3 answers
10k views

Calculating similarity between two signal plots

I have two plots, each having frequency as x-axis and Gain as y-axis. By taking one data set as a reference I have to calculate similarity between them. The graphs have same values on the x-axis and ...
Animesh Pandey's user avatar
5 votes
2 answers
2k views

How to decode a binary Signal in a wav file into binary - sent here from stackoverflow

I'm doing a puzzle that gets me to call a phone number which produces a load of beeping sounds. Putting this into audacity as a spectrogram produces this: Zoomed in it looks like this: This looks ...
user59258's user avatar
4 votes
1 answer
335 views

Reduce Signal Size to Compare Them

I have multiple experiments and each of them produce several ($k$ for example) binary signals; some artificial example next: I have a metric to compare experiment results but I need vectors of equal ...
Vladislav's user avatar
3 votes
2 answers
573 views

Why is there a mismatch between normalized cross-correlation and perception for basic waveforms?

To my ears, sawtooth and square waves are more similar to each other than either one is to a triangle wave. However, when I compare their magnitude spectra against each other using normalized cross-...
visual-kinetic's user avatar
3 votes
2 answers
6k views

Cross-correlation peak

How get cross-correlation peak and based on it calculate correlation score for similarity of two audio samples. SO far I've FFT two samples complex conjugate second multiply results IFFT cross-...
user4947's user avatar
3 votes
3 answers
98 views

Is there a difference measure that is insensitive to shifts?

I'm trying to figure out a difference measure that is relatively insensitive to time shifts. I have tried DTW (dynamic time warping.) This is the result: The signals on the left are clearly more ...
Aakusti's user avatar
  • 131
3 votes
1 answer
2k views

How to match two signals that have similar shape but are scaled and expanded?

I have two signals A and B in time domain as follows: Visually both signals look very similar; however the X and Y axis range are different for both the signals. Signal B is basically a "stretched" ...
Dipjyoti Bisharad's user avatar
2 votes
2 answers
283 views

Audio descriptor of data

Is there a way to generate a waveform from data (any kind of data: integer, hexadecimal, string, char, binary), in a common audio player, without converting the data to an audio format? I'm looking ...
Daniel Bezerra's user avatar
2 votes
1 answer
2k views

Signal matching: How to quantify the difference between two signals of varying frequency

I have two waves, and I would like to quantify the difference between them. They are exponential sine waves where the frequency decreases with time. I'm interested in the difference in decay ...
Christina's user avatar
2 votes
1 answer
113 views

How best to detect an unknown number of pulses of an approximate known form over an interval?

It is approximately 30 years since I last studied signal processing, but have lately encountered a problem for which I am confident the solution is well-known in the signal-processing world. I hope ...
RickyBoy's user avatar
2 votes
1 answer
344 views

Finding the Sections of Signals that are the Most Similar

I have two discrete signals, $A$ and $B$ (both with $L$ values). I want to look for the section (of a certain length $R$) on each signal ($[A_1:A_1+R]$ and $[B_1:B_1+R]$) where they are the most ...
DUO Labs's user avatar
  • 121
2 votes
1 answer
801 views

Making audio clips comparable in terms of RMS

I have a challenging question on how to normalize several audio clips so that they are comparable (similar) in RMS but without the clips clipping (having values over -1 and 1). Is there a systematic ...
Emmanuel Goldstein's user avatar
2 votes
0 answers
104 views

Audio transient characterization of instrumental music

Some time ago, I seem to recall hearing or reading of an audio experiment where the very short initial transients of one musical instrument (A) were spliced in front of the much longer steady state or ...
hotpaw2's user avatar
  • 35.3k
1 vote
4 answers
2k views

What algorithm can I use to compare two signals' similarity?

Suppose I have two time series (measuring the gyroscope data from two body sensors — A and B). I somehow need to evaluate whether the signal B is "following" the signal A — that is, how ...
Aerodynamika's user avatar
1 vote
1 answer
296 views

How can I check similarity of two different sinusoidal waveform model?

I am trying to establish a similarity index for two different signals. These signals are quite different in amplitude and signal length. Their waveform is sinusoidal, and frequencies are at a close ...
LunaLOVEGOOD's user avatar
1 vote
1 answer
36 views

How to synthesise an approximate 'pulse' waveform from an observed section of a similar waveform

Following on from my previous question, kindly answered by @peter-k, I have a related one... I have, in a small interval $a \leq x \leq b$, a function $q(x) := q(x;\rho,\gamma)$ whose exact form is ...
RickyBoy's user avatar
1 vote
1 answer
368 views

Comparing two time domain signals in a scale and shift-invariant way

I have two signals in the time domain, call them $S_1(t)$ and $S_2$(t). Because of calibration issues relating to the underlying devices that these signals are obtained from, they will not necessarily ...
gammapoint's user avatar
1 vote
1 answer
887 views

matching the mouth shape of an audio file(lip sync)

I am working on something like cartoon, but the character's mouth shape is automatically detected and matched by the word they are saying. my guess is to use speech recognize algorithm to analyze ...
springrider's user avatar
1 vote
1 answer
1k views

Need a similarity metric that describes these two curve as highly similar

I have a large number of time series data and I need to be able to compare the similarity of the curves to a reference curve. The reference curve in question is shown in red in the figure, and I'd ...
gammapoint's user avatar
1 vote
2 answers
517 views

Doppler Shift and the Pulse Repetition Interval

Suppose that I have a signal $x(t)$ consisting of $N$ pulses at a given frequency $\omega_{c}$. I space them $T$ seconds apart, ie the Pulse Repetition Interval (PRI) for the waveform is $T$. Now ...
The Dude's user avatar
  • 632
1 vote
0 answers
58 views

Sinus Pattern analysis

i have 1000 data which range between 50 and 180 ( heart BPM data in a day) how can i measure its similarity to a Sinus pattern? for example, for 20th recorded data (for example it is 60BPM), evaluate ...
Hamidreza Abdollahi's user avatar
1 vote
0 answers
58 views

WAV file audio sync/distortion issue

I was using Scarlet 2i2 audio interface plugged into an Android phone. Monitor headphones on the interface sounded great! I recorded a WAV file of a kids' concert with the USB Audio Recorder Pro app, ...
Gregory Klopper's user avatar
1 vote
0 answers
21 views

Similarity of two audio signals according to the human ear

Let's say I have two different real signals $x(t)$ and $y(t)$ in the auditory range of humans. What differences in properties of these signals would be minimized for these two signals to sound ...
james proctor's user avatar
1 vote
3 answers
393 views

Why is my Cepstrum mirrored and how do I relate it back to the original signal to find an echo

I am not a signal processor but need to use Cepstrums in a bigger project I am writing to help identify echoes in seismic signals. I need to understand why the Real and Complex Cepstrums I create, in ...
Chara's user avatar
  • 11
1 vote
0 answers
180 views

How to find if the signals are in sync or out of sync with each other?

Considering these are two signals over time, black and red.Following are some of the properties Every Second a new data point is added over time . There is no control on the generation of the ...
Rai Bose's user avatar
1 vote
0 answers
903 views

How do I decode(demodulation) and get original data from audio sample data

Here I'm talking about the less-than-ideal situations, in other words, the audio sample data may have burrs or error bits in it. Encode and decode theory: I am using FSK to encode my original binary ...
SevenWow's user avatar
  • 111
1 vote
0 answers
39 views

Estimate the type of wavelet transform in receiver side

Suppose that a signal is decomposed by using discrete wavelet transform (DWT) and transmitted. Is it possible for receiver to find which type of wavelet is applied in transmitter side ? I mean, if ...
Ali Bodaghi's user avatar
0 votes
2 answers
2k views

Audio signal comparison for automatic singing evaluation

I am trying to compare audio waveform from input waveform (A) to preset waveform (B)from in the device. I try to lookup everywhere. Most likely someone give such a source code as follow : ...
Ken Hui's user avatar
  • 11
0 votes
2 answers
2k views

How to match a piece of very short audio based on key and pitch to find a piece in a large database that is most similar to it?

For a large amount of musical audio tracks I am doing the following with every single track: I am slicing the track into very small pieces whereas each piece represents a note onset event. So the ...
Simon Kemper's user avatar
0 votes
4 answers
4k views

How to generate a good Sinus audio signal of specific SampleRate, DataBits and Chunnels in a time frame

I encountered a problem when I tried to generate by a program an sinus audio signal. My parameters are Sample Rate: 44100 Hz Data Bits: 16 bits Channels: 2 I need to create a WAV file ...
Patrik's user avatar
  • 103
0 votes
2 answers
650 views

Which algorithm could be used to compare two waveforms from an oscilloscope in XY mode?

I would like to receive some hint as to which algorithm could be used to compare two waveforms from an oscilloscope in XY mode, as shown in the image: Note that the image shows a percentage ...
user3394963's user avatar
0 votes
1 answer
199 views

Failed to Get Silence in Audio Streaming

I want to detect silence in audio streaming. I've been following lot of answers from any website and i feel like know how to do that. but i doubt i'm on the right path coz the result doesn't seems ...
Hilman Nihri's user avatar
0 votes
1 answer
109 views

Neural Network learning project based on 8 wave signals over 1 second at 1 sample every 10 ms ( hence 100Hz )

I'm currentely trying to train a neural network that can decide wether a pattern produced by the movement of a hand near capacitive sensors is as expected, or random. I have an MPR121 microchip linked ...
Osamoele's user avatar
0 votes
5 answers
984 views

Looking for an algorithm that computes "Similarity" between two signals

I'm new in this forum! ... and I'm not an expert in signal processing! ... So I hope to find help here:-) I was wondering if someone could point me to an algorithm/technique that is used to compare ...
Simon5029's user avatar
0 votes
4 answers
807 views

Similarity between two Signals: cycle by cycle

I need to find the similarity between two signals, i.e., measured signal and the reference signal(e.g. a simple sinusoidal signal). What I mean by similarity is, if there is any decentralized glitch ...
IVG's user avatar
  • 3
0 votes
0 answers
18 views

sinusoidal waves for texture similarity

I created an algorithm that approximates the tiny image texture by a series of sinusoids. It is NOT Fourier or discrete cosine because the boundary is highly irregular. I have each wave's frequency, ...
Jakub Mitura's user avatar
0 votes
1 answer
60 views

How to detect that a waveform is of the same type if it has a different frequency (Example: Sinwave with 2Hz and another with 10Hz)?

I am trying to detect whether a received waveform is a Sinusoid, Square Wave, or any other. How should I go about doing this, if the signal frequency can be different every time? I have looked online ...
Pessentrau Optiarou's user avatar
0 votes
0 answers
121 views

Should I use IQ data or power data to compare 2 signals through `similaritymeasures.dtw`?

I choose similaritymeasures.dtw to compare experiment signal exp_sig and reference signal ref_sig. Both signals are I,Q data ...
kittygirl's user avatar
  • 175
0 votes
0 answers
40 views

Global variability index for group of signals

Suppose I have a method that I can use to generate $n_p$ signals (we can intend them as realizations of an unknown not stationary discrete-time stochastic process). Modifying the method, I can obtain ...
Linker's user avatar
  • 1
0 votes
1 answer
27 views

integral with vectoric varying coeficient

i have a basic function exp(-x.^2).*log(x).^2 which i integrate in a certain interval. i want to multiply my basic function with a vectoric coefficient called coef_vec that varies with the interval. ...
rocko445's user avatar
  • 171
0 votes
0 answers
106 views

How to measure quality of an audio/music recording compared to the original

I have 3 wav files: The original recording of a viola note A noisy re-recording of the original clip A different noisy re-recording of the original clip I'm looking for a way to show which of the ...
Sevag's user avatar
  • 205
0 votes
0 answers
132 views

Finding recorded sub-signal in the original audio signal

I have the original record of a song, and some fragment of the same song recorded by a microphone. I need to find the time where the fragment is appearing in the original. I have tried to use cross-...
Ymh's user avatar
  • 1
0 votes
1 answer
2k views

Comparison/Difference between two distinct plots

I am making a project where I can identify leaves by taking a picture of them and a database. I will use their widths to determine their shape. So, I worked across the stem of the leaf each width and ...
Patrick Yu's user avatar
0 votes
0 answers
899 views

Similarity of signals

I have a question concerning methods to find different aspects of "similarity" of signals. So, first, I'd like to characterize the signals to be dealt with: We have a number of close to rectangular ...
user5555's user avatar
-1 votes
1 answer
6k views

Normalized Square Error vs Pearson correlation as similarity measures of two signals

Which measure should be considered better and when ? I tested both the measures on some data that I have and I got mixed results i.e. some are showing better results with Pearson and some with the ...
Animesh Pandey's user avatar
-1 votes
1 answer
193 views

Comparing two Accelerometer signals in time domain

As a research to answer my question, I've been reading several posts on this stack with a common thread of "comparing signals". The methods recurrently suggested were to use DTW, correlation ...
MajorMajorMajorMajor's user avatar
-1 votes
1 answer
319 views

Is mean squared error or absolute error on two spectrograms of two different wav files enough to compare how similar they are?

I've been working on a genetic algorithm to figure out how to play a guitar chord just by listening to it. I have it all working now, but the system I am using to compare how 'similar' a guess is to ...
Tim's user avatar
  • 1