There currently is one option to travel by night train from Ylivieska (Finland) to Humppila (Finland), taking between approximately 7 and 9 hours: Namely the Yöjuna 266 operated by VR.
VR, Finland's national railway operator, runs passenger trains throughout the country, including overnight services to northern Finland.