Text this: Designing a new model for Trojan horse detection using sequential minimal optimization