Great question! You're describing an exciting and emerging field known as Human Computer Interaction (HCI).
From wikipedia: HCI researches the design and use of computer technology, focused on the interfaces between people and computers. Researchers in the field of HCI both observe the ways in which humans interact with computers and design technologies that let humans interact with computers in novel ways. As a field of research, human-computer interaction is situated at the intersection of computer science, behavioral sciences, design, media studies, and several other fields of study.
I'd recommend digging into the HCI research to learn more. I've linked a few resources to get you started below. Also, several colleges like Carnegie Mellon, University of Washington, Stanford, Georgia Institute of Technology, and others (see below) have HCI programs and classes.
Dhairya recommends the following next steps:
- HCI graduate programs and classes: https://medium.theuxblog.com/best-hci-graduate-programs-in-the-us-fb02387c59f9
- Overview of the field today: https://www.semanticscholar.org/paper/Human-Computer-Interaction%3A-Overview-on-State-of-t-Karray-Alemzadeh/ac74d9c6e4e04550e2a76856fbd661db1f695596
- Wikipedia: https://en.wikipedia.org/wiki/Human%E2%80%93computer_interaction