Transportation Safety Board (TSB) investigators are working to understand the cause of a 37-car train derailment that occurred Thursday night west of Edmonton.