Features (variable) ranking/selection

3 ビュー (過去 30 日間)
Mihnea
Mihnea 2014 年 4 月 12 日
コメント済み: Mihnea 2014 年 4 月 12 日
Hello,
I am working on a mood detection from audio files algorithm and I need to compare results in variables (scalar) then display an answer based on that comparison.
For example: if variable1 = 1 and (variable2 = 1 or variable2 = 2) then display 'x'.
The problem is each variable has a different weight when I am displaying the results (i.e. variable1 weighs 40% and variable2 weighs 50%).
Is there any way to do this using any MATLAB functions?
I've turned the Internet upside down looking for an answer but couldn't find anything that would help me.
Thank you in advance for your help!
Kind regards,
Mihnea
  2 件のコメント
Jan
Jan 2014 年 4 月 12 日
編集済み: Jan 2014 年 4 月 12 日
It is not clear how the weights are connected to your question. What does it mean for the IF-statement, that variable2 has a weight of 50% (by the way, 50% of what?)?
Do you have a fair application for this program? Or is it thought to support the NSA to detect phone calls of angry European persons?
Mihnea
Mihnea 2014 年 4 月 12 日
編集済み: Mihnea 2014 年 4 月 12 日
There are five variables (dynamics, tempo, pitch, keymode and timbre) each with a different importance when it comes to finding the mood of a song.
It is supposed to contribute towards understanding how features of an audio signal influence actual music (tempo, pitch, etc.). It is a final year project.
The if statement part is stupid but I couldn't explain it any other way.

サインインしてコメントする。

採用された回答

Image Analyst
Image Analyst 2014 年 4 月 12 日
As you can see by now, you're making yourself clear and no one knows what you mean. I just thought I'd add my guess to the mix. Create a weighted value, then threshold it.
value = weight1 * dynamics + ...
weight2 * tempo + ...
weight3 * pitch + ...
weight4 * keymode + ...
weight5 * timbre;
if value > someThreshold
% Do something.
else
% Do something else.
end
  1 件のコメント
Mihnea
Mihnea 2014 年 4 月 12 日
Thank you, will try it this way!
Have a nice evening, Mihnea

サインインしてコメントする。

その他の回答 (2 件)

Jos (10584)
Jos (10584) 2014 年 4 月 12 日
What do you exactly mean "the variable has a weight"?
  1 件のコメント
Mihnea
Mihnea 2014 年 4 月 12 日
Each makes up a certain percentage from the final answer e.g.:
var1 is 40%
var2 is 25%
var3 is 15%
var4 and var5 are 10%

サインインしてコメントする。


Mihnea
Mihnea 2014 年 4 月 12 日
No one, no idea?

カテゴリ

Help Center および File ExchangeAudio Processing Algorithm Design についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by