A hybrid quantum-perfected model of artificial intelligence in the problem of automatic recognition