Chronic pain is primarily treated with pharmaceuticals, but the effects remain unsatisfactory. A promising alternative therapy is peripheral nerve stimulation (PNS), but it has been associated with suboptimal efficacy because its modulation mechanisms are not clear and the current therapies are primarily open loop (ie, manually adjusting the stimulation parameters). In this study, we developed a proof-of-concept computational modeling as the first step toward implementing closed-loop PNS in future biological studies. When developing new pain therapies, a useful pain biomarker is the wide-dynamic-range (WDR) neuron activity in the dorsal horn. In healthy animals, the WDR neuron activity occurs in a stereotyped manner; however, this response profile can vary widely after nerve injury to create a chronic pain condition. We hypothesized that if injury-induced changes of neuronal response can be normalized to resemble those of a healthy condition, the pathological aspects of pain may be treated while maintaining protective physiological nociception.