Technologies are described herein for modifying the modality of a computing device based upon a user's brain activity. A machine learning classifier is trained using data that identifies a modality for operating a computing device and data identifying brain activity of a user of the computing device. Once trained, the machine learning classifier can select a mode of operation for the computing device based upon a user's current brain activity and, potentially, other biological data. The computing device can then be operated in accordance with the selected modality. An application programming interface can also expose an interface through which an operating system and application programs executing on the computing device can obtain data identifying the modality selected by the machine learning classifier. Through the use of this data, the operating system and application programs can modify their mode of operation to be most suitable for the user's current mental state.
Please help me write a proper abstract based on the patent claims. CLAIM: 1. A computer-implemented method, comprising: training a machine learning model using data identifying a modality for operating a computing device and data identifying first brain activity of a user of the computing device while the computing device is operating in the modality; receiving data identifying second brain activity of the user while operating the computing device; utilizing the machine learning model and the data identifying the second brain activity of the user to select one of a plurality of modalities for operating the computing device; and causing the computing device to operate in accordance with the selected modality. 2. The computer-implemented method of claim 1, further comprising exposing data identifying the selected one of the plurality of modalities by way of an application programming interface (API). 3. The computer-implemented method of claim 1, wherein the plurality of modalities comprise: a first modality in which a first virtual machine is executed on the computing device; and a second modality in which a second virtual machine is executed on the computing device. 4. The computer-implemented method of claim 1, wherein the plurality of modalities comprise: a first modality in which a first virtual desktop is displayed by the computing device; and a second modality in which a second virtual desktop is displayed by the computing device. 5. The computer-implemented method of claim 1, wherein the plurality of modalities comprise: a first modality in which messages directed to the user received at the computing device are suppressed; and a second modality in which messages directed to the user received at the computing device are not suppressed. 6. The computer-implemented method of claim 1, wherein the plurality of modalities comprise: a first modality in which a first plurality of user interface windows are presented by the computing device; and a second modality in which a second plurality of user interface windows are presented by the computing device. 7. The computer-implemented method of claim 1, wherein the plurality of modalities comprise: a first modality in which a user interface element corresponding to a first application that can be selected to execute the first application on the computing device is emphasized; and a second modality in which a user interface element corresponding to a second application that can be selected to execute the second application on the computing device is emphasized. 8. The computer-implemented method of claim 1, wherein the plurality of modalities comprise: a first modality in which a hardware component of the computing device is enabled; and a second modality in which the hardware component of the computing device is not enabled. 9. The computer-implemented method of claim 1, wherein the plurality of modalities comprise: a first modality in which an application executing on the computing device is presented in a full screen mode of operation; and a second modality in which the application executing on the computing device is not presented in the full screen mode of operation. 10. An apparatus, comprising: one or more processors; and at least one computer storage medium having computer executable instructions stored thereon which, when executed by the one or more processors, cause the apparatus to expose an application programming interface (API) for providing data identifying a modality for operating the apparatus, receive a request at the API, utilize a machine learning model to select one of a plurality of modalities for operating the apparatus, the one of the plurality of modalities for operating the apparatus being selected based, at least in part, upon data identifying brain activity of a user of the apparatus, and provide data identifying the selected one of the plurality of modalities for operating the apparatus responsive to the request. 11. The apparatus of claim 10, wherein the plurality of modalities comprise: a first modality in which a first virtual machine is executed by the one or more processors; and a second modality in which a second virtual machine is executed by the one or more processors. 12. The apparatus of claim 10, wherein the plurality of modalities comprise: a first modality in which a first virtual desktop is presented by the apparatus on a display device; and a second modality in which a second virtual desktop is presented by the apparatus on a display device. 13. The apparatus of claim 10, wherein the plurality of modalities comprise: a first modality in which messages directed to the user received at the apparatus device are suppressed; and a second modality in which messages directed to the user received at the apparatus are not suppressed. 14. The apparatus of claim 10, wherein the plurality of modalities comprise: a first modality in which a first plurality of user interface windows are presented by the apparatus on a display device; and a second modality in which a second plurality of user interface windows are presented by the apparatus on a display device. 15. The apparatus of claim 10, wherein the plurality of modalities comprise: a first modality in which a user interface element corresponding to a first application that can be selected to execute the first application on the one or more processors is emphasized; and a second modality in which a user interface element corresponding to a second application that can be selected to execute the second application on the one or more processors is emphasized. 16. A computer storage medium having computer executable instructions stored thereon which, when executed by one or more processors, cause the processors to: expose an application programming interface (API) for providing data identifying a modality for operating a computing device; receive a request at the API; utilize a machine learning model to select one of a plurality of modalities for operating the computing device, the one of the plurality of modalities for operating the computing device being selected based, at least in part, upon data identifying brain activity of a user of the computing device; and provide data identifying the selected one of the plurality of modalities for operating the computing device responsive to the request. 17. The computer storage medium of claim 16, wherein the plurality of modalities comprise: a first modality in which an application executing on the computing device is presented in a full screen mode of operation; and a second modality in which the application executing on the computing device is not presented in the full screen mode of operation. 18. The computer storage medium of claim 16, wherein the plurality of modalities comprise: a first modality in which a hardware component of the computing device is enabled; and a second modality in which the hardware component of the computing device is not enabled. 19. The computer storage medium of claim 16, wherein the plurality of modalities comprise: a first modality in which a user interface element corresponding to a first application that can be selected to execute the first application on the computing device is emphasized; and a second modality in which a user interface element corresponding to a second application that can be selected to execute the second application on the computing device is emphasized. 20. The computer storage medium of claim 16, wherein the plurality of modalities comprise: a first modality in which a first plurality of user interface windows are presented by the computing device; and a second modality in which a second plurality of user interface windows are presented by the computing device.