A new model for analyzing antimicrobial peptides with biomedical applications