Identifying nonclassicality from experimental data using artificial neural networks