Automated Generation of Metadata for Mining Image and Text Data