Full text
EURASIP Journal on Advances in Signal Processing Novosadová et al. EURASIP Journal on Advances in Signal Processing (2019) 2019:6 https://doi.org/10.1186/s13634-018-0598-9 RESEARCH Open Access Orthogonality is superiority in piecewise-polynomial signal segmentation and denoising Michaela Novosadová1,PavelRajmic 1* and Michal Šorel2 Abstract Segmentation and denoising of signals often rely on the polynomial model which assumes that every segment is a polynomial of a certain degree and that the segments are modeled independently of each other. Segment borders (breakpoints) correspond to positions in the signal where the model changes its polynomial representation. Several signal denoising methods successfully combine the polynomial assumption with sparsity. In this work, we follow on this and show that using orthogonal polynomials instead of other systems in the model is beneficial when segmenting signals corrupted by noise. The switch to orthogonal bases brings better resolving of the breakpoints, removes the need for including additional parameters and their tuning, and brings numerical stability. Last but not the least, it comes for free! Keywords: Signal segmentation, Signal smoothing, Signal approximation, Denoising, Piecewise polynomials, Orthogonality, Sparsity, Proximal splitting, Convex optimization 1 Introduction Polynomials are an essential instrument in signal processing. They are indispensable in theory, as in the analysis of signals and systems [1] or in signal interpolation and approximation [2,3], but they have been used also in specialized application areas such as blind source separation [4], channel modeling and equalization [5], to name a few. Orthonormal polynomials often play a special role [2,6]. Segmentation of signals is one of the important applications in digital signal processing, while the most prominent sub-area is the segmentation of images. A plethora of methods exists which try to determine individual nonoverlapping parts of the signal. The neighboring segments should be identified such that they contrast in their “character.” For digital signal processing, such a vague word has to be mathematically expressed in terms of signal features, which then differ from segment to segment. As examples, the segments could differ in their level, statistics, frequency content, texture properties, etc. In this article, we *Correspondence: [email protected] 1Signal Processing Laboratory (SPLab), Brno University of Technology, Technická 12, 616 00 Brno, Czech Republic Full list of author information is available at the end of the article rely on the assumption of smoothness of individual segments, which means that segments can be distinguished by their respective underlying polynomial description. The point in signal where the character changes is called a breakpoint, i.e., a breakpoint indicates the location of segment border. The features involved in the segmentation are chosen or designed a priori (i.e., model-based class), while the other class of methods aims at learning discriminative features from the training data [7,8]. Within the first of the two classes, i.e., within approaches based on modeling, one can distinguish explicit and implicit types of models. In the “explicit” type, the signal is modeled such that it is a composition of sub-signals which often can be expressed analytically [9–16]. In the “implicit” type of models, the signal is characterized by features that are derived from the signal by using an operator [17–21]. The described differences are in an analogy to the “synthesis” and “analysis” approaches, respectively, recognized in the sparse signal processing literature [22,23]. Although the two types of models are different in their nature, connections can be found, for example, the recent article [24] showing the relationship between splines and generalized total variation regularization or [21] discussing the relationship between “trend filtering” and spline-based smoothers. © The Author(s). 2019 Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.
Novosadová et al. EURASIP Journal on Advances in Signal Processing (2019) 2019:6 Page 2 of 15 Note that signal denoising and segmentation often rely on similar or even identical models. Indeed, when borders of segments are found, denoising can be easily done as postprocessing. Conversely, the byproducts of denoising canbeusedtodetectsegmentborders.Thisparadigmis also true for our model, which can provide segmentation and signal denoising/approximation at the same time. As examples of other works that aim at denoising but can be used for segmentation as well, we cite [19,20,25,26]. The method described in this article belongs to the “explicit” type of models. We work with noisy onedimensional signals, and our underlying model assumes that individual segments can be well approximated by polynomials. The number of segments is supposed to be much lower than the number of signal samples—this natural assumption at the same time justifies the use of sparsity measures involved in segment identification. The model and algorithm presented for 1D in this article can be easily generalized to a higher dimension. For example, images are commonly modeled as piecewise smooth 2D-functions [27–31]. In [9,13,15], the authors build explicit signal segmentation/denoising models based on the standard polynomial basis 1, t,t2,...,tK.Inourpreviousarticles,e.g., [11,32], we used this basis as well. This article shows that modeling with orthonormal bases instead of the standard basis (which is clearly non-orthogonal) brings significant improvement in detection of the signal breakpoints and thus in the eventual denoising performance. It is worth noting that this improvement comes virtually for free, since the cost of generating an orthonormal basis is negligible compared to the cost of the algorithm which finds, in the iterative fashion, the numerical solution with such abasisfixed. Worth to note that the method closest to ours is the one from [9], which was actually the initial inspiration of our work in the discussed direction. Similar to us, the authors of [9] combine sparsity, overcompleteness, and a polynomial basis; however, they approximate the solution to the model by greedy algorithms, while we rely on convex relaxation techniques. The other, above-cited methods do not exploit overcompleteness. Out of those, an interesting study [21] is similar to our model in that it allows piecewise polynomials of arbitrary (fixed) degree; however, it can be shown that their model does not allow jumps in signals, while our model does. This makes a significant difference, as will be shown later in the article. The article is structured as follows: Section 2introduces the mathematical model of segmentation/denoising, and it suggests the eventual optimization problem. The numerical solution to this problem by the proximal algorithm is described in Section 3. Finally, Sections 4and 5provide the description of experiments and analyze the results. 2 Problem formulation In continuous time, a polynomial signal of degree Kcan be written as a linear combination of basis polynomials: y(t)=x0p0(t)+x1p1(t)+...+xKpK(t),t∈R,(1) where xk,k=0, ...,K, are the expansion coefficients in such a basis. If the standard basis is used, i.e., p0(t)=1, p1(t)=t,...,pK(t)=tK,(2) the respective scalars xkcorrespond to the intercept, slope, etc. Assume a discrete-time setting and limit the time instants to n=1, ...,N. Elements of a polynomial signal are then represented as y[n]=x0p0[n]+x1p1[n]+...+xKpK[n], n=1, ...,N. (3) In this formula, the signal is constructed by a linear combination of sampled polynomials. Assuming the polynomials pk,k=0, ...,K,arefixed, every signal given by (3) is determined uniquely by the set of coefficients {xk}. In contrast to this, we introduce a time index also to these coefficients, allowing them to change in time: y[n]=x0[n]p0[n]+x1[n]p1[n]+...+xK[n]pK[n], n=1, ...,N.(4) This may seem meaningless at this moment; however, such an excess of parameters will play a principal role shortly. It will be convenient to write this relation in a more compact form, for which we need to introduce the notation y=⎡ ⎢ ⎣ y[1] . . . y[N] ⎤ ⎥ ⎦,xk=⎡ ⎢ ⎣ xk[1] . . . xk[N] ⎤ ⎥ ⎦,Pk=⎡ ⎢ ⎣ pk[1] 0 ... 0pk[N] ⎤ ⎥ ⎦ (5) for k=0, ...,K.Afterthis,wecanwrite y=P0x0+...+PKxK(6) or even more shortly y=Px =[P0|···|PK]⎡ ⎢ ⎢ ⎣ x0 | . . . | xK ⎤ ⎥ ⎥ ⎦ ,(7) where the length of the vector xis (K+1)times Nand P is a fat matrix of size N×(K+1)N.
Novosadová et al. EURASIP Journal on Advances in Signal Processing (2019) 2019:6 Page 3 of 15 Such a description of signal of dimension Nis obviously overcomplete—there are (K+1)Nparameters to characterize it. Nevertheless, assume now that yis apiecewise polynomial and that it consists of Sindependent segments. Each segment s∈{1, ...,S}is then described by K+1 polynomials. In our notation, this can be achieved by letting vectors xkbe constant within time indexes belonging to particular segments. (The polynomials in Pare fixed). Figure 1shows an illustration. The reason for not using a single number describing each segment is that the positions of the segment breakpoints are unknown and will be subject to search. Following the above argumentation, if xkare piecewise constant, the finite difference operator ∇applied to vectors xkproduces sparse vectors. Operator ∇computes simple differences of each pair of adjacent elements in the vector, i.e., ∇:RN→ RN−1such that ∇z= [z2−z1,...,zN−zN−1]. Actually, not only ∇applied to each parameterization vector produces S−1nonzerosat maximum, but also the nonzero components of each ∇xk occupy the same positions across k=0, ...,K. Together with the assumption that the observed signal is corrupted by an i.i.d. Gaussian noise, it motivates us to formulate the denoising/segmentation problem as finding ˆx=arg min xreshape(Lx)21 s.t. y−PWx2≤δ. (8) In this optimization program, Wisthesquarediagonal matrix of size (K+1)Nthat enables us to adjust the lengths of vectors placed in Pand operator Lrepresents the stacked differences such that L=⎡ ⎢ ⎣ ∇ ··· 0 ... 0···∇ ⎤ ⎥ ⎦,Lx =⎡ ⎢ ⎣ ∇x0 | . . . | ∇xK ⎤ ⎥ ⎦.(9) Theoperatorreshape() takes the stacked vector Lx to the form of a matrix with disjoint columns: Fig. 1 Illustration of the signal parameterization. The top plot shows four segments of a piecewise-polynomial signal (both the samples and the underlying continuous-time model); each segment is of the second order. The middle plot are the three basis polynomials, i.e., the diagonals of matrices Pk(in this particular case, the respective sampled vectors are mutually orthonormal, actually). The parameterization coefficients shown in the bottom plot are vectors x0,x1,andx2. Notice that infinitely many other combinations of values in x0,x1,andx2generate the same signal, but we show the piecewise-constant case which is of the greatest interest for our study
Novosadová et al. EURASIP Journal on Advances in Signal Processing (2019) 2019:6 Page 4 of 15 reshape(Lx)=∇x0|···|∇xK. (10) It is necessary to organize the vectors in such a way for the purpose of the 21-norm which is explained below. The first term of (8) is the penalty. Piecewise-constant vectors xksuggest that these vectors are sparse under the difference operation ∇. As an acknowledged substitute of the true sparsity measure, the 1-norm is widely used [33,34]. Since the vectors should be jointly sparse, we utilize the 21-norm [35]thatactsonamatrixZwith prows and is formally defined by Z21 = Z1,:2,Z2,:2,...,Zp,:2 1 =Z1,:2+...+Zp,:2, (11) i.e., the 2-norm is applied to the particular rows of Z andtheresultingvectorismeasuredbythe1-norm. Such a penalty promotes sparsity across matrix’ rows, and therefore, the 21-norm enforces the nonzero components inthematrixtolieonthesamerows. The second term in (8) is the data fidelity term. The Euclidean norm reflects the fact that gaussianity of the noise is assumed. The level of the error is required to fall below δ. Finally, vector ˆxcontains the achieved optimizers. When standard polynomial basis {1, t,...,tK}is used for the definition of P, the high-order components blow up so rapidly that it brings two problems: First, the difference vectors follow the scale of the respective polynomials. In the absence of normalization, i.e., when Wis identity, this is not fair with respect to the 21-norm, since no polynomial should be preferred. In this regard, the polynomials should be “normalized” such that Wcontains the reciprocal of 2-norms of the respective polynomials. It is worth noting that in our former work, in particular in [12], we basically used model (8), but with the difference that there has been no weighting matrix and we used L=diag(τ0∇,...,τK∇)instead of L=diag(∇,...,∇),cf.(9). Finding suitable values of τk has been a demanding trial-and-error process. In this perspective, simple substitution Wx →xbrings us in fact to the model from [12], and we see that τkshould correspond to the norms of the respective polynomial. However, it still holds true that manual adjustments of these parameters can increase the success rate of the breakpoint detection, as they depend, unfortunately, on the signal itself (recall that a part of a signal can correspond to locally high parameterization values while other part does not). This is however out of scope of this article. Second, there is the numerics issue, meaning that the algorithms (see below) used to find the solution ˆxfailed due to the too wide range of the processed values. However, for short signals (like N≤500), this problem was solved by taking the time instants not as integers, but linearlyspacedvaluesfrom1/Nto 1, as the authors of [9] did. This article shows that the simple idea of shifting to orthonormal polynomials solves the two problems with no extra requirements. At the same time, orthonormal polynomials result in better detection of the breakpoints. One may also think of an alternative, unconstrained formulation of the problem: ˆx=arg min x reshape(Lx) 21 +λ 2 y−PWx 2 . (12) This formulation is equivalent to (8) in the sense that to agivenδ,thereexistsλsuch that the optima are identical. However, the constrained form is preferable since changing the weight matrix Wdoes not induce any change in δ, in opposite to a possible shift in λin (12). 3 Algorithms We utilize the so-called proximal splitting methodology for solving optimization problem (8). Proximal algorithms (PA) are algorithms suitable for finding minimum of a sum of convex functions. Proximal algorithms perform iterations involving simple computational tasks such as evaluation of gradient or/and proximal operators related to the individual functions. It is proven that under mild conditions, PA provide convergence. The speed of convergence is influenced by properties of the functions involved and by the parameters used in the algorithms. 3.1 Condat algorithm solving (8) The generic Condat algorithm (CA) [36,37]represents one possibility for solving problems of type minimize h1(L1x)+h2(L2x), (13) over x, where functions h1and h2are convex and L1and L2are linear operators. In our paper [12], we have compared two variants of CA; in the current work, we utilize the variant that is easier to implement—it does not require a nested iterative projector. To connect (13)with(8), we assign h1=· 21,L1= reshape(L·),h2=ι{z:y−z2≤δ}and L2=PW, while ιC denotes the indicator function of a convex set C. Algorithm solving (8) is described in Algorithm 1. Therein, two operators are involved: Operator softrow τ(Z) takes matrix Zand performs the row-wise group soft thresholding with threshold τon it, i.e., it maps each element of Zsuch that zij → zij Zi,:2 max(Zi,:2−τ,0). (14)
Novosadová et al. EURASIP Journal on Advances in Signal Processing (2019) 2019:6 Page 5 of 15 Projector projB2(y,δ)(z)finds the closest point to zin the 2-ball {z:y−z2≤δ}, z→ δz max(z2,δ). (15) All particular operations in Algorithm 1 are quite simple, and they are obtained in O(N)time. It is worth emphasizing, however, that the number of iterations necessary to achieve convergence grows with the number of time samples N. A better notion of the computational cost is provided by Table 1. It shows that both the cost per iteration and the number of necessary iterations grow linearly, resulting in an overall ON2complexity of the algorithm. The cost of postprocessing (described in Section 3.2)is negligible compared to such a quantity of operations. Algorithm 1: The Condat Algorithm solving (8) Input:PW:RN(K+1)→RN,y∈RN,δ>0 Output:ˆx=x(i+1) Set parameters ξ,σ>0andρ∈(0, 2). Set initial primal variable x(0)∈RN(K+1),setdualvariables u(0) 1∈R(N−1)(K+1),u(0) 2∈RN. for i=0, 1, ... do ¯x(i+1)= x(i)−ξLreshapeu(i) 1+(PW)u(i) 2 x(i+1)=ρ¯x(i+1)+(1−ρ)x(i) p(i) 1=u(i) 1+σreshape L2¯x(i+1)−x(i) ¯u(i+1) 1=p(i) 1−σsoftrow 1/σ p(i) 1/σ u(i+1) 1=ρ¯u(i+1) 1+(1−ρ)u(i) 1 p(i) 2=u(i) 2+σPW 2¯x(i+1)−x(i) ¯u(i+1) 2=p(i) 2−σprojB2(y,δ) p(i) 2/σ u(i+1) 2=ρ¯u(i+1) 2+(1−ρ)u(i) 2 return x(i+1) Convergence of the algorithm is guaranteed when it holds ξσ L 1L1+L 2L2 ≤1.Fortheuseoftheinequality L 1L1+L 2L2≤L12+L22, it is necessary to have the upper bound on the operator norms. The upper bound of L1is: L12=L2=max x2=1Lx2 2=max x2=1 ⎡ ⎢ ⎣ ∇x0 . . . ∇xK ⎤ ⎥ ⎦ 2 2 =max x2=1K k=0∇xk2 2 ≤ K k=0max x2=1∇xk2 2(16) ≤ K k=0∇2≤4(K+1) and thus L1≤2√K+1.TheoperatornormofPW satisfies PW2=PWWP, and thus, it suffices to find the maximum eigenvalue of PW2P.SincePW has the multi-diagonal structure (cf. relation (7)), PW2Pis diagonal, and in effect, it is enough to find the maximum on its diagonal. Altogether, the convergence is guaranteed when ξσ max diag PW2P+4(K+1)≤1. 3.2 Signal segmentation/denoising Vectors ˆxas the optimizers of problem (8) allow a means to estimate the underlying signal; it can be done simply by ˆy=PWˆx. However, this way we do not obtain the segment ranges. Second disadvantage of this approach is that the jumps are typically underestimated in size, which comes from the bias inherent to the 1norm [38–40]as the part of the optimization problem. The nonzero values in ∇ˆx0,...,∇ˆxKindicate segment borders. In practice, it is almost impossible to achieve truly piecewise-constant optimizers [38] as in the model case in Fig. 1,andvectors∇ˆxkare crowded by small elements, besides larger values indicating possible segment borders. We apply a two-part procedure to obtain the segmented and denoised signal: the breakpoints are detected first, and then, each detected segment is denoised individually. Recall that the 21-norm cost promotes significant values in vectors ∇ˆxksituated at the same positions. As a base for breakpoint detection, we gather ∇ˆxkstoasinglevector using the weighted 2-norm according to the formula d=α0∇ˆx02+···+αK∇ˆxK2, (17) Table 1 Time spent per iteration (in seconds) and the total number of iterations until convergence with respect to N, for an orthonormal polynomial base, fixed K=2 N300 503 705 904 1106 1308 1509 1711 1913 100 iter. [s] .05272 .05295 .06518 .07274 .08840 .09585 .10539 .11914 .12295 conver. [iter] 690 790 960 1090 1170 1290 1370 1470 1530
Novosadová et al. EURASIP Journal on Advances in Signal Processing (2019) 2019:6 Page 6 of 15 where αk=1/max(∇ˆxk)are positive factors serving to normalize the range of values in the parameterization vectors differences. The computations in (17)are elementwise. The comparisons presented in this article will be concerned only with the detection of breakpoints, and thus, in our further analysis, we process no more than the vector d. However, in case we would like to recover the denoised signal, we would proceed as in our former works [11,12], where first a moving median filter is applied to dand subtracted from d, allowing to keep the significant values and atthesametimetopushsmallonestowardzero.Putsimply, values larger than a selected threshold then indicate the breakpoints positions. The second step is denoising itself, which is done by least squares on each segment separately, using (any) polynomial basis of degree K. 4 Experiment—does orthogonality help in signals with jumps? The experiment has been designed to find out whether substituting non-orthogonal bases with the orthogonal ones reflects in emphasizing the positions of breakpoints when exploring the vector d. 4.1 Signals As test signals, five piecewise quadratic signals (K=2) of length N=300 were randomly generated. They are generated such that they contain polynomial segments similar to the 1D test signals presented in [9]. All signals consist of six segments of random lengths. There are noticeable jumps in value between neighboring segments, which is the difference to the test signals in [9]. The noiseless signals are denoted by yclean and examples are depicted in Fig. 2. The signals have been corrupted by the Gaussian i.i.d. noise, resulting in signals ynoisy =yclean +with ∼ N0, σ2. With these signals, we can determine the signal- to-noise ratio (SNR), defined as SNR (ynoisy,yclean)=20 ·log10 yclean2 ynoisy −yclean2 . (18) Five SNR values were prescribed for the experiment: 15, 20, 25, 30, and 35 dB. These numbers entered into the calculation of the respective noise standard deviation σsuch that σ=yclean2 N·10SNR 10 . (19) It is clear that the resulting σis influenced by energy of the clean signal as well. For each signal and each SNR, 100 realizations of noise were generated, making a set of 2500 noisy signals in total. 4.2 Bases Since the test signals are piecewise quadratic, the bases subject to testing all consist of three linearly independent discrete-time polynomials. For the sake of this section, the three basis vectors can be viewed as the columns of the N×3matrix.Theconnectiontoproblem(8)isthat these vectors form the diagonals of the system matrix PW. In the following, the N×3 basis matrices will be distinguished by the letter indicating the means of their generation: Fig. 2 Example of two noiseless and noisy test signals used in the experiment. Signals of length N=300 consist of six segments of various length, with a perceptible jump between each two segments. The SNRs used for this illustrations were 25 and 15 dB
Novosadová et al. EURASIP Journal on Advances in Signal Processing (2019) 2019:6 Page 7 of 15 4.2.1 Non-orthogonal bases (B) Most of the papers that explicitly model the polynomials utilize directly the standard basis (2), which is clearly not orthogonal either in continuous nor discrete setting. The norms of such polynomials differ significantly as well. We generated 50 B bases using formula B=SD1AD2. Here, the elements of the standard basis—the columns of S—are first normalized using a diagonal matrix D1, then mixed using a random Gaussian matrix Aand finally dilated to different lengths using D2having uniformly random entries at the diagonal. This way we acquired 50 bases, which are non-orthogonal and non-normalized at the same time. 4.2.2 Normalized bases (N) Another set of 50 bases, the N bases, were obtained by simply normalizing the length of the B basis polynomials, N=BD3. We want to find out whether this simple step helps in detecting the breakpoints. 4.2.3 Orthogonal bases (O) Orthogonal bases were obtained by orthogonalization of N bases. The process was as follows: A matrix Nwas decomposed by the SVD, i.e., N=UV. (20) Matrix Uconsists of three orthonormal columns of length N. The new orthonormal system is simply the matrix O=U. One could doubt whether the new basis Ospans the same space as Ndoes. Since Nhas full rank, contains three positive values on its diagonal. Because Vis also orthogonal, the answer to the above question is positive. A second question could be whether the new system is still consistent with any polynomial basis on R. The answer is yes again, since both matrices Nand Ucan be substituted by their continuous-time counterparts, thus generating the identical polynomial. 4.2.4 Random orthogonal bases (R) The last class consists of random orthogonal polynomial bases. The R bases were generated as follows: First, the SVD has been applied to the matrix Nas in (20), now symbolized using the subscripts, N=UNNV N. Next, arandommatrixAof size 3 ×3wasgenerated, each element of whose independently follows the Gauss distribution. This matrix is then decomposed to A=UAAV A.ThenewbasisRis obtained as R=UNUA. Note that since both matrices on the right hand side are orthonormal, the columns of Rform an orthonormal basis spanning the desired space. Elements of UAdetermine the linear combinations used in forming R. We generated 50 such random bases, meaning that in total 200 bases (B, N, O, R) were ready for the experiment. 4.2.5 A note on other polynomial bases One could think of using predefined polynomial bases as Chebychev or Legendre bases, for example. Note that such bases are defined in continuous time and are therefore orthogonal with respect to an integral scalar product [6]. Sampling such systems at equidistant time-points does not lead to orthogonal bases; actually when preparing this article, we found out that their orthogonalization via the SVD (as done above) significantly changes the course of the basis vectors. As far as we know, there are no predefined discrete-time orthogonal polynomial systems. In combination with the observation that neither the sampled nor the orthogonalized systems perform better than other non-ortho- or orthosystems, respectively, we did not include any such system in our experiments. 4.3 Experiment The algorithm of breakpoint detection that we utilized in the experiments has been described in Section 3.2.We used formula (17) for computing the input vector. The Condat algorithm run for 2000 iterations which was sufficient in all cases. Three items were subject to vary within the experiments, configuring the problem (8): •The input signal y, •parameter δcontrolling the modeling error, •the basis of polynomials PW (induced from the columns of matrices B,N,O,orR). Each signal entered into calculation with each of the bases, making 2500 ×200 experiments in total in signal breakpoints detection. 4.3.1 Setting parameter δ For each of the 2500 noisy signals, the parameter δ was calculated. Since both the noisy and clean signals are known in our simulation, δshould be close to the actual 2error caused by the noise. We found out that particular δleading to best breakpoint detection varies around the 2error, however. For the purpose of our comparison, we fixed a universal value of δdetermined according to δ=ynoisy −yclean2·1.05 (21) meaning that we allowed the model error to deviate from the ground truth by 5% at maximum. Figure 3shows the distribution of values of δ. For different signals, δis concentrated around a different quantity. This effect is due to the noise generation, wherein the resulting SNR (18)was set and fixed at first, while δis linked to the noise deviation σthat depends on the signal, cf. (19).
Novosadová et al. EURASIP Journal on Advances in Signal Processing (2019) 2019:6 Page 8 of 15 12345 0.105 0.11 0.115 0.12 0.125 0.13 0.135 0.14 0.145 Fig. 3 Distribution of δparameter across the five groups of test signals. The SNR is 25 dB in this example. The box plots show the maximum and minimum, first quartile and the third quartile forming the edges of the rectangle, and the median value within the box. Values of δvary within the signal (which is given by particular realizations of the noise) and between the signals (which is due to fixing the SNR rather than the noise power) Note that in practice, however, δwould have to take into account not only the (even unknown) noise level, but also the modeling error, since real signals do not follow the polynomial model exactly. A good choice of δ unfortunately requires a trial process. 4.4 Evaluation The focus of the article is to study whether orthogonal polynomials lead to better breakpoint detection than the non-orthogonal polynomials. To evaluate this, several values that indicate the quality of breakpoint detection process were computed. These markers are based on vector d. But first, for each single signal in test, define two disjoint sets of indexes, chosen out of {1, ...,N}: Highest values (HV): Recall that each of the clean test signals contains five breakpoints. Note also that ddefined by (17) is nonnegative. The HV group thus gathers the indexes of the five values in dthat are likely to represent breakpoints. These five indexes are selected iteratively: At first, the largest value is chosen to belong to HV. Then, since it can happen that multiple high values sit next to each other, the two neighboring indexes to the left and two to the right are omitted from further consideration. The remaining four steps select the rest of the HV members in the same manner. Other values (OV): The second group consists of the remaining indexes in d. The indexes excluded during the HV selection are not considered in OV. This way, the number of elements in OV is 274 at least and 289 at most, depending on the particular course of the HV selection process. For each signal, the ratio of the averages of the values belonging to HV versus the average of the values in OV is computed; we denote this ratio AAR. We also computed the MMR indicator, which we define as the ratio of the minimum of values of HV to the maximum of the OV values. Both these indicators, and especially the MMR, should be as high as possible to enable safe recognition of the breakpoints. The next parameter in evaluation was the number of correctly detected breakpoints (NoB). We are able to introduce NoB in our report since the true positions of the breakpoints are known. The breakpoint positions are not always found exactly, especially due to the influence of the noise (will be discussed later), and therefore, we consider the breakpoint as detected correctly if the indicated position lies within an interval of ±two indexes from the ground truth. In addition, classical mean square error (MSE) has been involved to complete the analysis. The MSE measures the average distance of the denoised signal from the noiseless original and is defined as MSE(ydenoised,yclean)=1 Nydenoised −yclean2 2. (22) As ydenoised, two variants were considered: (a) the direct signal estimate computed as ˆy=PWˆx,whereˆxis the solution to (8) and (b) the estimate where the ordinary least squares have been used separately on each of the detected segments with a polynomial of degree two. Note that approach (b) is an instance of the so-called debiasing methods, which is sometimes done in regularized regression, based on the a priori knowledge that the regularizer biases the estimate. As an example, debiasing is commonly done in LASSO estimation [39,41], where thebiasedsolutionisusedonlytofixthesparsevector support and least squares are then used to make a better fit on the reduced subset of regressors, see also related works [12,33,42]. The results from approach a will be abbreviated “CA” in the following, meaning “Condat Algorithm”, and the results from the least squares adjustment by “LS.” 4.5 Results and discussion Using orthogonal bases reflects in significantly better results than working with non-orthogonal bases. The improvement can be observed in all parameters in consideration. The AAR, MMR, and NoB indicators increase with orthogonal bases and the MSE decreases. An example comparison of the three types of bases in terms of the AAR is depicted in Fig. 4.AlargerAAR
Novosadová et al. EURASIP Journal on Advances in Signal Processing (2019) 2019:6 Page 9 of 15 100 200 300 400 500 600 Ratios of averages (AAR), signal 1, all SNR Fig. 4 Results of the AAR indicator for test signal “1.” Five different SNRs in use are indicated by the subscripts. The box plot shows the distribution of the AAR under 100 realizations of random noise. In terms of the AAR distribution, random bases R and the orthonormalized bases O perform better than the other two systems. Normalization of the B bases resulted in a slight decrease of the AAR variance means that the averages of the HV and OV values, respectively, are more apart. Analogously, Fig. 5shows an illustration of the performance in terms of the MMR. The MMR gets greater when the smallest value from HV is better separated from the greatest value from OV. This creates a means for correct detection of the breakpoints. From both figures, it is clear that R and O bases are preferable over N bases. The reader has noticed that Figs. 4and 5do not show the comparison across all the test signals. The reason is 5 10 15 20 25 30 Minimum to maximum ratios (MMR), signal 4, all SNR Fig. 5 Results of the MMR indicator for test signal “4.” Similar to Fig. 4, the box plots clearly exhibit a clear superiority of R bases and O bases over the B bases and N bases in terms of MMR distribution, although the respective worst results are comparable in value 35 30 0 SNR 25 54 NoB 20 32 1000 Number of correctly detected breakpoints, B bases, signal 4 15 1 2000 35 30 0 SNR 25 54 NoB 20 32 Number of correctly detected breakpoints, N bases, signal 4 15 1 2000 4000 35 30 0 SNR 25 54 NoB 20 32 Number of correctly detected breakpoints, O bases, signal 4 15 1 2000 4000 35 30 0 SNR 25 54 NoB 20 32 Number of correctly detected breakpoints, R bases, signal 4 15 1 2000 4000 Fig. 6 Results in terms of the NoB indicator. The respective 3D histograms show the frequency of the number of correctly detected breakpoints when the SNR changes, here for signal “4”. For each SNR and a specific basis type, 5000 experiments were performed (50 bases times 100 noise realizations). An expected trend is pronounced that increasing value of SNR lowers the number of correctly detected breakpoints, independently of the choice of the basis. The worst results are obtained using non-orthogonal bases (B)