What is a neural network and how does it function in machine learning? How are artificial neurons connected to process and learn from data? What are the different layers in a neural network and their roles? How do neural networks improve performance in tasks like image recognition and prediction? What are the advantages and limitations of neural networks in real-world applications?