Skip to main content
Log in

WB-KNN for emotion recognition from physiological signals

  • Published:
Optoelectronics Letters Aims and scope Submit manuscript

Abstract

K-nearest neighbor (KNN) has yielded excellent performance in physiological signals based on emotion recognition. But there are still some issues: the majority vote only by the nearest neighbors is too simple to deal with complex (like skewed) class distribution; features with the same contribution to the similarity will degrade the classification accuracy; samples in boundaries between classes are easily misclassified when k is larger. Therefore, we propose an improved KNN algorithm called WB-KNN, which takes into account the weight (both features and classification) and boundaries between classes. Firstly, a novel weighting method based on the distance and farthest neighbors named WDF is proposed to weight the classification, which improves the voting accuracy by making the nearer neighbors contribute more to the classification and using the farthest neighbors to reduce the weight of non-target class. Secondly, feature weight is introduced into the distance formula, so that the significant features contribute more to the similarity than noisy or irrelevant features. Thirdly, a voting classifier is adopted in order to overcome the weakness of KNN in boundaries between classes by combining different classifiers. Results of WB-KNN algorithm are encouraging compared with the traditional KNN and other classification algorithms on the physiological dataset with a skewed class distribution. Classification accuracy for 29 participants achieves 94.219 2% for the recognition of four emotions.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. Cover T and Hart P, IEEE Transactions on Information Theory 13, 21 (1967).

    Article  Google Scholar 

  2. Pedregosa F, Varoquaux G and Gramfort A, Journal of Machine Learning Research 12, 2825 (2011).

    Google Scholar 

  3. Kreibig S.D, Biological Psychology 84, 394 (2010).

    Article  Google Scholar 

  4. Kim K.H, Bang S.W and Kim S.R, Medical & Biological Engineering & Computing 42, 419 (2004).

    Article  Google Scholar 

  5. Li L and Chen J.H, International Conference on Intelligent Information Hiding and Multimedia, 355 (2006).

  6. Chang C.Y, Tsai J.S, Wang C.J and Chung P.C, IEEE Conference on Computational Intelligence in Bioinformatics &Computational Biology, 278 (2009).

  7. Gou J.P, Qiu W.M, Yi Z, Xu Y, Mao Q.R and Zhan Y.Z, ACM Transactions on Intelligent Systems and Technology 10, 1 (2019).

    Article  Google Scholar 

  8. Koelstra S, Muhl C, Soleymani M, Lee J.S, Yazdani A, Ebrahimi T, Pun T, Nijholt A and Patras I, IEEE Transactions on Active Computing 3, 18 (2012).

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Wanli Xue  (薛万利).

Additional information

This work has been supported by the National Natural Science Foundation of China (Nos.61906135 and U1509207), and the National Key R&D Program of China (No.2018YF-B1305200).

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Xie, W., Xue, W. WB-KNN for emotion recognition from physiological signals. Optoelectron. Lett. 17, 444–448 (2021). https://doi.org/10.1007/s11801-021-0118-2

Download citation

  • Received:

  • Revised:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11801-021-0118-2

Document code

Navigation