The invention discloses an
antibacterial peptide generation method,
system, equipment and medium, and relates to the technical field of
antibacterial peptide generation, the method comprises the following steps: obtaining
protein sequence data; inputting the
protein sequence data into an
antibacterial peptide generation model for training, and performing autoregression sampling on the
protein sequence data through an LSTM module to generate an
amino acid sequence; inputting the
amino acid sequence into a Transform module, performing word segmentation according to characters, converting the
amino acid sequence after word segmentation into an id sequence, and mapping the id sequence into an embedded vector; encoding the embedded vector through an
encoder, and inputting global features extracted by encoding into a decoder to generate a new amino acid sequence; identifying and screening the antibacterial characteristics of the new amino acid sequence to obtain an antibacterial
peptide sequence; inputting to-be-generated protein sequence data into the trained antibacterial
peptide generation model to generate an antibacterial
peptide sequence; the method improves the novelty and
antibacterial property of the new polypeptide sequence.