Towards integrating intelligence in electronic skin