Fluorine widely exists in nature, and its element is one of the most oxidizing substances among all elements. It can even react with some inert gases to form corresponding fluorides. Due to this special chemical property, fluorine has a wide range of applications in many fields including medicine, chemical industry, aerospace and atomic energy. Therefore, the development of water defluorination technology is related to human health and happy life, as well as environmental health and water quality safety. The research purpose of this paper is the biological monitoring index of fluorine pollution animal husbandry ecological environment based on machine learning algorithm. Using machine learning algorithm and diversity index in the experiment, from the alarm value and grading standard of poultry manure load, the environmental impact of fluorine-contaminated livestock and poultry manure and other pollutants, and the biological monitoring of fluorine-contaminated livestock and poultry ecological environment three aspects of the indicators were analyzed experimentally.