Machine learning towards data with complex structures