A method of training a set of models used by a first chemical sensing unit to generate an inference about one or more chemical characteristics of an environment, wherein the training uses information associated with a plurality of chemical sensing units not including the first chemical sensing unit, the method comprising:
- accessing the information associated with the plurality of chemical sensing units, wherein the information relates a plurality of signals output from the plurality of chemical sensing units to a mutual latent representation, wherein the mutual latent representation provides a common representation space for the plurality of signals output from the plurality of chemical sensing units;
- accessing a training dataset including values representing signals output from the first chemical sensing unit;
- and
- training the set of models associated with the first chemical sensing unit, using the training dataset and the information associated with the plurality of chemical sensing units, wherein training the set of models comprises:
- training a first model of the set of models to relate the values representing the signals output from the first chemical sensing unit to a feature representation;
- training a second model of the set of models to relate the feature representation to a latent representation;
- and
- training a third model to relate the latent representation to the mutual latent representation,
- wherein the first chemical sensing unit is configured to use the trained first, second, and third models to generate an inference about one or more chemical characteristics of the environment based on the first chemical sensing unit sensing at least one analyte.