The part of implemtation
Corresponding paper: https://ieeexplore.ieee.org/document/8716726/keywords#keywords
K. Wang, J. He and L. Zhang, "Attention-Based Convolutional Neural Network for Weakly Labeled Human Activities’ Recognition With Wearable Sensors," in IEEE Sensors Journal, vol. 19, no. 17, pp. 7598-7604, 1 Sept.1, 2019, doi: 10.1109/JSEN.2019.2917225.