Integrated Ai Security And Efficiency: Trustworthiness, Trojan Detection, And Performance Acceleration