1. A system comprising: a camera configured to capture video data; a buffer configured to store a most recent window of the video data captured by the camera; a sensor data analysis module configured to determine an emotional or cognitive state of a user based at least in part on sensor data representing a physiological condition of a user; and a recording module configured to: detect a change from a first emotional or cognitive state of the user to a second emotional or cognitive state of the user; in response to detecting the change from the first emotional or cognitive state of the user to the second emotional or cognitive state of the user, create a video segment that at least includes the most recent window of the video data stored in the buffer; and store metadata with the video segment, wherein the metadata indicates the second emotional or cognitive state of the user.