Study of young stellar objects and associated filamentary structures in the inner Galaxy