Roger Federer believes the recent controversies at the US Open with Serena Williams and Alize Cornet need to be studied in order to avoid further cases in the future.