Machine analysis of pion scattering by the maximum likelihood method