<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Academic on Matias Di Bernardo</title><link>https://dibernardo.netlify.app/tags/academic/</link><description>Recent content in Academic on Matias Di Bernardo</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>Matías Di Bernardo</copyright><lastBuildDate>Fri, 22 Nov 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://dibernardo.netlify.app/tags/academic/index.xml" rel="self" type="application/rss+xml"/><item><title>The effect of denosing on TTS</title><link>https://dibernardo.netlify.app/p/the-effect-of-denosing-on-tts/</link><pubDate>Fri, 22 Nov 2024 00:00:00 +0000</pubDate><guid>https://dibernardo.netlify.app/p/the-effect-of-denosing-on-tts/</guid><description>&lt;p>This study was conducted in the context of the class &lt;em>Laboratorio de Acústica&lt;/em> at UNTREF. I chose this topic because it aligns with research I have been pursuing as part of the group &lt;em>Intercambios Transorgánicos&lt;/em>. The class assignment involved conducting a subjective study using a survey to explore the relationship between objective and subjective variables.&lt;/p>
&lt;p>In my research group, I have been investigating how denoising algorithms affect Text-to-Speech (TTS) systems trained on low-quality recordings. The focus is on Rioplatense Spanish, a regional accent with limited high-quality data. Within this context, it was natural to combine both tasks and perform a subjective test on the impact of denoising algorithms on TTS systems.&lt;/p>
&lt;h2 id="overview">Overview
&lt;/h2>&lt;p>The key points of this investigation are:&lt;/p>
&lt;ul>
&lt;li>Evaluation of three denoising algorithms: Wave U-Net, HiFi-GAN, and DeepFilterNet.&lt;/li>
&lt;li>Use of both subjective (CMOS) and objective metrics (PESQ, STOI, MCD).&lt;/li>
&lt;li>Insights into resource-efficient TTS model development for underrepresented accents.&lt;/li>
&lt;/ul>
&lt;h2 id="methodology">Methodology
&lt;/h2>&lt;ul>
&lt;li>&lt;strong>Algorithms&lt;/strong>: Wave U-Net, HiFi-GAN, and DeepFilterNet evaluated with the FastPitch TTS model.&lt;/li>
&lt;li>&lt;strong>Dataset&lt;/strong>: Subset of the ArchiVoz collection (15 minutes of noisy audio).&lt;/li>
&lt;li>&lt;strong>Testing&lt;/strong>: CMOS subjective test and objective metrics (PESQ, STOI, MCD).&lt;/li>
&lt;li>&lt;strong>Participants&lt;/strong>: 24 valid responses, including both experts and non-experts.&lt;/li>
&lt;/ul>
&lt;h2 id="key-findings">Key Findings
&lt;/h2>&lt;ol>
&lt;li>
&lt;p>&lt;strong>DeepFilterNet Performance&lt;/strong>:&lt;/p>
&lt;ul>
&lt;li>Achieved the highest CMOS score, reflecting the best subjective quality.&lt;/li>
&lt;li>Demonstrated significant improvements in TTS output despite mixed correlations with objective metrics.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Objective Metrics Analysis&lt;/strong>:&lt;/p>
&lt;ul>
&lt;li>PESQ and MCD showed limited correlation with subjective preferences.&lt;/li>
&lt;li>STOI scores were consistent across algorithms, indicating preserved intelligibility.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Algorithm Comparisons&lt;/strong>:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>DeepFilterNet&lt;/strong>: Superior subjective evaluations, moderate MCD.&lt;/li>
&lt;li>&lt;strong>Demucs&lt;/strong>: Comparable to DeepFilterNet in PESQ but lower subjective scores.&lt;/li>
&lt;li>&lt;strong>Wave U-Net&lt;/strong>: Poor subjective and objective performance.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Subject Expertise&lt;/strong>:&lt;/p>
&lt;ul>
&lt;li>No significant differences were observed between expert and non-expert evaluations in subjective testing.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ol>
&lt;h2 id="implications">Implications
&lt;/h2>&lt;ul>
&lt;li>&lt;strong>Efficiency&lt;/strong>: Advanced denoising methods like DeepFilterNet can enhance TTS systems without requiring high-quality recordings.&lt;/li>
&lt;li>&lt;strong>Limitations&lt;/strong>: Objective metrics like PESQ and MCD are insufficient standalone indicators of subjective TTS quality.&lt;/li>
&lt;li>&lt;strong>Future Work&lt;/strong>:
&lt;ul>
&lt;li>Expand datasets and noise levels for more robust analysis.&lt;/li>
&lt;li>Explore TTS systems trained jointly with denoising algorithms.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul>
&lt;h2 id="conclusions">Conclusions
&lt;/h2>&lt;p>This work concludes that preprocessing with DeepFilterNet significantly improves TTS performance, with a 1.1 CMOS score increase. These findings underscore the importance of algorithm selection in optimizing low-resource TTS systems. Additionally, I gained valuable insights into subjective evaluations and the statistical analysis required to draw meaningful conclusions from data.&lt;/p>
&lt;p>All the information for this study can be found in the &lt;a class="link" href="https://drive.google.com/file/d/1F4aJGIU9FX2LT8OFik-Yjg4uSz6T09jw/view?usp=sharing" target="_blank" rel="noopener"
>academic report&lt;/a>.&lt;/p></description></item><item><title>Time Scale Modification Algorithms</title><link>https://dibernardo.netlify.app/p/time-scale-modification-algorithms/</link><pubDate>Sat, 11 Feb 2023 00:00:00 +0000</pubDate><guid>https://dibernardo.netlify.app/p/time-scale-modification-algorithms/</guid><description>&lt;img src="https://dibernardo.netlify.app/p/time-scale-modification-algorithms/tsm.PNG" alt="Featured image of post Time Scale Modification Algorithms" />&lt;p>Time scale modifications algorithms are used to speed up or slow down the reproduction velocity of an audio. When you change the sample rate of an audio, the velocity changes but it also changes the pitch (when the audio is speed up it sounds highier pitch). There are different algorithms that change the velocity of the audio but mantain the pitch.&lt;/p>
&lt;p>The main reference for this study is the following article, where all the different algorithms are describe in detail.&lt;/p>
&lt;blockquote>
&lt;p>A Review of Time-Scale Modification of Music Signals.&lt;br>
— &lt;cite>Jonathan Driedger and Meinard Müller&lt;sup id="fnref:1">&lt;a href="#fn:1" class="footnote-ref" role="doc-noteref">1&lt;/a>&lt;/sup>&lt;/cite>&lt;/p>
&lt;/blockquote>
&lt;h2 id="algorithm-comparison">Algorithm comparison
&lt;/h2>&lt;p>There are two main algorithms, the &lt;em>Overlap-and-add&lt;/em> (OLA) and the &lt;em>Phase Vocoder&lt;/em> (PV). Both achieve good results under different signals and conditions. For this, a final implementation using &lt;em>Harmonic Percussion Separation&lt;/em> (HPS) combines both algorithms and achiving the best results.&lt;/p>
&lt;h3 id="ola">OLA
&lt;/h3>&lt;p>This method works on time domain and overlap sections of the audio (windows) and rearange it to achive a certain desire change on speed. This method works well for percussive signals, but it introduces artifacts when used with harmonic or tonal signals.&lt;/p>
&lt;h3 id="pv">PV
&lt;/h3>&lt;p>This method works on frequency domain, and it combines chunks of audio in the frequency domain to achieve the desire change in time. This uses the phase vocoder principle to propagate the phase between the windows, this grantice the continuity of when applied to harmonic signals. On the contrary, it does not work for percussive signals becouse the phase propagation process eliminate the transients in the signals.&lt;/p>
&lt;p>I created visualizations using &lt;em>Manim&lt;/em> to enhance my class presentation. The first video demonstrates how the PV algorithm aligns windows to ensure smooth transitions in the generated signal over time. To achieve this, a Gaussian window is applied, which maintains continuity and smoothness, even at the start and end of the sequence.&lt;/p>
&lt;div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;">
&lt;iframe src="https://player.vimeo.com/video/1045495557" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" title="vimeo video" webkitallowfullscreen mozallowfullscreen allowfullscreen>&lt;/iframe>
&lt;/div>
&lt;p>The second video showcases the effects of applying the PV algorithm to a signal containing transients.&lt;/p>
&lt;div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;">
&lt;iframe src="https://player.vimeo.com/video/1045495634" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" title="vimeo video" webkitallowfullscreen mozallowfullscreen allowfullscreen>&lt;/iframe>
&lt;/div>
&lt;p>As predicted by theory, the transients vanish because the PV algorithm disrupts the vertical phase alignment. While these examples utilize idealized signals, they effectively demonstrate the key strengths and limitations of the algorithm.&lt;/p>
&lt;h3 id="hps">HPS
&lt;/h3>&lt;p>To use both methods with their ideal signals, the HPS algorithms is used. This algorithm separete the signal into the harmonics and the percussive parts. It works by comparing the continuty of the signal in the STFT representation and using a filter to compare vertical versus horizontal presence on the spectrogram. With a threshold, a binary mask can be define over the spectrogram to separete the percussive parts from the harmoincs sections.&lt;/p>
&lt;h2 id="results">Results
&lt;/h2>&lt;p>We succesfully implement all the algorithms and compare them, verifying the theortical contents presented on the referenca article. In the process, we develope the toolkit to use this algorithms with the python programming language. All the code is avaliable on this &lt;a class="link" href="https://github.com/MatiasDiBernardo/TSM_Toolkit" target="_blank" rel="noopener"
>repo&lt;/a>&lt;/p>
&lt;h2 id="academic-presentation">Academic Presentation
&lt;/h2>&lt;p>The study was preseented with my classmates on the &lt;em>JAAS&lt;/em> (Jornadas de Acustica, Audio y Sonido). The main ideas and conclusions were preseneted on the conference. In the following repoert there is all the details and anlysis done for this proyect (in spanish).&lt;/p>
&lt;blockquote>
&lt;p>ALGORITMOS DE MODIFICACIÓN DE ESCALA TEMPORAL.&lt;br>
— &lt;cite>Matías Di Bernardo; Matías Vereertbruhggen; Sebastían Carro &lt;sup id="fnref:2">&lt;a href="#fn:2" class="footnote-ref" role="doc-noteref">2&lt;/a>&lt;/sup>&lt;/cite>&lt;/p>
&lt;/blockquote>
&lt;div class="footnotes" role="doc-endnotes">
&lt;hr>
&lt;ol>
&lt;li id="fn:1">
&lt;p>A Review of Time-Scale Modification of Music Signal &lt;a class="link" href="https://www.researchgate.net/publication/295082364_A_Review_of_Time-Scale_Modification_of_Music_Signals" target="_blank" rel="noopener"
>paper&lt;/a>.&amp;#160;&lt;a href="#fnref:1" class="footnote-backref" role="doc-backlink">&amp;#x21a9;&amp;#xfe0e;&lt;/a>&lt;/p>
&lt;/li>
&lt;li id="fn:2">
&lt;p>JAAS 2023 - Algoritmos de Modificación de Escala Temporal &lt;a class="link" href="https://drive.google.com/file/d/12kPB3qBjczyx7X2XV3ZpBDo1GDO2u4qR/view?usp=sharing" target="_blank" rel="noopener"
>paper&lt;/a>.&amp;#160;&lt;a href="#fnref:2" class="footnote-backref" role="doc-backlink">&amp;#x21a9;&amp;#xfe0e;&lt;/a>&lt;/p>
&lt;/li>
&lt;/ol>
&lt;/div></description></item><item><title>Comparative analysis of time-frequency transformations</title><link>https://dibernardo.netlify.app/p/comparative-analysis-of-time-frequency-transformations/</link><pubDate>Fri, 11 Nov 2022 00:00:00 +0000</pubDate><guid>https://dibernardo.netlify.app/p/comparative-analysis-of-time-frequency-transformations/</guid><description>&lt;img src="https://dibernardo.netlify.app/p/comparative-analysis-of-time-frequency-transformations/fourier.jpg" alt="Featured image of post Comparative analysis of time-frequency transformations" />&lt;p>This research is conducted as part of the subject &lt;em>Metodología de la Investigación&lt;/em> at UNTREF. The article aims to compare the differences between three types of time-frequency transformations:&lt;/p>
&lt;ol>
&lt;li>Fourier Transform (FT)&lt;/li>
&lt;li>Wavelet Transform (WT)&lt;/li>
&lt;li>Huang-Hilbert Transform (HHT)&lt;/li>
&lt;/ol>
&lt;p>The objective of this work is to understand the differences between these types of transformations and deepen my knowledge of signal processing.&lt;/p>
&lt;h2 id="objective">Objective
&lt;/h2>&lt;p>The general objective of the research is to determine which spectral analysis tool achieves the highest accuracy in pitch detection tasks.&lt;/p>
&lt;p>To achieve this objective, the following specific objectives are proposed:&lt;/p>
&lt;ul>
&lt;li>Identify the parameters needed to represent the signal in the spectral domain for each case.&lt;/li>
&lt;li>Select an algorithm that identifies the pitch of the signal based on its spectral representation.&lt;/li>
&lt;li>Generate the data (audio signals) to be used for the comparison.&lt;/li>
&lt;li>Evaluate the generated data with the different analysis methods and apply statistical processes to validate the results.&lt;/li>
&lt;li>Establish a measure of accuracy for the pitch detection task.&lt;/li>
&lt;li>Compare the results of the different analyses and determine which method achieves the highest accuracy in pitch detection.&lt;/li>
&lt;/ul>
&lt;p>The pitch detection task was chosen because it is one of the main applications of these types of transformations.&lt;/p>
&lt;h2 id="algorithms">Algorithms
&lt;/h2>&lt;p>The theoretical analysis of all the transformations is performed in the continuous domain, but to conduct the experiments and comparisons, the discrete domain is used, enabling all calculations to be performed digitally.&lt;/p>
&lt;h3 id="fft">FFT
&lt;/h3>&lt;p>The FFT is an algorithm that optimizes the DFT (Discrete Fourier Transform). With this algorithm, the spectral representation of the signal is obtained according to Fourier analysis, which decomposes a complex signal into a sum of sines or cosines. The DFT is calculated using the formula:&lt;/p>
$$
X_k = \sum_{n=0}^{N-1} e^{-i\frac{2\pi}{N}kn} x_n
$$&lt;p>Where \( N \) is the number of signal samples, and \( k \) are natural numbers from \( 0 \) to \( N – 1 \).&lt;/p>
&lt;h3 id="wt">WT
&lt;/h3>&lt;p>The Wavelet Transform (WT) uses an oscillatory function (wavelet) and applies a convolution between the signal and the chosen wavelet function to determine whether that wave shape is present in the signal. The wavelet is stretched and scaled in frequency and amplitude, allowing a single wavelet function to recreate the entire spectrum of interest.&lt;/p>
&lt;p>In this research, the CDWT (Cyclic Discrete Wavelet Transform) will be used, the most common implementation when discretizing the WT. Conceptually, this transform extends Fourier analysis by projecting the signal onto a basis of wavelet functions instead of sines and cosines. It is calculated as follows:&lt;/p>
$$
Wf[n, a^j] = \sum_{m=0}^{N-1} f[m] \psi_j[m-n]
$$&lt;p>Where \( N \) is the number of signal samples, \( \psi \) is the wavelet function, and \( j \) represents the deformation of the wavelet according to the selected wavelet bank.&lt;/p>
&lt;h3 id="hht">HHT
&lt;/h3>&lt;p>Lastly, the Huang-Hilbert Transform (HHT) will be used for spectral representation. It employs a method called Empirical Mode Decomposition (EMD) to decompose the signal into subsignals that contain the relevant information of the original function.&lt;/p>
&lt;p>Like the previous analysis methods, the key part of the analysis is the decomposition of the signal into simpler signals. However, instead of sine or wavelet functions, EMD finds intrinsic mode functions (IMFs) that form the basis of our decomposition and are unique to each signal.&lt;/p>
&lt;p>The relationship between the IMFs and the frequency of the original signal is established with the equation:&lt;/p>
$$
z(t) = f(t) + i H\{ f(t) \}
$$&lt;p>Where \( f(t) \) is an IMF of the original signal, and \( H \) is the Hilbert Transform. This allows the IMF to be represented as a complex signal by projecting it onto the imaginary axis using the Hilbert Transform.&lt;/p>
&lt;p>Thus, the IMF is represented as a complex signal, and the amplitude and phase of each moment can be extracted to construct the spectral representation. Since a signal generally has multiple IMFs, this process is repeated for all of them, and the results are summed to obtain the complete spectrum.&lt;/p>
&lt;h2 id="procedure">Procedure
&lt;/h2>&lt;p>This research analyzes the relationship between types of spectral representation and accuracy in pitch detection.&lt;/p>
&lt;p>First, the parameters for the different transformations will be selected. Among the most critical parameters to determine is the number of samples for temporal windowing, as it determines the trade-off between temporal and frequency resolution.&lt;/p>
&lt;p>To ensure a fair comparison among the methods, data representing various cases of interest will be generated, including four types of signals:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Monophonic&lt;/strong>: Signals with a single note corresponding to \( F_0 \).&lt;/li>
&lt;li>&lt;strong>Polyphonic&lt;/strong>: Signals with multiple notes where harmony determines \( F_0 \).&lt;/li>
&lt;li>&lt;strong>Slow Transitions&lt;/strong>: Signals with gradual changes in \( F_0 \).&lt;/li>
&lt;li>&lt;strong>Fast Transitions&lt;/strong>: Signals with abrupt changes in \( F_0 \).&lt;/li>
&lt;/ul>
&lt;p>The real value \( V(t) \) will be compared to the result \( P(t) \) from each transform, integrating the difference over time to calculate the accuracy.&lt;/p>
&lt;h2 id="results">Results
&lt;/h2>&lt;p>At this stage, the task was to complete the research plan detailing the procedure and analysis methods. Dummy data was generated and statistically validated to simulate expected results.&lt;/p>
&lt;p>&lt;img src="https://dibernardo.netlify.app/p/comparative-analysis-of-time-frequency-transformations/res.PNG"
width="834"
height="550"
srcset="https://dibernardo.netlify.app/p/comparative-analysis-of-time-frequency-transformations/res_hu8387233291062647437.PNG 480w, https://dibernardo.netlify.app/p/comparative-analysis-of-time-frequency-transformations/res_hu2809804783985204141.PNG 1024w"
loading="lazy"
alt="Graph showing the precision of each transform according to the type of signal analyzed"
class="gallery-image"
data-flex-grow="151"
data-flex-basis="363px"
>&lt;/p>
&lt;p>The graph compares the precision achieved by the three transformations for different signal types. Based on the properties of the transforms, the Wavelet Transform (WT) is expected to outperform the Fourier Transform (FT), and the Huang-Hilbert Transform (HHT) is expected to achieve the highest precision overall.&lt;/p>
&lt;h2 id="conclusions">Conclusions
&lt;/h2>&lt;p>In pitch detection tasks using spectral analysis, the Huang-Hilbert Transform (HHT) generally provides higher precision than the Fast Fourier Transform (FFT) and the Cyclic Discrete Wavelet Transform (CDWT).&lt;/p>
&lt;p>The significance of this precision gain depends on the type of signal being analyzed, with fast-transition signals benefiting the least from the transformation change, while polyphonic signals show the most significant improvement when using the HHT.&lt;/p>
&lt;p>This project allowed me to deepen my understanding of signal processing and grasp the foundations of why tools like the WT and HHT are used based on the characteristics of the signal being analyzed.&lt;/p>
&lt;p>All details of this work are available in the following &lt;a class="link" href="https://drive.google.com/file/d/1G5kasP3BzZPVuxrXArHM72pUVlkN9b2Q/view?usp=sharing" target="_blank" rel="noopener"
>report&lt;/a>.&lt;/p></description></item></channel></rss>