updated the function of IoTIDRecognizeAlg