Smart mattress to support neonatal babies