Skip to main content
. 2023 Jan 10;20(2):1215. doi: 10.3390/ijerph20021215
Algorithm 1: Data Generation Algorithm.
  • Require: use cases U, schemas S, questions Q, labels L

  •    Set the number of data points to be generated, n

  •    Initialize a counter i=0

  •    while i<n do

  •          Randomly select a use case uU

  •          Select a schema sS for use case u

  •          for j=1 to the number of questions, q do

  •              Randomly select an answer a for question qj based on the schema s for use case u

  •          end for

  •          Add the labels lu for use case u

  •          Increment the counter: i=i+1

  •    end while

  •    return Generated data