create your own web page for free

Artificial Psychosocial Framework for Affective 
Non-Player Characters

My research project focused on character creation using Affective Computing.

This type of computing involves designing algorithms in computer sciences that are based on concepts from psychology. Affective Non-Player Characters (ANPC) have the same functions as a Non-Player Character (NPC). However, ANPCs can simulate the process of generating emotions like humans. ANPCs are socially aware of other ANPCs, have intrinsic motivations, and can empathize with the player. 


This research intrigued me because I specialize in Artificial Intelligence (AI) and have an interest in Psychology. Games such as “Left 4 Dead” and “This war of mine” have had a lasting impact on me. These games, at their core, combine elements of psychology and AI to influence the gameplay. When developing a game, designers may wish to personify NPCs to react more like a human. However, programmers create NPC behavior based solely on logic. This research provides programmers tools to represent NPCs with a set of affective responses.


What solidified my decision was from a 2018 GDC AI summit (Click here to watch). A panel of game designers discuss their wish list of future AI features to consider. From the talk, there were four features in particular that I kept in mind throughout the project. 

  1. AI that focuses on non-combat and allows NPCs to react to inputs at unpredictable moments.                                                                                                                                                     
  2. A system that is based on creditable research on human development.                                    
  3. Working with NPCs that are not just good or bad but have varied characteristics.                  
  4. A framework implemented in a game engine that enables developers to balance values and create content.

I researched this topic for six months and created a library in three months that is integrated into the Unreal Engine. From this project, I had a crash course in affective computing, learned the process of modelers creating a cognitive system, and able to connect a static library to an API. This changes the perspective of AI design from solving a problem from strict logic, to react and reason. Developing with ANPCs can lead to procedurally populating entities in environments, managing ANPCs through a traumatic event, choosing non-violent actions for exciting scenarios, animating facial micro-expression, and producing emotional prosody.