The invention provides a method for detecting the
microorganism content in a complex solution based on an
ultraviolet-
visible spectrum, for effectively solving the problems of
red shift of a characteristic spectrum peak of a
microorganism in the spectrum caused by complex detection background components, overlap of the spectrum peaks between a medium component and the
microorganism, and
spectral noise interference and the like. According to the method provided by the invention,
cow milk is used as a detection background, the
Escherichia coli is used as a detection object, and the method comprises the steps of: firstly performing activation, separation and purification on
Escherichia coli
powder to obtain bacterial suspension of
Escherichia coli; obtaining the
ultraviolet-visible spectra ofbacterial suspension to be detected with different concentrations in the
cow milk by using an
ultraviolet-visible spectrophotometer; eliminating
baseline drift,
spectral noise interference and otherproblems caused by the scattering of macromolecules such as
protein, fat and the like in the
cow milk by using standard normal variable transformation; separating an overlapping spectrum of the cow milk and the
Escherichia coli by using a two-dimensional
correlation analysis method; and establishing a prediction model based on an RBF neural network to realize the quantitative detection of the total number of the
Escherichia coli in the cow milk.