SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2608.08868 · 2026

Conversation as Measurement in Clinical Encounters: Observable Phase Structure, Partially Observable Patient State

James Zou, Lily Chen, Michael Gensheimer, Ted Mau, Brian Nuyen, Nancy Jiang

arXiv · PDF · Open in the Atlas

Code that ran

8 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 8 failures of our instrument; 2 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2608.08868.json · badge: /api/ran/2608.08868.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
lilywchen/conversation-as-measurement canonical (classifier label)
classifier basis: census
8 ran · 2 no recorded run
FunctionStatusWhere it lives
build_sequence_df_long Ran
ran; our contract draft was wrong, not the code
lilywchen/conversation-as-measurement/src/conversation_measurement/paper_figures/sequence_graphs_clean.py
code served (permissive licence) · get_code("63e033ccb20ac8cf")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned DataFrame. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import pandas as pd
import numpy as np

# Create a sample segment dataframe with required columns
segment_data = {
    'doc': ['doc_a', 'doc_a', 'doc_a', 'doc_b', 'doc_b'],
    'segment_title': ['intro', 'main', 'outro', 'opening', 'closing'],
    'minutes_diff': [5.0, 15.0, 3.0, 10.0, 7.0],
    'segment_start': [0, 5, 20, 0, 10]
}

segment_df = pd.DataFrame(segment_data)

ARGS = {
    'segment_df': segment_df,
    'doc_col': 'doc',
    'seg_col': 'segment_title',
    'dur_col': 'minutes_diff',
    'order_col': 'segment_start'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
cluster_docs_by_duration Ran
ran; our contract draft was wrong, not the code
lilywchen/conversation-as-measurement/src/conversation_measurement/paper_figures/sequence_graphs_clean.py
code served (permissive licence) · get_code("c830f92a24a28954")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import pandas as pd
import numpy as np
from sklearn.cluster import KMeans

# Create a small sample DataFrame with the required columns
np.random.seed(0)

# Create sample data: 4 documents, 3 segments, with width values
data = {
    'doc': ['doc1', 'doc1', 'doc1', 'doc2', 'doc2', 'doc2', 'doc3', 'doc3', 'doc3', 'doc4', 'doc4', 'doc4'],
    'segment': ['seg1', 'seg2', 'seg3', 'seg1', 'seg2', 'seg3', 'seg1', 'seg2', 'seg3', 'seg1', 'seg2', 'seg3'],
    'width': [1.0, 2.0, 1.5, 2.0, 1.0, 2.5, 1.5, 1.5, 2.0, 2.5, 2.0, 1.0]
}

df_long = pd.DataFrame(data)

ARGS = {
    'df_long': df_long,
    'k_clusters': 2,
    'doc_col': 'doc',
    'seg_col': 'segment',
    'width_col': 'width',
    'random_state': 0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compare_with_published Ran
ran; our contract draft was wrong, not the code
lilywchen/conversation-as-measurement/src/conversation_measurement/verification.py
code served (permissive licence) · get_code("6526137369031641")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned DataFrame. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import pandas as pd
from collections.abc import Mapping

# Create a sample actual DataFrame that matches the structure of PUBLISHED_PROM_SUMMARY
actual_data = [
    {'Group': 'Overall', 'N': 2730, 'Missing (%)': 63.0, 'QWK': 0.5084, 'MAE': 1.0064, 'Mean Signed Error': 0.3914},
    {'Group': 'Voice', 'N': 1660, 'Missing (%)': 65.7, 'QWK': 0.4876, 'MAE': 1.0404, 'Mean Signed Error': 0.4304},
    {'Group': 'Cough', 'N': 480, 'Missing (%)': 67.1, 'QWK': 0.5274, 'MAE': 0.9874, 'Mean Signed Error': 0.6964},
    {'Group': 'Swallowing', 'N': 590, 'Missing (%)': 52.0, 'QWK': 0.5394, 'MAE': 0.9474, 'Mean Signed Error': 0.1344},
]
actual_df = pd.DataFrame(actual_data)

ARGS = {
    'actual': actual_df,
    'published': 'full'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_cluster_layout Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
lilywchen/conversation-as-measurement/src/conversation_measurement/paper_figures/sequence_graphs_clean.py
code served (permissive licence) · get_code("760905072d760532")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import pandas as pd

# Create a small DataFrame for cluster_blocks
# The function expects a DataFrame with 'start' and 'center' columns
cluster_blocks_data = {
    'start': [0, 5, 10],
    'center': [2.0, 7.0, 12.0]
}
cluster_blocks = pd.DataFrame(cluster_blocks_data)

ARGS = {
    'n_docs': 15,
    'cluster_blocks': cluster_blocks,
    'cluster_gap_rows': 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
mean_absolute_error Ran
ran; our contract draft was wrong, not the code
lilywchen/conversation-as-measurement/src/conversation_measurement/metrics.py
code served (permissive licence) · get_code("b585b79fb3271887")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from collections.abc import Sequence

# The function takes two sequences: reference and estimate
# Both should be sequences of numbers (or convertible to float)
# The function filters out missing values (None or NaN) and computes MAE on remaining pairs

# Create simple test data with some valid pairs
reference = [1.0, 2.0, 3.0, 4.0, 5.0]
estimate = [1.1, 2.2, 2.9, 4.1, 5.0]

ARGS = {
    "reference": reference,
    "estimate": estimate,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
mean_signed_error Ran
ran; our contract draft was wrong, not the code
lilywchen/conversation-as-measurement/src/conversation_measurement/metrics.py
code served (permissive licence) · get_code("cabac8e585ab232c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from collections.abc import Sequence

# Test data for mean_signed_error function
reference = [1.0, 2.0, 3.0, 4.0, 5.0]
estimate = [1.1, 2.2, 2.9, 4.1, 4.8]

ARGS = {
    "reference": reference,
    "estimate": estimate,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
plot_prom_item_missingness_matched Ran
ran; our contract draft was wrong, not the code
lilywchen/conversation-as-measurement/src/conversation_measurement/paper_figures/prom_missing_chart.py
code served (permissive licence) · get_code("e2c1d549c6d57506")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned DataFrame. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import pandas as pd
import numpy as np

# Create a minimal DataFrame that matches the expected structure
# The function expects: 'score', 'Test', 'Question', 'doc' columns

np.random.seed(0)

# Create sample data with missingness
data = []

# Voice test questions
for q_idx in range(1, 4):
    question = f"Voice Question {q_idx}"
    # Add some rows with scores, some with NaN
    for doc_id in range(10):
        score = np.nan if np.random.random() < 0.3 else float(np.random.randint(1, 5))
        data.append({
            'Test': 'Voice',
            'Question': question,
            'score': score,
            'doc': doc_id
        })

# Cough test questions
for q_idx in range(1, 4):
    question = f"Cough Question {q_idx}"
    for doc_id in range(10):
        score = np.nan if np.random.random() < 0.2 else float(np.random.randint(1, 5))
        data.append({
            'Test': 'Cough',
            'Question': question,
            'score': score,
            'doc': doc_id
        })

# Swallowing test questions
for q_idx in range(1, 4):
    question = f"Swallowing Question {q_idx}"
    for doc_id in range(10):
        score = np.nan if np.random.random() < 0.25 else float(np.random.randint(1, 5))
        data.append({
            'Test': 'Swallowing',
            'Question': question,
            'score': score,
            'doc': doc_id
        })

proms_df = pd.DataFrame(data)

ARGS = {
    'proms_df': proms_df,
    'tests': ('Voice', 'Cough', 'Swallowing'),
    'filename': None,
    'max_items': None,
    'left': None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
quadratic_weighted_kappa Ran
ran; our contract draft was wrong, not the code
lilywchen/conversation-as-measurement/src/conversation_measurement/metrics.py
code served (permissive licence) · get_code("938dbbf1eef8fe4c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from collections.abc import Sequence

# The function takes reference and estimate sequences, plus optional min_rating and max_rating
# It computes quadratic weighted Cohen's kappa on integer ratings

# Create valid sequences of ratings
# reference and estimate must have the same length
# All values must be integers in the range [min_rating, max_rating]
# We'll use min_rating=0, max_rating=4 (default)

reference = [0, 1, 2, 3, 4, 2, 1, 3]
estimate = [0, 1, 2, 2, 4, 2, 2, 3]

ARGS = {
    'reference': reference,
    'estimate': estimate,
    'min_rating': 0,
    'max_rating': 4
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_reproduction_inputs Not yet run
unverified (harvested, no recorded run)
lilywchen/conversation-as-measurement/src/conversation_measurement/reproduction_inputs.py
code served (permissive licence) · get_code("76348f7d583d30d2")
How it ran

no invocation recorded.

prom_summary_table Not yet run
unverified (harvested, no recorded run)
lilywchen/conversation-as-measurement/src/conversation_measurement/tables.py
code served (permissive licence) · get_code("fa9f3eac5c66de67")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 10 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Many modern AI systems analyze conversational traces to infer aspects of human interaction and state, implicitly assuming that such information is recoverable from conversation. We study observability: whether a target is recoverable from conversational transcripts alone. Observability is difficult to assess because transcripts may provide only a partial view of many targets, and large-scale analysis requires model-based annotation, making true limits of the conversational signal hard to distinguish from annotator error. We therefore study clinical encounters, where patient-reported outcome measures (PROMs) provide an external anchor for patient state, and visits follow broadly structured patterns. We study observability of patient state and conversational phase structure using 439 real-world clinical encounter transcripts spanning 134 hours, including 245 ENT transcripts paired with 273 PROM surveys. We operationalize patient state using PROM scores for voice, cough, and swallowing; phase structure using conversational phase segmentation. To make these analyses credible at scale, we use a PHI-compliant GPT-5 deployment for transcript annotation and conduct 40 hours of manual validation, reducing the risk that apparent limits of observability simply reflect annotator error. Our core finding is an observability asymmetry: phase structure is observable and useful for characterizing clinical encounter organization, while patient state is only partially observable, even in a setting designed to elicit patient symptoms and experiences, cautioning against transcript-only inference of human state. Code is available at https://github.com/lilywchen/conversation-as-measurement.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2608.08868")
get_code_for_paper("2608.08868")
have("2608.08868")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2608.08868.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2608.08868.svg)](https://syntology.ai/paper/2608.08868)

Connect an agent — have() is free.