Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using mask to reconstruct clean signal #10

Open
bestfzy opened this issue Jan 3, 2022 · 4 comments
Open

Using mask to reconstruct clean signal #10

bestfzy opened this issue Jan 3, 2022 · 4 comments

Comments

@bestfzy
Copy link

bestfzy commented Jan 3, 2022

From your code and literature, I found that when you make the mask, you get the mask by taking the ratio of the absolute value of the signal and the noise. However, when you use the mask to get the reconstructed denoising signal, the result is also It should be the absolute value of the signal. How did you convert it into a real signal?
In addition, you are performing short-time Fourier transform on the signal. Do you think it is different from the wavelet packet transform and its advantages and disadvantages?
I have sent you a lot of emails, but they may be treated as spam. Hope to get your reply, thank you very much.

@wayneweiqiang
Copy link
Collaborator

Hi, thanks for your email. What do you mean a real signal? The reconstructed "signal = noisy signal * mask", where mask is the ratio between "signal" and "signal + noise"

I use STFT just for simplicity. You can also try wavelet transform. What is your email address? Sorry I missed your previous emails.

@bestfzy
Copy link
Author

bestfzy commented Jan 3, 2022

image
image

The above two figures show that how to make mask and how to reconstruct denoised signal with mask. And i have some questions about the precess. The time–frequency coefficients array's size is (31201), for a single coefficient, it's mask making and reconstruction also obey the rule.
For example, if we set the ratiol is 1, the coefficient of signal is 1+1j, correspond coefficient of noise is 1-1j, then the coefficient of noise_signal is 2+0j, the mask of singal is abs(1+1j)/[abs(1+1j) + 1
abs(1-1j)]=0.5, the coefficient of reconstruct denoised signal is 0.5*(2+0j)=1+0j != 1+1j, even we predict the ture mask , we still can not get the true coefficient of signal !!! So I want to ask that how you treat this problem. Thank you for your time!

Besides, my email address is [email protected].

@bestfzy
Copy link
Author

bestfzy commented Jan 3, 2022

And I have another question. Regarding the preparation of the noisy signal in your code, you perform STFT of the signal and noise separately, and then normalize their Fourier coefficients, and then superimpose randomly. However, when this superposition The ratio you obtain is a fixed range. How do you consider the determination of this range?
image
In the picture ,the noise_mean is 2,and the noise_std is 1.How do you determine these two coefficients?
During the summer vacation, I saw your explanation in the "Seismology Algorithms and Procedures Training Course", but I still knew a little at the time. I wonder if I can ask you some questions via email. I am sorry to disturb you, but I still hope to be able to Get your reply!

@wayneweiqiang
Copy link
Collaborator

wayneweiqiang commented Jan 4, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants