Human microbiota mainly resides on the skin and in the gut. Human gut microbiota can produce a variety of short chain fatty acids (SCFAs) that affect many physiological functions and most importantly modulate brain functions through the bidirectional gut-brain axis. Similarly, skin microorganisms also have identical metabolites of SCFAs reported to be involved in maintaining skin homeostasis. However, it remains unclear whether these SCFAs produced by skin bacteria can affect brain cognitive functions. In this study, we hypothesize that the brain’s functional activities are associated with the skin bacterial population and examine the influence of local skin-bacterial growth on event-related potentials (ERPs) during an oddball task using EEG. Additionally, five machine learning (ML) methods were employed to discern the relationship between skin microbiota and cognitive functions. Twenty healthy subjects underwent three rounds of tests under different conditions—alcohol, glycerol, and water. Statistical tests confirmed a significant increase in bacterial population under water and glycerol conditions when compared to the alcohol condition. The metabolites of bacteria can turn phenol red from red–orange to yellow, confirming an increase in acidity. P3 amplitudes were significantly enhanced in response to only oddball stimulus at four channels (Fz, FCz, and Cz) and were observed after the removal of bacteria when compared with that under the water and glycerol manipulations. By using machine learning methods, we demonstrated that EEG features could be separated with a good accuracy (> 88%) after experimental manipulations. Our results suggest a relationship between skin microbiota and brain functions. We hope our findings motivate further study into the underlying mechanism. Ultimately, an understanding of the relationship between skin microbiota and brain functions can contribute to the treatment and intervention of diseases that link with this pathway.