Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    TypeError
Message:      Couldn't cast array of type
struct<Grade: string, School-status: string, Gender: string, Age: int64, Height-cm: int64, Weight-kg: double, Father-education: string, Father-occupation: string, Mother-education: string, Mother-occupation: string, Left-behind-child-status: string, Years-left-behind: string, Main-caregiver: string, Parent-departure-age: string, Caregiver-relationship: string, Only-child: string, Sibling-count: string, Birth-order: string, Living-with: string, Lived-on-campus: string, Campus-start-stage: string, Campus-duration: string, Current-residence: string, Family-finances: string, Parental-long-term-care: string, Long-term-illness: string, Illness-impact-on-life: string, COVID-19-infection: string, Infection-times: string, Natural-disaster-experience: string, Disaster-types: string, Smoking-habit: string, Alcohol-use: string, Body-weight-view: string, Weight-control: string, Counseling-experience: string, Self-harm-behavior: string, Aggressive-behavior: string, Daily-exercise-30min: string, Internet-use: string, Online-learning-types: string, Chinese-grade: string, Math-grade: string, English-grade: string, Morality-and-law-grade: string, Science-grade: string, Close-friends: int64, Mental-health-help: string, Concentration-time: int64, Parents-relationship: string, Parents-suggestions: string, Weekly-psychology: string, Weekly-music: string, Weekly-art: string, Weekly-PE: string, Bloating: string, Stomach-pain: string, Acid-reflux: string, Poor-appetite: string, Constipation: string, 
...
 string, Headaches: string, Neck-pain: string, Shoulder-pain: string, Chest-pain: string, Abdominal-pain: string, Lower-back-pain: string, Back-pain: string, Limb-pain: string, Being-laughed-at: string, Social-isolation: string, Verbal-bullying: string, Physical-bullying: string, Disliked-nicknames: string, Property-damage: string, School-bullying: string, Online-offensive-messages: string, Online-impersonation: string, Childhood-hunger-neglect: string, Lost-parental-care: string, Verbal-abuse: string, Felt-unloved: string, Physical-abuse: string, Experience-health-impact: string, Family-misunderstandings: string, Crisis-support: string, Family-openness: string, Express-emotions: string, Negative-home-atmosphere: string, Family-tolerance: string, Family-decision-difficulty: string, Problem-solving-decisions: string, Family-trust: string, Classmate-relations: string, Classmate-support: string, Teacher-respect: string, Poor-grade-respect: string, Limited-entertainment-time: string, Teacher-fairness: string, Heavy-academic-burden: string, Teacher-trust: string, Classmate-respect: string, Classmate-affection-lack: string, Teacher-belief-success: string, Teacher-pressure: string, Student-teacher-liking: string, Peer-support: string, Seek-family-friend-help: string, Friends-support: string, Rely-on-family-friends: string, Family-friend-care: string, Financial-support: string, Help-seeking-initiative: string, Peer-talk-when-troubled: string, Emotional-support-family-friends: string>
to
{'Grade': Value('string'), 'School-status': Value('string'), 'Gender': Value('string'), 'Age': Value('int64'), 'Height-cm': Value('int64'), 'Weight-kg': Value('float64'), 'Father-education': Value('string'), 'Father-occupation': Value('string'), 'Mother-education': Value('string'), 'Mother-occupation': Value('string'), 'Left-behind-child-status': Value('string'), 'Years-left-behind': Value('string'), 'Main-caregiver': Value('string'), 'Parent-departure-age': Value('string'), 'Caregiver-relationship': Value('string'), 'Only-child': Value('string'), 'Sibling-count': Value('string'), 'Birth-order': Value('string'), 'Living-with': Value('string'), 'Lived-on-campus': Value('string'), 'Campus-start-stage': Value('string'), 'Campus-duration': Value('string'), 'Current-residence': Value('string'), 'Family-finances': Value('string'), 'Parental-long-term-care': Value('string'), 'Long-term-illness': Value('string'), 'Illness-impact-on-life': Value('string'), 'COVID-19-infection': Value('string'), 'Infection-times': Value('string'), 'Natural-disaster-experience': Value('string'), 'Disaster-types': Value('string'), 'Smoking-habit': Value('string'), 'Alcohol-use': Value('string'), 'Body-weight-view': Value('string'), 'Weight-control': Value('string'), 'Counseling-experience': Value('string'), 'Self-harm-behavior': Value('string'), 'Aggressive-behavior': Value('string'), 'Daily-exercise-30min': Value('string'), 'Internet-use': Value('string'), 'Online-learning-types': Value('string'), 'Chin
...
th-impact': Value('string'), 'Family-misunderstandings': Value('string'), 'Crisis-support': Value('string'), 'Family-openness': Value('string'), 'Family-acceptance': Value('string'), 'Avoid-scary-talks': Value('string'), 'Express-emotions': Value('string'), 'Negative-home-atmosphere': Value('string'), 'Family-tolerance': Value('string'), 'Family-decision-difficulty': Value('string'), 'Problem-solving-decisions': Value('string'), 'Crisis-mutual-support': Value('string'), 'Family-trust': Value('string'), 'Teacher-care': Value('string'), 'Classmate-relations': Value('string'), 'Classmate-support': Value('string'), 'Teacher-respect': Value('string'), 'Excessive-class-hours': Value('string'), 'Poor-grade-respect': Value('string'), 'Limited-entertainment-time': Value('string'), 'Teacher-fairness': Value('string'), 'Classmate-consideration': Value('string'), 'Classmate-respect': Value('string'), 'Teacher-friend-view': Value('string'), 'Classmate-affection-lack': Value('string'), 'Teacher-belief-success': Value('string'), 'Classmate-honesty': Value('string'), 'Teacher-pressure': Value('string'), 'Student-teacher-liking': Value('string'), 'Seek-help-in-choices': Value('string'), 'Seek-family-friend-help': Value('string'), 'Friends-support': Value('string'), 'Rely-on-family-friends': Value('string'), 'Emotional-support-from-peers': Value('string'), 'Care-when-sick': Value('string'), 'Emotional-support-family-friends': Value('string'), 'Help-from-peers-in-difficulties': Value('string')}
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 147, in get_rows_or_raise
                  return get_rows(
                      dataset=dataset,
                  ...<4 lines>...
                      column_names=column_names,
                  )
                File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 127, in get_rows
                  rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
                File "/src/services/worker/src/worker/utils.py", line 483, in safe_iter
                  yield from ds.decode(False) if ds.features else ds
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2951, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2461, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2486, in _iter_arrow
                  for key, pa_table in self.ex_iterable._iter_arrow():
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 547, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 430, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 343, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2312, in cast_table_to_schema
                  cast_array_to_feature(
                  ~~~~~~~~~~~~~~~~~~~~~^
                      table[name] if name in table_column_names else pa.array([None] * len(table), type=schema.field(name).type),
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                      feature,
                      ^^^^^^^^
                  )
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 1861, in wrapper
                  return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
                                           ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2158, in cast_array_to_feature
                  raise TypeError(f"Couldn't cast array of type\n{_short_str(array.type)}\nto\n{_short_str(feature)}")
              TypeError: Couldn't cast array of type
              struct<Grade: string, School-status: string, Gender: string, Age: int64, Height-cm: int64, Weight-kg: double, Father-education: string, Father-occupation: string, Mother-education: string, Mother-occupation: string, Left-behind-child-status: string, Years-left-behind: string, Main-caregiver: string, Parent-departure-age: string, Caregiver-relationship: string, Only-child: string, Sibling-count: string, Birth-order: string, Living-with: string, Lived-on-campus: string, Campus-start-stage: string, Campus-duration: string, Current-residence: string, Family-finances: string, Parental-long-term-care: string, Long-term-illness: string, Illness-impact-on-life: string, COVID-19-infection: string, Infection-times: string, Natural-disaster-experience: string, Disaster-types: string, Smoking-habit: string, Alcohol-use: string, Body-weight-view: string, Weight-control: string, Counseling-experience: string, Self-harm-behavior: string, Aggressive-behavior: string, Daily-exercise-30min: string, Internet-use: string, Online-learning-types: string, Chinese-grade: string, Math-grade: string, English-grade: string, Morality-and-law-grade: string, Science-grade: string, Close-friends: int64, Mental-health-help: string, Concentration-time: int64, Parents-relationship: string, Parents-suggestions: string, Weekly-psychology: string, Weekly-music: string, Weekly-art: string, Weekly-PE: string, Bloating: string, Stomach-pain: string, Acid-reflux: string, Poor-appetite: string, Constipation: string, 
              ...
               string, Headaches: string, Neck-pain: string, Shoulder-pain: string, Chest-pain: string, Abdominal-pain: string, Lower-back-pain: string, Back-pain: string, Limb-pain: string, Being-laughed-at: string, Social-isolation: string, Verbal-bullying: string, Physical-bullying: string, Disliked-nicknames: string, Property-damage: string, School-bullying: string, Online-offensive-messages: string, Online-impersonation: string, Childhood-hunger-neglect: string, Lost-parental-care: string, Verbal-abuse: string, Felt-unloved: string, Physical-abuse: string, Experience-health-impact: string, Family-misunderstandings: string, Crisis-support: string, Family-openness: string, Express-emotions: string, Negative-home-atmosphere: string, Family-tolerance: string, Family-decision-difficulty: string, Problem-solving-decisions: string, Family-trust: string, Classmate-relations: string, Classmate-support: string, Teacher-respect: string, Poor-grade-respect: string, Limited-entertainment-time: string, Teacher-fairness: string, Heavy-academic-burden: string, Teacher-trust: string, Classmate-respect: string, Classmate-affection-lack: string, Teacher-belief-success: string, Teacher-pressure: string, Student-teacher-liking: string, Peer-support: string, Seek-family-friend-help: string, Friends-support: string, Rely-on-family-friends: string, Family-friend-care: string, Financial-support: string, Help-seeking-initiative: string, Peer-talk-when-troubled: string, Emotional-support-family-friends: string>
              to
              {'Grade': Value('string'), 'School-status': Value('string'), 'Gender': Value('string'), 'Age': Value('int64'), 'Height-cm': Value('int64'), 'Weight-kg': Value('float64'), 'Father-education': Value('string'), 'Father-occupation': Value('string'), 'Mother-education': Value('string'), 'Mother-occupation': Value('string'), 'Left-behind-child-status': Value('string'), 'Years-left-behind': Value('string'), 'Main-caregiver': Value('string'), 'Parent-departure-age': Value('string'), 'Caregiver-relationship': Value('string'), 'Only-child': Value('string'), 'Sibling-count': Value('string'), 'Birth-order': Value('string'), 'Living-with': Value('string'), 'Lived-on-campus': Value('string'), 'Campus-start-stage': Value('string'), 'Campus-duration': Value('string'), 'Current-residence': Value('string'), 'Family-finances': Value('string'), 'Parental-long-term-care': Value('string'), 'Long-term-illness': Value('string'), 'Illness-impact-on-life': Value('string'), 'COVID-19-infection': Value('string'), 'Infection-times': Value('string'), 'Natural-disaster-experience': Value('string'), 'Disaster-types': Value('string'), 'Smoking-habit': Value('string'), 'Alcohol-use': Value('string'), 'Body-weight-view': Value('string'), 'Weight-control': Value('string'), 'Counseling-experience': Value('string'), 'Self-harm-behavior': Value('string'), 'Aggressive-behavior': Value('string'), 'Daily-exercise-30min': Value('string'), 'Internet-use': Value('string'), 'Online-learning-types': Value('string'), 'Chin
              ...
              th-impact': Value('string'), 'Family-misunderstandings': Value('string'), 'Crisis-support': Value('string'), 'Family-openness': Value('string'), 'Family-acceptance': Value('string'), 'Avoid-scary-talks': Value('string'), 'Express-emotions': Value('string'), 'Negative-home-atmosphere': Value('string'), 'Family-tolerance': Value('string'), 'Family-decision-difficulty': Value('string'), 'Problem-solving-decisions': Value('string'), 'Crisis-mutual-support': Value('string'), 'Family-trust': Value('string'), 'Teacher-care': Value('string'), 'Classmate-relations': Value('string'), 'Classmate-support': Value('string'), 'Teacher-respect': Value('string'), 'Excessive-class-hours': Value('string'), 'Poor-grade-respect': Value('string'), 'Limited-entertainment-time': Value('string'), 'Teacher-fairness': Value('string'), 'Classmate-consideration': Value('string'), 'Classmate-respect': Value('string'), 'Teacher-friend-view': Value('string'), 'Classmate-affection-lack': Value('string'), 'Teacher-belief-success': Value('string'), 'Classmate-honesty': Value('string'), 'Teacher-pressure': Value('string'), 'Student-teacher-liking': Value('string'), 'Seek-help-in-choices': Value('string'), 'Seek-family-friend-help': Value('string'), 'Friends-support': Value('string'), 'Rely-on-family-friends': Value('string'), 'Emotional-support-from-peers': Value('string'), 'Care-when-sick': Value('string'), 'Emotional-support-family-friends': Value('string'), 'Help-from-peers-in-difficulties': Value('string')}

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

MindScale Sample Data

Questionnaire-based mental health screening and symptom assessment

Data format: JSON 100 sample records

Overview · Contents · Data Format · Using with MindScale · Usage Notes

📋 Overview

This directory contains 100 questionnaire-format sample records for inspecting MindScale's data structure and preparing input demonstrations. Each JSON file represents one sample.

  • Screening: 50 samples covering anxiety, depression, life satisfaction, and life stress.
  • Assessment: 50 samples covering five questionnaire-derived symptom domains, with target categories defined below.
  • Scope: These examples are a small sample collection, not the full study cohort. They are not sufficient to reproduce the paper's population-scale performance estimates.

⬆️ Back to top

📂 Contents

open_data/
|-- README.md
|-- At_risk_samples/       50 screening JSON files
`-- Assessment_samples/    50 assessment JSON files

Both folders include primary- and secondary-school questionnaire formats. The number and names of questionnaire items therefore vary by school stage. Sample manifests and sampling-weight files are not included in this directory.

⬆️ Back to top

🧾 Data Format

All sample files use UTF-8 JSON encoding.

Field Contents
input Observed background and environmental questionnaire responses as key-value pairs
mask Item response records, each containing value and an ordered candidate list
label Four screening targets in At_risk_samples
re_label Five assessment targets in Assessment_samples; some screening files also contain ancillary assessment results here
anxiety_depression Auxiliary anxiety and depression outcomes in assessment samples

Item Response Records

The following is an illustrative entry within mask:

{
  "Self-strength": {
    "value": "Basically agree",
    "candidate": [
      "Strongly disagree",
      "Not quite agree",
      "Basically agree",
      "Strongly agree"
    ]
  }
}
  • Meaning of mask: This field contains response values, not only missing items. Pretraining predicts these responses, while downstream input builders incorporate their values as questionnaire features.
  • Missing responses: Some assessment item records use "-" for an unavailable response. Preserve this marker and the original candidate list.
  • Auxiliary outcomes: label and re_label are stage-specific fields, not interchangeable aliases. Ancillary outcomes should be kept separate from the selected prediction targets.

Screening Targets

Read the screening target mapping from label.

Target key Candidate labels, in model order
anxiety No anxiety, Mild anxiety, Severe anxiety
depression No depression, Mild depression, Severe depression
satisfaction Low life satisfaction, High life satisfaction
stress No life stress, Low life stress, High life stress

Assessment Targets

Read the assessment target mapping from re_label.

Target key Candidate labels, in model order
re_suicidal Mild suicidal ideation, Severe suicidal ideation
re_obsessive Mild obsessive symptoms, Severe obsessive symptoms
re_psychotic Mild psychotic symptoms, Severe psychotic symptoms
re_mania Mild mania, Severe mania
re_ADHD Mild ADHD, Severe ADHD

These strings are the model's questionnaire-derived categories, not clinical diagnoses. Preserve their spelling and capitalization when using released adapters; the corresponding mappings are defined in the code's dataset_info.py.

⬆️ Back to top

🚀 Using with MindScale

  • Select the stage

    Use At_risk_samples for --task_type Screen and Assessment_samples for --task_type Assessment. The screening samples' input and mask fields can also supply pretraining inputs; screening outcomes are not pretraining targets.

  • Prepare the target mapping for the current input builder

    The comparative builder reads targets from label, whereas the non-comparative builder reads them from re_label. Prepare working copies with the selected stage's target mapping in the required field:

Stage Source target field Comparative mode Non-comparative mode
Screen label Keep screening targets in label Copy screening targets to re_label in a working copy
Assessment re_label Copy assessment targets to label in a working copy Keep assessment targets in re_label

Preserve any original auxiliary outcomes separately when preparing these copies.

  • Prepare manifests

    For downstream runs, create the following UTF-8 text files. Sample paths must be relative to --data_path, with one entry per line.

train.txt          Reference/training sample paths
grade_train.txt    School-stage label for each reference/training sample
mean_IP_train.txt  Template-sampling weight for each reference/training sample
test.txt           Test sample paths
grade_test.txt     School-stage label for each test sample

The three training files must be line-aligned with one another; the two test files must be line-aligned with one another. Use separate reference and test samples, and calculate sampling weights from reference/training labels only.

  • Map school stages

    The grade manifests use the following labels, derived from input["School-status"]:

Sample value Grade-manifest label
Schoolchild Primary school
Middle school student Middle school
High school student Middle school

With two templates, each school-stage group used during training needs at least three reference samples; evaluation needs at least two reference samples. Templates must be drawn from the reference/training set.

  • Load model weights

    Follow the accompanying MindScale code README for installation, checkpoint loading, and prediction export. Three-stage LoRA adapters are available on Hugging Face.

⬆️ Back to top

📝 Usage Notes

  • Research scope: Use these samples for authorized research, schema inspection, and integration checks. They are not a clinical assessment service.
  • Privacy: Questionnaire records contain sensitive background and mental health information. Protect participant privacy and do not attempt to re-identify individuals or link records to identifiable people.
  • Release permissions: Availability in this directory does not by itself establish permission for unrestricted reuse or redistribution. Follow the data provider's applicable authorization and data-use terms.

⬆️ Back to top

Downloads last month
88