The ferulic acid is known to have strong antioxidant properties. In the present study, we have investigate the electronic structures of the ferulic acid and its radical extracting the hydrogen atom from its phenolic hydroxyl group. We have discussed the relation of the results with the radical scavenging activity with the DPPH reagent measured by Sakamoto et al. by machine learning.