A New Approach for Knowledge Generation Using Active Inference