Near-infrared spectroscopy (NIRS) has been widely used in medical imaging to observe oxygenation and hemodynamic responses in the cerebral cortex. In this paper, the major target is reporting our current study about the computational investigation of functional near infrared spectroscopy (fNIRS) in the somatosensory region with noxious stimulations. Based on signal processing technologies within communication network, the related technologies are applied, including cross correlation analysis, optic flow, and wavelet. The visual analysis exposed pain-related activations in the primary somatosensory cortex (S1) after stimulation which is consistent with similar studies, but the cross correlation results strongly evidenced dominant channels on both cerebral hemispheres. Our investigation also demonstrated that the spatial distribution of the cortical activity origin can be described by the hemodynamic responses in the cerebral cortex after evoked stimulation using near infrared spectroscopy. The current outcomes of this computational investigation explore that it is good potential to be employed to deal with pain assessment in human subjects.