  Contact binary may be the progenitor of a red nova that eventually produces a
merger event and have a cut-off period around 0.2 days. Therefore, a large
number of contact binaries is needed to search for the progenitor of red novae
and to study the characteristics of short-period contact binaries. In this
paper, we employ the Phoebe program to generate a large number of light curves
based on the fundamental parameters of contact binaries. Using these light
curves as samples, an autoencoder model is trained, which can reconstruct the
light curves of contact binaries very well. When the error between the output
light curve from the model and the input light curve is large, it may be due to
other types of variable stars. The goodness of fit (R2) between the output
light curve from the model and the input light curve is calculated. Based on
the thresholds for global goodness of fit (R2), period, range magnitude, and
local goodness of fit (R2), a total of 1322 target candidates were obtained.
