I am building analytics starting from blockchain raw data (blk**.dat files).
I have read in the bitcoin wiki that once the inputs have been chosen for a transaction, they must be all used: so a change is generated back to the original sender (via the same address or a different change one, depending on the client configuration).
While building analytics, I would like to exclude these outputs from any kind of metric, since they let the coin work but do not represent any intelligence at all.
Is there a way to looking at the outputs of a transaction and split them into meaningful sent amounts and change?