In this research, artificial neural networks, one of the most common branches of artificial intelligence, were used to evaluate the diameter of the cotton yarn. The necessary data were collected and practical tests were carried out. Then, an algorithm for the artificial neural network was established, which provides the possibility of determining the yarn diameter from the input variables, represented by the count and twist yarn. Where after the creation of many networks, one was selected which gave the lowest error rate.