A multilayer intelligent system architecture and its application to a music recommendation system