How to gather and prepare data for AI algorithms?