Optimal Guard Node Placement Using SGLD and Energy Factor