extract global context features