Similarity (signal Processing)
   HOME

TheInfoList



OR:

Similarity between two different signals is important in the field of
signal processing Signal processing is an electrical engineering subfield that focuses on analyzing, modifying and synthesizing ''signals'', such as audio signal processing, sound, image processing, images, Scalar potential, potential fields, Seismic tomograph ...
. Below are some common methods for calculating similarity. For instance, let's consider two signals represented as x
, n The comma is a punctuation mark that appears in several variants in different languages. Some typefaces render it as a small line, slightly curved or straight, but inclined from the vertical; others give it the appearance of a miniature fille ...
/math> and y
, n The comma is a punctuation mark that appears in several variants in different languages. Some typefaces render it as a small line, slightly curved or straight, but inclined from the vertical; others give it the appearance of a miniature fille ...
/math>, where m = 0, 1, 2, ..., M-1 and n = 0, 1, 2, ..., N-1.


Maximum error (ME)

Measuring the maximum magnitude of the difference between two signals. Maximum error is useful for assessing the worst-case scenario of prediction accuracy
ME= \max(\left, y ,nx ,n\)


Mean squared error (MSE)

Measuring the average squared difference between two signals. Unlike the maximum error,
mean squared error In statistics, the mean squared error (MSE) or mean squared deviation (MSD) of an estimator (of a procedure for estimating an unobserved quantity) measures the average of the squares of the errors—that is, the average squared difference betwee ...
takes into account the overall magnitude and spread of errors, offering a comprehensive assessment of the difference between the two signals.
MSE= \frac \sum_^ \sum_^ \left, y ,nx ,n\^2


Normalized mean square error (NMSE)

NMSE is an extension of MSE. It is calculated by normalizing the MSE with the signal power, enabling fair comparisons across different datasets and scales.
NMSE= \frac


Root-mean-square deviation (RMSE)

Root-mean-square deviation is derived from MSE by taking the square root of the MSE. It downscale the MSE, providing a more interpretable and comparable measure for better understanding for outcome.
RMSE= \sqrt


Normalized root-mean-square error (NRMSE)

An extension of RMSE, which allows for signal comparisons between different datasets and models with varying scales.
NRMSE= \sqrt


Signal-to-noise ratio (SNR)

In signal processing,
signal-to-noise ratio Signal-to-noise ratio (SNR or S/N) is a measure used in science and engineering that compares the level of a desired signal to the level of background noise. SNR is defined as the ratio of signal power to noise power, often expressed in deci ...
is calculated as the ratio of signal power to noise power, typically expressed in decibels. A high SNR indicates a clear signal, while a low SNR suggests that the signal is corrupted by noise. In this context, the signal MSE can be considered as noise, and the similarity between two signals can be viewed as the equation below:
SNR= 10 \log_


Peak signal-to-noise ratio (PSNR)

Peak signal-to-noise ratio is a metric used to measure the maximum power of a signal to the noise. It is commonly used in image signals because the pixel intensity in an image does not directly represent the actual signal value. Instead, the pixel intensity corresponds to color values, such as white being represented as 255 and black as 0 * Gray scale image:
PSNR_= 10 \log_
* Color image:
PSNR_= 10 \log_


L_ -Norm

A mathematical concept used to measure the distance between two vectors. In signal processing, the L-norm is employed to quantify the difference between two signals. The L1-norm corresponds to the
Manhattan distance Taxicab geometry or Manhattan geometry is geometry where the familiar Euclidean distance is ignored, and the distance between two point (geometry), points is instead defined to be the sum of the absolute differences of their respective Cartesian ...
, while the L2-norm corresponds to the
Euclidean distance In mathematics, the Euclidean distance between two points in Euclidean space is the length of the line segment between them. It can be calculated from the Cartesian coordinates of the points using the Pythagorean theorem, and therefore is o ...
.
\left \, y-x \right \, _= \left( \sum_^ \sum_^ \left, y ,nx ,n\^ \right)^
\frac\left \, y-x \right \, _= \frac \left( \sum_^ \sum_^ \left, y ,nx ,n\^ \right)^


Structural similarity (SSIM)

Structural similarity The structural similarity index measure (SSIM) is a method for predicting the perceived quality of digital television and cinematic pictures, as well as other kinds of digital images and videos. It is also used for measuring the similarity betwe ...
is a similarity metric specifically designed for measuring the similarity between two image signals. Unlike other similarity measures, SSIM leverages the strong interdependencies between neighboring pixels, providing a measure that closely aligns with human visual perception and feeling of similarity.
\hbox(x,y) = \frac
:with: :* \mu_x the pixel sample mean of x; :* \mu_y the pixel sample mean of y; :* \sigma_x^2 the
variance In probability theory and statistics, variance is the expected value of the squared deviation from the mean of a random variable. The standard deviation (SD) is obtained as the square root of the variance. Variance is a measure of dispersion ...
of x; :* \sigma_y^2 the
variance In probability theory and statistics, variance is the expected value of the squared deviation from the mean of a random variable. The standard deviation (SD) is obtained as the square root of the variance. Variance is a measure of dispersion ...
of y; :* \sigma_ the
covariance In probability theory and statistics, covariance is a measure of the joint variability of two random variables. The sign of the covariance, therefore, shows the tendency in the linear relationship between the variables. If greater values of one ...
of x and y; :* c_1 = (k_1L)^2, c_2 = (k_2L)^2 two variables to stabilize the division with weak denominator; :* L the
dynamic range Dynamics (from Greek δυναμικός ''dynamikos'' "powerful", from δύναμις ''dynamis'' " power") or dynamic may refer to: Physics and engineering * Dynamics (mechanics), the study of forces and their effect on motion Brands and ent ...
of the pixel-values (typically this is 2^-1); :* k_1 = 0.01 and k_2 = 0.03 by default.


References

{{reflist Signal processing