The invention discloses an
R language-based optimal extraction technology for extracting
saponin and total flavonoids in liquorice. A
central composite design experiment in a response surface method is adopted, the
saponin content and flavone content in liquorice are used as detection indexes, and an
entropy weight method in an
R language environment is adopted for weight assignment of the two indexes, a BP neural network and
genetic algorithm mathematical model is established, and target optimizing is performed for the extraction technology to obtain an optimal extraction technology. The optimal extraction conditions are as follows: the
ammonia concentration is 0.62%, the
ethanol concentration is 64%, the
reflux time is 1.8h, and the liquid-
solid ratio is 12:1. Relative error between the comprehensive evaluation predicted value of the model and the average comprehensive evaluation value of a
verification experiment is 1.43%, proving relatively good
predictability of the
neutral network and
genetic algorithm. In the invention, the established
mathematical model searching for the optimal extraction conditions for extracting
saponin and total flavonoids in liquorice is scientific and feasible, and new reference and idea are provided for optimizing multiple targets of the chemical components and even effective substance basis of
traditional Chinese medicine.