With the increasing demand for healthy, environmental protection and comfortable spinning products, higher requirements have been put forward on the quality and output of spinning production for chemical raw material. In order to realize the on-site monitoring and remote monitoring of the production process on the spinning production line of chemical raw material, this paper selects the ant colony optimization algorithm (ACO) as control algorithm, and designs the production line control system based on the control scheme of spinning automatic production line for chitosan fiber chemical raw material. The results show that the automatic production line control system for chemical raw materials includes bottom monitoring and remote monitoring. The introduction of ACO algorithm into the parameter optimization of the traditional PID control system can realize the modeling of the coagulation bath control system with the advantages of short rise time and adjustment time, and small overshoot. In terms of the algorithm stability and the difficulty, it can be seen that the ACO algorithm is superior in the parameter optimization.