when the internal temperature during cooking doesn't reach a certain level, the enzyme 'phenoloxidase' can get activated, resulting in the deposition of melanin, or black pigment. the blackening can affect only part of the lobster, or almost the entire inside of the animal.