When thinking about something the brain can use two systems, fast and shallow or slow and deep. To engage in deep thought and explore new ideas the slow mode should be engaged.
Changes in pupil dilation and heart rate have been linked to the different systems:
This project looks to utilise a Raspberry Pi zero, endoscopic USB camera, digital heart rate sensor, LiPo battery and charger circuit and LED feedback.
Software OpenCV and Python