Implementation of artificial intelligence in optimisation of technological processes