Skip to main content
. 2018 Nov 2;18(11):3744. doi: 10.3390/s18113744
Algorithm 1 Insufficient Data Reinforcement
Input:  TDS(1N)—Target User Dataset
     IDS(1M)—Initial Multiple User Dataset
     FN—Number of Features
     C—Number of Classes
Output: S (1...K)—Selected Similar Emotional Speeches Dataset
for i = 1 to N do
 TFeatureVectori = extractFeatures(TDSi);
 TEmoLabeli = getLabel(TDSi);
end
for i = 1 to C do
   cnt = 0;
   for j = 1 to FN do
    for k = 0 to N do
     if TEmoLabel k = i then
      Tsumij =Tsumij +TFeatureVectorkj ;
      cnt ++;
     end
    end
    Tmeans ij = Tsumij/cnt;
   end
end
for i = 1 to C do
   for j = 1 to M do
    IFeatureVector = extractFeatures(IDSj);
    Distancesij = d(Tmeansi, IFeatureVector);
   End
end
S = Sorting (Distances, IDS);
Return S;