Skip to main content

Emotionics New Feature: Overview of gyo_matrix (v0.6.0)

Emotionics New Feature: Overview of gyo_matrix (v0.6.0)


https://pypi.org/project/emotionics/


1. Overview

gyo_matrix is a multi-dimensional observation sensor that concurrently runs simulations across three power gradients (Symmetrical, Upward, and Downward) for a given target text. It outputs the "surface emotion, deep emotion, and structural differences (Delta)" from each respective viewpoint.


2. Core Philosophy

Complete Elimination of Quantization (No Quantization)

It intentionally avoids calculating single scores or metrics like "Anger Level 80%" or "Threat Level 0.85."

This prevents the "number bias" where humans blindly trust system-generated figures, ensuring the tool does not devolve into a system that unilaterally labels, judges, or intervenes with the subject.

Role as a Pure Sensor

The system merely presents the "structural contradictions" within the three gravitational fields (power gradients).

Comparing the results (differences in Gap and Mechanism) to interpret and judge whether the subject's "Red Line" (the critical point where power dynamics collapse or undergo a phase transition) is approaching remains strictly the responsibility of the human observer.

Visualizing "Feel Fake"

It exposes structures in N:N circuits (like anonymous social media) where individuals attack from a safe zone using borrowed crowd emotions without bearing any personal risk (Stake). If the deep layer is consistently determined to be "Feel Fake" across multiple power gradients, it reveals that the text is a product of unsubstantiated peer pressure (emotional contagion).


3. Technical Details

Architectural Separation: To preserve the single responsibility principle of the existing gyo.py ("pure emotional estimation in a single gradient"), the logic was isolated and implemented in a new file, matrix.py.

Asynchronous Parallel Processing: To optimize network I/O wait times for the LLM, it utilizes the standard library's concurrent.futures.ThreadPoolExecutor, executing three parallel threads while maintaining the existing synchronous function calls.


4. Usage

```python

import os

import emotionics


emotionics.activate(

    llm="gemini",

    api_key=os.environ.get("GEMINI_API_KEY"),

    model="gemini-3.1-pro-preview"

)


# No need to specify a power gradient (runs 3 patterns automatically internally)

result = emotionics.gyo_matrix(

    text="Target text",

    subject="Subject (e.g., anonymous SNS user)",

    circuit="N:N",

    intent="Estimated intent"

)


# Compare the output results of the 3 patterns

for gradient in ["symmetrical", "upward", "downward"]:

    data = result.get("results", {}).get(gradient, {})

    delta = data.get("delta_analysis", {})

    

    print(f"=== {gradient.upper()} ===")

    print(f"Gap:       {delta.get('gap')}")

    print(f"Mechanism: {delta.get('mechanism')}")

```


5. Observation Mechanism and Potential Applications of the "Red Line"

The True Nature of a Red Line is "Power Gradient Transition," Not "Emotion Volume"

A Red Line is not simply a "peak of emotions like anger or dissatisfaction." It refers to the critical point triggered at the exact moment an existing "power gradient (power dynamic/hierarchy)" collapses and attempts a reversal or transition (phase transition).

Similar to biological herd hierarchies or the Nash equilibrium in game theory, as long as the power gradient remains fixed, the system (society or relationship) stays stable with minimal friction. However, the moment a "sign of shifting power dynamics" appears—due to the rebellion of the subordinate or the decline of the superior—the energy required to maintain the system spirals out of control, resulting in a collision (crossing the Red Line).

Potential for Red Line Detection via gyo_matrix

Concurrently simulating the three power gradients (Symmetrical, Upward, Downward) is an approach designed to capture the "creaking sounds of the structure" that occur when power dynamics are about to shift.

Under normal circumstances where the relationship is stable, the text naturally converges into the interpretation of just one power gradient.

However, when a Red Line is approaching (power dynamics are wavering), it manifests as an anomalous output (Delta) where "applying any gradient creates a massive contradiction (Gap)" or "interpretations from multiple gradients paradoxically hold true simultaneously."

By observing these differences, it possesses the powerful potential to predict and grasp the "structural limits" of a society or group before a systemic collapse, without being misled by surface-level emotional fluctuations or "Feel Fake" noise.