A
display device that performs
image correction in accordance with external light environment is provided. The
display device includes a host device and an optical sensor. In addition, the
display device includes a
processing circuit. The host device has a function of performing arithmetic
processing using a neural
network on software and a function of performing
supervised learning with the neural network. The
processing circuit has a function of performing arithmetic processing using a neural
network on hardware. The optical sensor has a function of obtaining
illuminance of external light. The obtained
illuminance of external light is inputted to the host device, and a luminance and
color tone preferred by users are regarded as teacher data, whereby learning is performed on the neural network of the host device. A
weight coefficient obtained through the learning is used as a
weight coefficient of the neural network of the processing circuit. By inputting
illuminance of external light to the processing circuit, set values of luminance and
color tone selected by the users are calculated in the neural network of the processing circuit.