Classification of planetary nebulae by cluster analysis and artificial neural networks