The invention relates to the technical field of digital
information transmission, and discloses a
Morse code encoding and decoding method and
system based on
artificial intelligence, and the method comprises the steps: converting text information into an initial dot symbol sequence according to a standard
Morse code mapping table, collecting channel characteristic parameters and inputting the channel characteristic parameters into the lightweight
decision tree model to determine a
time sequence characteristic weight vector; optimizing the initial dot-drawn symbol sequence to generate an optimized dot-drawn symbol sequence; calculating an absolute
transmission time length, dynamically adjusting a transmission power and a waveform envelope parameter in combination with a multipath
fading coefficient of a channel, and generating a coded
signal; and demodulating the received
signal to obtain a
time sequence feature weight vector used by a sending end, performing envelope detection on the
baseband signal, segmenting according to the
time sequence feature weight vector to obtain a dot symbol sequence, and converting according to a standard
Morse code mapping table to obtain decoded text information. According to the method, the encoding and decoding problems of the Morse code in a dynamic environment are solved, and the method can be operated on edge equipment.