Event detection algorithm based on label semantic encoding | Synapse