A pet social event generation method and system based on multi-modal perception

By using multimodal perception technology to verify the identity of pet devices and form behavioral evidence, and by using event support structures to generate accurate pet social events, the problem of distinguishing between near-field interactions and actual behaviors in the generation of pet social information is solved, thereby improving the accuracy and reliability of the generated content.

CN123180989APending Publication Date: 2026-11-27XUZHOU ROUXI INTELLIGENT TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611604399.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-16
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing methods for generating pet social information struggle to accurately distinguish between near-field interactions and actual behaviors, leading to incorrect associations of behavioral data and an inability to effectively verify the validity of social facts when identity, location, or authorization status changes.

Method used

By using multimodal sensing technology, positioning data and inertial data are received to verify the identity binding between the device and the pet, forming behavioral evidence. Event support structures are used to establish the correlation between social facts and necessary evidence, ensuring that accurate social events are generated when the evidence meets the conditions, and that the necessary evidence for social facts is re-examined when the evidence becomes invalid.

Benefits of technology

It improves the accuracy and reliability of pet social event generation, ensuring that the generated content is consistent with the actual behavior and authorization status, and reduces erroneous associations caused by time differences or location errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123180989A_ABST
    Figure CN123180989A_ABST
Patent Text Reader

Abstract

The present application relates to the field of pet intelligent device and information processing technology, and discloses a pet social event generation method and system based on multi-modal perception. Positioning data and inertial data with device identification and collection time are received, the binding relationship between the device and the pet is verified, and behavior evidence is formed. Based on near field interaction, friend confirmation and purpose permission, comparable participants are determined, event support structure between social facts, identity, behavior evidence and authorization conditions is established, and single or common activity candidate events are generated. The candidate events are executed with sensitive position isolation and participant permission intersection. When the participating pet, location or evidence field is removed or invalidated, the necessary evidence is rechecked along the event support structure, the invalidated facts are deleted, and when the remaining evidence fully supports other fact types, the corresponding facts and evidence relationships are newly established. The pet social content is generated according to the facts that are established after rechecking and meet the authorization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of pet smart devices and information processing technology, specifically to a method and system for generating pet social events based on multimodal perception. Background Technology

[0002] Smart pet collars can acquire a pet's location, movement status, and sound information through positioning units, inertial measurement units, and sound acquisition units. They can then provide pet owners with services such as activity records, pet profiles, community interaction, and friend relationships via mobile terminals or online platforms. Simultaneously, near-field communication technologies such as NFC are increasingly being applied to pet identification and social interaction scenarios. By reading the tag on the pet collar, the corresponding pet's identity information can be obtained, further enabling pet information display, friend addition, and social interaction. Existing technologies can already combine pet identity information, near-field interaction information, and pet behavior data to identify pet activity status and generate corresponding social information.

[0003] However, existing methods for generating pet social information still have certain shortcomings. Mobile devices reading pet collar tags only indicate near-field interaction, and establishing a friendship only shows a relationship record between pets; it's difficult to directly determine whether two pets actually walked or exercised together. Furthermore, different pet collars have independent data collection clocks and may experience communication delays, offline caching, and location drift, easily leading to incorrect associations of behavioral data from different pets. In addition, pet social content typically involves multiple pieces of information, such as participating pets, activity behaviors, activity locations, and times. When participant permissions, location permissions, or related evidence change, simply deleting fields like name and location from the original social content may result in the processed content still retaining conclusions about shared activities lacking valid evidence, leading to inconsistencies between the generated content and the actual valid data.

[0004] Therefore, how to reliably correlate multi-pet behavior data based on the distinction between near-field interactions, relationship status, and actual behavioral evidence, and how to re-verify the validity of social facts after changes in identity, location, evidence, or authorization status, has become a technical problem that needs to be solved in the process of generating pet social content. Summary of the Invention

[0005] To address the aforementioned technical problems, this invention provides a method for generating pet social events based on multimodal perception, comprising the following steps: S100: Receive positioning data and inertial data with device identification and collection time, verify the identity binding between the device and the pet, and form behavioral evidence associated with the corresponding pet based on the positioning data and inertial data; S200, Process near-field interaction, friend confirmation and permission based on purpose, determine comparable participants, and associate the behavioral evidence with the corresponding participants. The near-field reading or relationship confirmation record is used to determine the interaction object or relationship status, and does not replace the sensor evidence representing the pet's joint activities. S300. Based on the comparable participants and their corresponding behavioral evidence, establish an event support structure to save the participating pet set, fact type, required evidence type and corresponding evidence reference for the social fact to be expressed, so as to establish the support relationship between the social fact and identity, behavioral evidence and authorization conditions. S400. According to the event support structure, check the necessary evidence corresponding to the social facts. For joint activity facts, generate a joint activity candidate event when each participating pet has valid data processing authorization and the corresponding behavioral evidence meets the necessary evidence conditions. For individual behavioral facts, generate an individual candidate event when the behavioral evidence of the corresponding pet meets the necessary evidence conditions. S500: Sensitive location isolation and participant permission intersection are performed on the candidate events to form an external field set; when the location, participating pet, or evidence field is removed or becomes invalid, the necessary evidence for social facts is re-examined along the event support structure, and only social facts that are still supported by evidence and comply with authorization are retained; social facts that no longer meet the corresponding necessary evidence conditions are deleted; when the remaining valid evidence can fully support other fact types, the corresponding fact type and its evidence relationship are newly created based on the remaining valid evidence, and the desensitized content generation input is formed; S600: Generate pet social content based on the desensitized content.

[0006] Further, S100 includes: S101. Obtain the time anchor point between the smart collar's monotonic clock and the reference clock. Fit the clock ratio and time offset based on multiple time anchor points to obtain: Where m represents the collar monotonic clock, t represents the reference acquisition time, a represents the clock ratio, and b represents the time offset; S102. Correct the acquisition time of positioning data and inertial data according to the clock ratio and time offset, and determine the time uncertainty of the corresponding data according to the fitting residual and communication delay; S103. Map the positioning data and inertial data to the corresponding time window according to the corrected acquisition time, and determine the effective time intersection after deducting the corresponding time uncertainty boundary in the effective data interval of different pets, so that the time window and the effective time intersection can be used for behavioral evidence inspection of the facts of joint activities; when the device restarts or there is a lack of effective time anchor points, it is prohibited to splice joint activity events across startup generations.

[0007] Preferably, S100 further includes: S104. Behavioral evidence is formed based on the valid acquisition window corresponding to the positioning data and inertial data. The behavioral evidence stores the device identifier, start identifier, acquisition sequence number, sensor type, source type and payload summary. S105. Determine the quality quantity based on the effective acquisition window. The quality quantity includes completeness, freshness, time synchronization degree, positioning accuracy, required modal coverage and non-abnormal ratio. S106. Determine the corresponding required modalities and hard thresholds based on the fact type of the social fact to be expressed, and judge the validity of each required modality based on the quality quantity; when a required modality is missing or expires, do not replace the required evidence of the fact with a high score in other quality dimensions. Among them, near-field interaction, owner confirmation, mobile phone location and collar collection have different source types, and only the collar's valid collection window or the behavior media that has been independently verified can serve as direct evidence of the corresponding physical activity facts.

[0008] Further, S200 includes: S201. The mobile terminal reads the opaque reference in the NFC tag of the target pet's collar. The server parses the valid tag, device, and pet binding relationship based on the opaque reference and determines the target pet. S202. Create a near-field interaction session based on the current pet of the initiating account management and the target pet. The near-field interaction session saves the session identifier, initiating subject, target subject, identity binding version, expiration time and status. S203. When the near-field interaction session is valid, establish a friend relationship between the current pet and the target pet based on the confirmation record initiated by the first owner and accepted by the second owner, and store the permissions for displaying business cards, processing data of joint activities, mentioning participants, receiving dynamic messages and communicating messages respectively. S204. Determine comparable participants based on the friend relationship and shared activity data processing permissions, and read the behavioral evidence corresponding to each participant according to the identity binding relationship. The establishment of a friend relationship does not automatically enable real-time location sharing or shared activity data processing, and near-field interaction is only used to limit the comparison objects.

[0009] Preferably, S300 includes: S301. Based on the comparable participants and the behavioral evidence corresponding to each participant, determine the set of participating pets and the type of fact for the social fact to be expressed; S302. Determine one or more sets of necessary evidence according to the fact type, and save the evidence references corresponding to each necessary evidence to form an event support structure. The social facts in the event support structure are dependent on at least one of pet identity, sensor window, relationship confirmation and use authorization. S303. Perform identity, time, quality, and permission checks on the required evidence set, and determine that the social fact is established only when at least one complete required evidence set meets the corresponding conditions; for multiple alternative required evidence sets, do not select partial evidence from multiple incomplete required evidence sets to construct undefined alternative evidence.

[0010] Further, S400 includes: S401. Read the valid behavioral evidence of each participating pet corresponding to the facts of the joint activity, and determine the valid time intersection based on the valid data intervals corresponding to each participating pet; S402. Within the effective time intersection, determine the spatial nearest neighbor status based on the location and positioning accuracy radius of each participating pet, and determine the movement speed and movement direction based on the positioning data. S403. Determine the corresponding gait or activity state based on the inertial data of each participating pet, and check the consistency between the gait or activity state and the spatial proximity state, movement speed and movement direction. S404. When the effective time intersection, spatial proximity state, and activity evidence of each participating pet continuously meet the necessary evidence conditions corresponding to the fact of joint activity, a candidate event of joint walking or joint exercise is formed; when there is only location overlap, vehicle displacement, or lack of effective activity evidence of participating pets, the candidate event of joint walking or joint exercise is not formed.

[0011] Preferably, S500 includes: S501. Perform sensitive location isolation and participant permission intersection on the candidate events, and determine the participating pets, locations and evidence fields that can be provided externally based on the processing results, forming an external field set; S502. When the pet, location, or evidence field is removed or becomes invalid, the required evidence expression for the corresponding social fact is re-examined along the event support structure. S503. When the facts of a joint activity no longer meet the corresponding necessary evidentiary conditions due to the removal of participating pets, the original facts of the joint activity are not retained by simply deleting the names of the participating pets; when the remaining pets have complete individual behavioral evidence, individual facts and their evidentiary relationships are newly established based on the individual behavioral evidence. S504. When the location field is removed or becomes invalid, delete the fact that the location is a necessary condition; for behavioral facts with independent and complete behavioral evidence, retain them after re-examining the corresponding necessary evidence expression, and generate desensitized content input based on the facts that are still valid after re-examination.

[0012] As a further improvement of the present invention, S600 includes: S601. Provide the desensitized content generation input to the content generation module. The desensitized content generation input includes facts that support inspection, authorized aliases, classification indicators and expression templates. Generate pet social content based on the desensitized content generation input. S602. Bind the content summary of the pet social content with the identity binding version, evidence revision number and authorization version of the participating pet to form a publishing credential, and review the content summary and corresponding version when submitting the publishing; S603. Maintain a reverse index from identity, relationship, evidence, and permission versions to candidate events, pending records, and public content; when any corresponding version becomes invalid, determine the affected object based on the reverse index, stop sending the corresponding old publishing credentials, and re-determine the publishable facts or rebuild the allowed fields based on the current valid permissions.

[0013] The present invention also provides a pet social event generation system based on multimodal perception, including a smart collar, an NFC tag, a mobile terminal, a communication node, and a data processing device; The smart collar includes a positioning unit, an inertial measurement unit, a processor, a memory, and a wireless communication unit; the mobile terminal includes an NFC reading unit. The data processing device includes an access and time module, a quality and individual perception module, an identity relationship module, an event support module, a shared activity module, a privacy projection module, a content generation module, and a publishing transaction module. The access and time module is used to receive positioning data and inertial data, and to determine the identity binding between the device and the pet and the collection time; The quality and individual perception module is used to form behavioral evidence associated with the corresponding pet based on the positioning data and inertial data; The identity relationship module is used to process near-field interaction, friend confirmation, and permission based on purpose, to determine comparable participants, and to establish the association between participants and corresponding behavioral evidence. The event support module is used to establish an event support structure based on the comparable participants and corresponding behavioral evidence, and to establish a support relationship between social facts and corresponding necessary evidence. The joint activity module is used to check the necessary evidence corresponding to the joint activity facts based on the behavioral evidence and event support structure, and generate joint activity candidate events that meet the corresponding evidence conditions. The privacy projection module is used to isolate sensitive locations and process participant permissions for candidate events. When the pet, location, or evidence fields are removed or invalidated, the necessary evidence of social facts is re-examined along the event support structure to form desensitized content generation input. The content generation module is used to generate pet social content based on the desensitized content input. The publishing module is used to bind the pet social content with identity, evidence, and authorized version, and to review it when submitting for publication.

[0014] The present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, it implements the above-described method for generating pet social events based on multimodal perception.

[0015] Compared with the prior art, the beneficial effects of the present invention are as follows: This invention, through a smart collar, mobile terminal, and data processing device, correlates pet location data, inertial data, near-field interaction information, friend confirmation information, and usage-specific permissions. It utilizes an event support structure to establish a correlation between social facts and corresponding necessary evidence, distinguishing near-field readings, relationship confirmations, and actual pet behavior, thus avoiding the direct use of tag readings or friend relationships as the basis for judging pets' joint activities. Simultaneously, by examining the behavioral evidence of participating pets, individual candidate events or joint activity candidate events are formed when corresponding evidence conditions are met, reducing erroneous associations caused by time differences, location errors, or insufficient behavioral evidence. Furthermore, when participating pets, locations, or evidence fields are removed or invalidated due to privacy or authorization changes, the necessary evidence for social facts can be re-examined along the event support structure. Social facts that no longer meet the corresponding necessary evidence conditions are deleted, and corresponding fact types and their evidence relationships are newly created when the remaining valid evidence can fully support other fact types. This ensures that the final generated pet social content has valid evidence support and is consistent with the current pet identity, actual behavior, and authorization status, improving the accuracy, reliability, and traceability of pet social event generation. Attached Figure Description

[0016] To more clearly illustrate the technical solutions of the present invention, the accompanying drawings used in the embodiments are briefly described below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without any creative effort.

[0017] Figure 1 This is a schematic diagram of the system structure and data channels; Figure 2 Generate a main process diagram for pet social events; Figure 3 A schematic diagram illustrating the establishment of NFC interactive sessions and friend relationships; Figure 4 A diagram illustrating the separation of identity, conduct, and authorization evidence, and the support of facts. Figure 5 A schematic diagram illustrating the judgment of time alignment, individual characteristics, and common activities; Figure 6 A diagram illustrating the re-examination of privacy projection and factual support; Figure 7 A diagram illustrating the generation and verification of constrained content; Figure 8 A diagram illustrating the process of publishing transactions and revocation. Figure 9 Diagram illustrating owner calibration and individual memory updating; Figure 10 A schematic diagram of the loudspeaker intervention isolation and response facts is generated; Figure 11 This is a flowchart of the method of the present invention. Detailed Implementation

[0018] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0019] It should be noted that, unless otherwise defined, the technical or scientific terms used in the embodiments of this invention should have the ordinary meaning understood by those skilled in the art. The terms "first," "second," and similar terms used in the embodiments of this invention do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" or "including" mean that the element or object preceding the word covers the element or object listed after the word and its equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. Terms such as "upper," "lower," "left," and "right" are only used to indicate relative positional relationships; when the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0020] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0021] Example 1 Please see Figures 1 to 11 This embodiment provides a method for generating pet social events based on multimodal perception, which is applied to a data processing system that communicates with a smart collar worn by a pet. It is used to convert physical activity data, near-field interaction information and owner authorization relationships collected by the pet smart collar into pet social events with corresponding evidence support, and further generate pet social content that can be published externally.

[0022] The system used in this embodiment includes a smart collar 100, an NFC tag 190, a mobile terminal 200, a home gateway or other communication node 250, and a data processing device 300. The smart collar 100 includes a positioning unit 110, an inertial measurement unit 120, an optional microphone 130, an optional barometer 140, an optional audio codec and speaker 150, a processor 160, a memory 170, and a wireless communication unit 180. The mobile terminal 200 includes an NFC reading unit 210 and a mobile application 220. The data processing device 300 includes an access and timing module 310, a quality and individual perception module 320, an identity relationship module 330, an event support module 350, a shared activity module 340, a privacy projection module 360, a content generation module 370, a transaction publishing module 380, and a calibration and execution feedback module 390. Each module can be deployed in the cloud, on an authorized home gateway, or on other computing devices with processors and memory.

[0023] The NFC tag 190 and the wireless communication unit 180 use independent data entry points. The mobile terminal 200 reading the NFC tag 190 only indicates that a tag reading has occurred; it does not mean the smart collar is currently online, nor that the pet has established a real-time location connection, and it cannot be directly used as proof that two pets are engaging in joint activities.

[0024] In terms of data management, the system can divide data into the original evidence domain, the owner's private event domain, and the external social domain. The original evidence domain is used to store sensor fragments, precise trajectories, and complete execution receipts; the owner's private event domain is used to store behavior interpretations, model versions, and owner calibration results; the external social domain only stores facts, public aliases, coarse-grained locations, and public media after privacy processing, thereby keeping the original evidence separate from the final external content.

[0025] Specifically, this embodiment includes the following steps.

[0026] S100: Receive positioning data and inertial data with device identification and collection time, verify the identity binding between the device and the pet, and form behavioral evidence associated with the corresponding pet based on the positioning data and inertial data.

[0027] This step is mainly used to process the raw sensor data obtained by the smart collar into behavioral evidence that can be directly used for judging pet behavior and verifying social facts.

[0028] During long-term operation, smart collars may experience offline caching, device restarts, communication delays, collar transfers, and pet switching. Different collars also have their own independent data collection clocks. Therefore, directly judging pet behavior based on the time the server receives data or the current device binding relationship can easily lead to time discrepancies or incorrect identification.

[0029] Based on this, this step first verifies the device and pet identity corresponding to the data, then standardizes the collection time for different collars, and forms behavioral evidence based on the effective collection window, data quality, and corresponding sensor characteristics. The resulting behavioral evidence has a clear pet identity, collection time, effective scope, source type, and quality status, and serves as the data foundation for subsequent identification of comparable participants, establishment of event support structures, and generation of individual or collective activity facts.

[0030] This step specifically includes the following steps.

[0031] S101. Obtain the time anchor point between the smart collar's monotonic clock and the reference clock. Fit the clock ratio and time offset based on multiple time anchor points to obtain: Where m represents the collar monotonic clock, t represents the reference acquisition time, a represents the clock ratio, and b represents the time offset.

[0032] The smart collar is worn around the neck of the corresponding pet. The positioning unit 110 outputs latitude and longitude, positioning accuracy and measurement time, and the inertial measurement unit 120 outputs triaxial acceleration and angular velocity. When the microphone 130 and barometer 140 are set, sound data and ambient air pressure can also be obtained respectively.

[0033] Different sensing units can use different sampling frequencies. In one embodiment, the inertial data sampling frequency is 50 Hz, the positioning data sampling frequency is 1 Hz, the audio sampling frequency is 16 kHz mono, and the barometric pressure data sampling frequency is 1 Hz. These sampling frequencies are stored as configurable sampling parameters, without changing the fundamental processing method that all different sensor data must be correlated according to the actual acquisition time.

[0034] Each data packet must at least store the device identifier, start identifier, acquisition sequence number, monotonic clock value, sensor type, sampling strategy version, and payload summary. After receiving the data, the server first verifies the device session identity, then checks the payload format, unit, and payload summary. For data with the same device identifier, start identifier, and acquisition sequence number, and the same payload summary, the received result can be returned; if the payload summary corresponding to the same identifier changes, the relevant data is placed in a conflict isolation state.

[0035] To enable data from different smart collars to be compared on a unified timeline, the smart collars exchange clock synchronization information with the home gateway or server, record the collar's local monotonic time and reference time, and select multiple time anchor points with low round-trip latency to fit the clock ratio. and time offset .

[0036] When the clock jumps or the smart collar restarts, the time mapping relationship is re-established instead of continuing to use the parameters from the previous startup generation; when only one reliable time anchor point exists, it can be temporarily set... This increases the corresponding time uncertainty; when there is no reliable time anchor, the local data sequence is preserved, but no real-time joint activity events across devices are established based on this.

[0037] S101 enables the previously independent local acquisition clocks of different collars to be mapped to a unified reference time, providing a basis for further calibration of the acquisition time of positioning and inertial data.

[0038] S102. Correct the acquisition time of positioning data and inertial data according to the clock ratio and time offset, and determine the time uncertainty of the corresponding data according to the fitting residual and communication delay.

[0039] Based on the time mapping relationship determined in S101, the local acquisition time of the collar corresponding to the positioning data and inertial data is converted into the reference acquisition time.

[0040] Meanwhile, to avoid false time overlaps caused by ignoring clock mapping errors, this step retains the corresponding time uncertainty. This time uncertainty can be determined based on the clock mapping fitting residual and the communication half-round-trip delay; for example, the sum of the upper bound of the fitting error and the upper bound of the half-round-trip delay can be used as the uncertainty range for the corresponding time boundary.

[0041] The time when the server receives the data is saved separately as transmission diagnostic information and is not used to overwrite the original collection time. In this way, when two smart collars collect data at different times and then upload it at similar times due to offline caching, the two data segments will not be misjudged as occurring simultaneously because the server receives the data at similar times.

[0042] After the smart collar leaves the coverage area of ​​communication node 250, it can continue to save the original acquisition time and corresponding sensor data locally. After communication is restored, the reference acquisition time is reconstructed based on the clock ratio and time offset only if a valid time anchor point exists within the same startup generation.

[0043] After this step, all types of sensor data have both corrected acquisition time and corresponding time uncertainty range. The next step can then establish an effective time window that can be used for behavior recognition and multi-pet comparison.

[0044] S103. Map the positioning data and inertial data to the corresponding time window according to the corrected acquisition time, and determine the effective time intersection after deducting the corresponding time uncertainty boundary in the effective data interval of different pets, so that the time window and the effective time intersection can be used for behavioral evidence inspection of the facts of joint activities; when the device restarts or there is a lack of effective time anchor points, it is prohibited to splice joint activity events across startup generations.

[0045] The base time window can be represented as: in, The time window length, This represents the step size between adjacent windows. In one implementation, Take 30 seconds. Take 10 seconds.

[0046] Inertial data can first be used to calculate corresponding features on the local time axis of the collar, and then mapped to the corresponding time window according to the calibration acquisition time; positioning data can be assigned to the corresponding window according to the measurement time; sound events can be assigned to the corresponding window according to the effective duration of their intersection with the window.

[0047] When the data gap for a certain modality exceeds the allowable range, a corresponding invalid mask is set instead of artificially creating continuous data by copying the last positioning value or filling in zero-value sounds.

[0048] For pet A, the valid data range The valid range of data for pet B The first and last boundaries of the two effective intervals are contracted inward according to the corresponding time uncertainty, and then the effective time intersection that can determine the true overlap is calculated. It cannot be guaranteed that the overlapping boundary portion will enter a state awaiting verification and is therefore not directly used as the effective time for joint activities.

[0049] For overlapping time windows, the cumulative effective time is calculated based on the union length of the actual effective intervals, rather than simply multiplying the number of windows by the window length, in order to avoid the same sampled data being repeatedly counted in the activity duration in multiple overlapping windows.

[0050] The window can also be closed based on the event time watermark. For each necessary modality required to determine the fact, the maximum effective acquisition time is recorded, and the minimum value minus the allowed lateness time is taken as the watermark. The determination is completed when the window ends earlier than the watermark. If no data is available for a necessary modality after exceeding the waiting limit, the corresponding modality outputs a missing status instead of waiting indefinitely.

[0051] If late data alters an already established private event, a new evidence revision number is generated; if the evidence has already been cited in public content, a corresponding correction or retraction task is further generated.

[0052] Through S103, the behavioral data of different pets are organized into effective time windows that can be directly compared, so that the actual time range can be retained when behavioral evidence is formed later.

[0053] S104. Behavioral evidence is formed based on the valid acquisition windows corresponding to the positioning data and inertial data. The behavioral evidence stores the device identifier, start identifier, acquisition sequence number, sensor type, source type and payload summary.

[0054] The source type is used to distinguish between collar data collection, near-field interaction, owner confirmation, mobile phone location, and other information sources. Different sources correspond to different evidentiary capabilities. For example, the effective positioning and inertial window collected by the collar itself can serve as direct evidence of the pet's physical activity, while the owner's mobile phone location can only be used as a reference and cannot directly replace the pet's own location evidence.

[0055] For inertial data, the gravity component can be estimated first using the low-pass component, and the dynamic acceleration modulus can be expressed as: in, Indicates the first The dynamic acceleration magnitude of each sampling point Indicates the first Acceleration vectors collected at each sampling point Indicates the first The gravity components corresponding to each sampling point.

[0056] Within the effective window, further features such as root mean square (RMS) acceleration, variance, peak value, zero-crossing interval, RMS angular velocity, number of turns, and gait period are extracted. Gait candidates can be formed based on the peak spacing of dynamic acceleration after bandpass processing and verified using a continuous window. Abnormalities such as vehicle vibration and collar collisions are saved as anomaly categories or undetermined categories.

[0057] For location data, the latitude and longitude range, sampling interval, and movement accessibility are checked first. When the displacement between adjacent location points significantly exceeds the allowable range of the pet's possible movement speed and time interval, and cannot be explained after considering location errors, the corresponding location point is marked as a suspected jump point. Speed, direction, dwell time, and trajectory distance are calculated only based on valid location data segments; long gaps are not automatically connected.

[0058] When the smart collar is equipped with microphone 130, the sound can be divided into frames with a frame length of 25 ms and a frame shift of 10 ms, and the energy, zero-crossing rate, and 40-dimensional log-Mel spectrum can be calculated.

[0059] In one sound classification implementation, a 40×100 sound segment is input into two 3×3 convolutional blocks with 16 and 32 channels respectively. Each convolutional block is followed by ReLU and 2×2 max pooling, then global average pooling and binary classification to output the probability of pet vocalizations. Adjacent short sound events are merged to output the number of valid vocalizations, duration, and confidence level. Original environmental sounds and human voices are not directly included in the public dynamics.

[0060] When setting the barometer to 140, you can follow these steps: Estimate the relative height change, where, This represents the estimated relative change in altitude. Indicates the current ambient air pressure. This indicates the reference pressure corresponding to the confirmed static stability range.

[0061] Altitude changes only become candidates for ascent when both gait and horizontal movement evidence are available. If only air pressure changes exist but gait evidence is lacking, the changes are saved as pending identification and are not directly used to generate the fact of climbing stairs or ascending.

[0062] Therefore, the behavioral evidence is no longer just the output of a certain model, but a data object that can be traced back to the corresponding device, the generation of startup, the source of the sensor, and the specific effective window.

[0063] S105. Determine the quality quantity based on the effective acquisition window. The quality quantity includes completeness, freshness, time synchronization degree, positioning accuracy, required modal coverage and non-abnormal ratio.

[0064] To further determine whether the behavioral evidence formed in S104 has sufficient quality to support a specific fact, this step calculates the corresponding quality quantity for each valid acquisition window.

[0065] In one implementation, the window quality vector is represented as: in, Indicates completeness. Indicates freshness. Indicates the degree of time synchronization. Indicates positioning accuracy quality. Indicates the required modal coverage. Indicates the proportion of non-abnormal events.

[0066] Integrity can be calculated based on the ratio of the actual number of valid and unique observations within the window to the expected number of samples required by the sampling strategy; for audio data, integrity can be calculated based on the effective audio duration.

[0067] Freshness can be expressed as: in, This represents the time difference between the current judgment time and the oldest last valid acquisition time in the modality required to judge the fact. This represents the time constant of freshness decay.

[0068] The degree of time synchronization can be expressed as: in, This represents the upper bound of the combination of time uncertainties corresponding to the data involved. This indicates the maximum allowable time uncertainty.

[0069] Positioning accuracy quality can be expressed as: in, This represents the robust statistic corresponding to the positioning accuracy radius. This indicates the corresponding reference positioning accuracy.

[0070] Required modal coverage The non-abnormal proportion is determined by the ratio of the number of necessary modes that meet the minimum quality conditions to the total number of necessary modes of the fact to be judged. The proportion of valid non-abnormal samples shall be used to determine the percentage.

[0071] In one implementation, the overall mass quantity can be further obtained: For example, automatic activity dynamics can be set. Not less than 0.85, required modal coverage The thresholds are set to 1, and the modal integrity score is no less than 0.80. For location-dependent conditions, further requirements include a positioning accuracy radius not exceeding 30 meters and a data age not exceeding 60 seconds. Specific thresholds are saved according to the corresponding scenario rule version.

[0072] After this step, the behavioral evidence formed in S104 further acquires a corresponding quality status. The next step does not directly generate facts based on the overall quality score, but rather determines whether the necessary modalities required for the specific fact type all meet the corresponding hard conditions based on the specific fact type.

[0073] S106. Determine the corresponding required modalities and hard thresholds based on the type of social fact to be expressed, and judge the validity of each required modality based on the quality quantity; when a required modality is missing or time expires, do not replace the required evidence of the fact with a high score in other quality dimensions.

[0074] For example, facts about taking a walk together require at least location data of both parties, inertial data of both parties, and valid time information; sound-related facts require valid sound data; location-related facts require valid location data and further pass location privacy checks.

[0075] Therefore, even if the overall quality of a certain time window is high, when the inertial data of one party required for the fact of the common walk is missing, the high positioning quality or other quality scores cannot be used to replace the missing inertial evidence.

[0076] Among them, near-field interaction, owner confirmation, mobile phone location and collar collection have different source types, and only the collar's valid collection window or the behavior media that has been independently verified can serve as direct evidence of the corresponding physical activity facts.

[0077] To accommodate differences in size, age, and daily activities among different pets, this embodiment can also establish an individual baseline based on the pet's individual history.

[0078] Individual baselines are indexed by pet identifier, intraday time period, date type, scene, and feature version. In one implementation, intraday time periods can be divided by hour, and weekdays and rest days can be distinguished, with the 14 most recent valid observation days stored.

[0079] No. Historical Center Using the median of the effective sample, the scale A median absolute deviation of 1.4826 was used, and a lower limit for the scale was set. .

[0080] The fusion weight between individual pet statistics and group statistics can be expressed as: in, Indicates the number of independent valid samples. This represents the smoothing parameter.

[0081] The corresponding fusion center and fusion scale are: in, and They represent the first The individual is the center of history and the individual is the scale of history. and They represent the first Group center and group scale and They represent the first Dimensional fusion center and fusion scale, Indicates the first Lower limit of the dimension scale.

[0082] Current features are defined as follows: in, Indicates the first (i) of the current sample dimensional features, Indicates the first Dimensional Integration Center Indicates the first Dimensional fusion scale, Represents the standardized first Dimensional features are used to complete standardization.

[0083] Pet age, breed, and weight can be used for group selection during cold start. As the historical sample size of each individual increases gradually, the influence of group statistics is reduced, and the evaluation of different pets is avoided by always using a uniform threshold.

[0084] The individual behavior classifier can receive inertial statistics, gait features, positioning speed, dwell time, available air pressure and sound statistics, standardization bias and effective mask, and output categories such as resting, walking, running, turning and jumping, climbing with gait and undetermined activity.

[0085] In one implementation, the classifier uses a 32-unit fully connected ReLU layer to output six class probabilities. The classification results must also meet the physical evidence conditions of the corresponding facts, and cannot solely rely on classification probabilities to cover situations such as missing localization, time-lapse, or sound interference.

[0086] Individual baseline updates only use valid independent samples that are of acceptable quality, free from anomalies, free from audio interference, and free from label disputes. In one implementation, the following is first calculated: Recalculate: And updated: The scale has been updated to: in, This represents the current feature after truncation. and These represent the center and scale before the update, respectively. and Let denot the updated center and scale, respectively; let c represent the cutoff coefficient; and let α represent the update coefficient. Represents the basic update coefficient. This represents the upper limit of the update coefficient, and Q represents the overall quality quantity. In one implementation, , , The model and individual baseline each have corresponding versions. The new version is used for subsequent behavior judgments, while historical events continue to retain the model and evidence versions corresponding to the time of generation.

[0087] After processing by S100, the system can determine "which pet has what valid behavioral evidence at what time". However, behavioral evidence from only one pet is insufficient to determine whether two pets should be compared in a joint activity. Therefore, the next step further utilizes NFC interaction, friend relationships, and usage-specific permissions to identify participants that can be included in the same comparison process.

[0088] Please see Figure 3 S200, Process near-field interaction, friend confirmation and permission based on purpose, determine comparable participants, and associate the behavioral evidence with the corresponding participants. The near-field reading or relationship confirmation record is used to determine the interaction object or relationship status, and does not replace the sensor evidence representing the pet's joint activities.

[0089] This step primarily addresses the issue of identifying the participants.

[0090] NFC reading can determine which target pet the mobile terminal is currently in contact with, and friend confirmation can determine whether a pet-friend relationship has been formed between two pets. However, neither of the above information can prove that the two pets have actually taken a walk together, exercised together, or engaged in other physical activities.

[0091] Therefore, this step only uses near-field interaction, friend relationships, and usage-specific permissions to determine "which pets are allowed to enter the common activity comparison range", and reads the valid behavioral evidence formed in S100 according to the corresponding pet identity.

[0092] In this way, NFC interaction serves as the identification function, relationship confirmation serves as the establishment of pet owner relationships, and collar behavior evidence serves as proof of the pet's actual activities, while maintaining the distinction between various types of information.

[0093] After identifying comparable participants and corresponding behavioral evidence, the next step is to establish the evidentiary relationships required for different social facts for specific participants.

[0094] This step specifically includes the following steps.

[0095] S201. The mobile terminal reads the opaque reference in the NFC tag of the target pet's collar. The server parses the valid tag, device, and pet binding relationship based on the opaque reference and determines the target pet.

[0096] The NFC tag 190 can store NDEF records, which include the protocol version and opaque tag references, and may also include an entry address consisting of a fixed business domain name and an opaque tag reference.

[0097] The tag does not directly store the owner's phone number, home address, login token, or complete pet profile, thus preventing mobile devices from directly accessing sensitive internal data after reading the tag.

[0098] Opaque tag references can use random values ​​with sufficient randomness and be resolved to tags, devices, and pets through server-side binding relationships.

[0099] After receiving the opaque tag reference, the server checks whether the NFC tag is enabled, whether it has been reported lost, and whether the current binding is valid. Upon successful verification, it only returns the display name, avatar, and information summary allowed by the target pet owner. If the tag is not yet bound, the server initiates the claiming process. If there is a binding conflict, the tag is revoked, or the pet's profile is archived, no friend creation credentials are returned.

[0100] The initiating entity is determined by the verified account and its currently selected pet, while the target entity is determined by the valid tag binding relationship. When an account manages multiple pets, the current pet needs to be identified before initiating the interaction to avoid incorrectly establishing a relationship with another pet after the tag is read.

[0101] S201 clarifies the target pet for the near-field interaction, but at this point, the two parties have not yet established a controlled interaction state, so a near-field interaction session is further created.

[0102] S202. Create a near-field interaction session based on the current pet and the target pet of the initiating account management. The near-field interaction session saves the session identifier, initiating subject, target subject, identity binding version, expiration time and status.

[0103] The near-field interaction session can also save information such as read request identifier, source type, authentication level, and creation time.

[0104] In one implementation, the validity period of the near-field interaction session is set to 120 seconds. After the interaction session expires, it is necessary to reread or re-parse the target pet's identity, rather than simply reusing the old session by extending the mobile terminal's local time.

[0105] The source type of the NFC reading session is clearly recorded as "mobile terminal reading tag", rather than "direct interaction between two pet collars".

[0106] For example, if the first owner uses their phone to read the NFC tag on Lucky's collar, it only proves that the first owner's phone was near Lucky's collar, but it does not prove that MoMo, which is managed by the first owner, was also present. Only after obtaining valid evidence of the actions of both MoMo and Lucky and meeting the conditions for joint activity can a corresponding fact of joint activity be established.

[0107] In NFC tag implementations with secure computing units, tag authentication can be further performed.

[0108] Each security tag stores an independent key. Tag referencing and a monotonic counter. The mobile terminal first requests a 128-bit random challenge from the server. The server binds the challenge with the initiating account, purpose, tag reference, and validity period, and then the mobile terminal sends the challenge to the NFC tag.

[0109] The label increment counter ctr is used, and the following calculations are performed: in, This indicates the label authentication code. Indicates a tag-independent key. Indicates the protocol version. Indicates a tag reference. Indicates a random challenge. Indicates a label monotonic counter. Indicates purpose.

[0110] The tag returns the counter and authentication code to the server. The server checks whether the challenge was issued by itself, whether it is still valid, whether it has not been used, and whether it corresponds to the current initiator. At the same time, it verifies the authentication code and counter.

[0111] Challenge consumption and interaction session creation can be completed in the same transaction; if a consumed challenge is reused or the counter is less than or equal to the accepted value, it is treated as a replay.

[0112] It should be noted that the above certification is only used to improve the credibility of the target tag's identity. Even if the tag is successfully certified, it does not directly prove that the two pets were actually present together.

[0113] For repeated reads of the same tag, deduplication can be performed based on the read request identifier, the initiating pet, the target pet, and the currently active session. For example, the same pet pair will only generate one pending confirmation request in the same 120-second interaction session. Repeated touches will only return the current relationship status and will not increase the number of friends, the number of encounters, or the number of joint activities.

[0114] Having obtained a near-field interaction session with clearly defined participants and a valid duration through S202, you can now process friend requests and corresponding usage permissions for both owners within the scope of this session.

[0115] S203. When the near-field interaction session is valid, establish a friend relationship between the current pet and the target pet based on the confirmation records initiated by the first owner and accepted by the second owner, and store the permissions for displaying business cards, processing data on joint activities, mentioning participants, receiving dynamic messages, and communicating messages.

[0116] After the first owner initiates a friend request, the second owner can accept or decline. The confirmation record can save the confirming party, the object of the confirmation, the purpose, the time, and the corresponding version. The server further verifies the management permissions of both accounts for the corresponding pets.

[0117] The friend relationship uses the sorted pet pair as the unique relationship key. When two owners simultaneously send add requests from different directions, the two requests are merged into the same pet friend relationship, instead of creating two conflicting friend records.

[0118] The friend relationship record can save the relationship identifier, pets of both parties, relationship status, relationship source, current relationship version, and references to confirmation records of both parties.

[0119] In this system, friend relationships and specific usage permissions are independent of each other. For example, two pets may already be friends, but the owner can disable the processing of shared activity data; they can also be allowed to receive regular updates, but are prohibited from being mentioned by name in shared updates.

[0120] Purpose-based permissions can be further differentiated into business card display, friend request reception, joint activity data processing, pet name mention, joint posting, posting updates, private messaging, and model learning. Each permission stores the allowed fields, recipient set or rules, validity period, and permission version.

[0121] Real-time location, home address, and original ambient sounds will not be automatically shared once a friend relationship is established; separate and valid authorization is required for the specific purpose.

[0122] S203 addresses the question of whether a valid relationship exists between the two pets and what types of data processing are permitted. Only when shared activity data processing permissions are valid will the other pet's behavioral data be read for comparison.

[0123] S204. Determine comparable participants based on the friend relationship and shared activity data processing permissions, and read the behavioral evidence corresponding to each participant according to the identity binding relationship. The establishment of a friend relationship does not automatically enable real-time location sharing or shared activity data processing, and near-field interaction is only used to limit the comparison objects.

[0124] Joint activity comparisons are only activated when all participating pet owners have given permission for the respective uses. Authorization from the first owner cannot substitute for authorization from the second owner, and permission to display a pet's name card cannot be interpreted as permission for the backend to read the pet's movement data.

[0125] The Co-activity Module 340 can create candidate pet pairs based on valid friend relationships, confirmed near-field interaction objects, or discoverable permissions enabled by both parties.

[0126] It is important to emphasize that the candidate pet pair is only used to limit the range of identities that can be included in the comparison, and does not indicate that joint activities have already occurred.

[0127] Each candidate pet pair can form a corresponding key based on the sorted two pet identifiers, the current identity binding version, and the comparison rule version, and then read the behavioral evidence of both parties within the same time range according to the pet identity.

[0128] When device transfer, pet switching, or identity binding conflict occurs within the corresponding time window, the relevant behavior window will be split according to the valid range of the identity, and the same common activity event will not be allowed to be formed across the valid range of the identity.

[0129] At this point, the system has clearly defined "which pets can be compared" and "what behavioral evidence each pet possesses." However, this data does not yet specify what evidence is required for different social facts; for example, the fact of adding a new friend and the fact of taking a walk together clearly do not have the same evidentiary conditions. Therefore, the next step is to further establish a clear supporting relationship between social facts and identity, behavioral evidence, and authorization conditions.

[0130] Please see Figure 4 S300, establish an event support structure based on the comparable participants and their corresponding behavioral evidence, and save the participating pet set, fact type, required evidence type and corresponding evidence reference for the social fact to be expressed, so as to establish the support relationship between the social fact and identity, behavioral evidence and authorization conditions.

[0131] The aforementioned comparable participants only address the scope of behavioral comparison, and the behavioral evidence itself merely describes the actual activities of each pet. Without further establishing rules for the correspondence between facts and evidence, problems may still arise such as using friendship relationships to replace evidence of shared walks, or using NFC reading times to replace actual behavior time.

[0132] Therefore, this step establishes the corresponding necessary evidentiary relationships based on different types of facts. Subsequently, when S400 makes a joint activity judgment, it no longer relies solely on the result of a single model, but examines each established factual support condition one by one.

[0133] This step specifically includes the following steps.

[0134] S301. Based on the comparable participants and the behavioral evidence corresponding to each participant, determine the participating pet set and the type of fact for the social fact to be expressed.

[0135] Social facts can include facts of individual behavior, facts of joint activities, facts of newly formed relationships, facts related to location, and other facts with a clear evidentiary basis.

[0136] Each fact can record the fact identifier, predicate type, participating pet set, effective time, numerical indicator, location dependence, required evidence expression, confidence level, and revision number.

[0137] For example, "MoMo is taking a walk" relies on MoMo's valid identity and individual walking behavior window; "MoMo and Lucky are walking together" relies on the valid identities of both MoMo and Lucky, evidence of their behavior, and evidence of their joint activities; while "New pet friend Lucky" relies on the relationship record confirmed by both owners and does not rely on their shared gait.

[0138] After determining the type of fact, the next step is to further define the specific set of evidence required for each fact to be true.

[0139] S302. Determine one or more sets of necessary evidence based on the fact type, and save the evidence references corresponding to each set of necessary evidence to form an event support structure. The social facts in the event support structure are dependent on at least one of pet identity, sensor window, relationship confirmation, and use authorization.

[0140] In one implementation, the event support module 350 establishes a directed acyclic structure.

[0141] The nodes in the directed acyclic structure may include pet identity, sensor window, authentication session, relationship confirmation, usage authorization, behavior category, public location, social fact, and posting object. The edges between nodes represent the dependency relationship between the corresponding facts and evidence or permission conditions.

[0142] The same identity node or permission node can be cited by multiple facts; generated social text cannot be used as sensor evidence to avoid the generated content being used as a source of real data to form a cycle of support.

[0143] The event support structure stores the relationship between facts and actual evidence, rather than just the final generated text. Therefore, even if the names, locations, or other fields in the social content change due to privacy processing, it is still possible to re-evaluate whether the corresponding facts still hold true based on the underlying evidence.

[0144] S303. Perform identity, time, quality, and permission checks on the required evidence set, and determine that the social fact is established only when at least one complete required evidence set meets the corresponding conditions; for multiple alternative required evidence sets, do not select partial evidence from multiple incomplete required evidence sets to construct undefined alternative evidence.

[0145] The necessary evidence for a fact can be expressed using finite conjunction and disjunction structures.

[0146] Assume facts The corresponding set of necessary evidence is , Present evidence Whether it is valid under the corresponding version and purpose depends on the fact that for facts requiring all evidence to be true at the same time, all evidence in the set must be valid; for facts with multiple predefined alternative evidence sets, at least one complete alternative evidence set must satisfy the condition.

[0147] For example, verified synchronized videos can serve as surrogate evidence for certain gestures, but confirmation records from ordinary friends cannot be used as evidence of gesture behavior.

[0148] Just because two incomplete sets of evidence are missing different parts does not mean that we can extract parts of the evidence from each set and recombine them into an undefined set of evidence.

[0149] After this step, the system has clarified the evidentiary requirements corresponding to different social facts. Therefore, the next step can directly read the actual behavioral evidence of each participating pet based on the event support structure, and complete the determination of the common activity facts based on time, space, and activity status.

[0150] Please see Figure 5 S400. According to the event support structure, check the necessary evidence corresponding to the social facts. For joint activity facts, generate joint activity candidate events when each participating pet has valid data processing authorization and the corresponding behavioral evidence meets the necessary evidence conditions. For individual behavioral facts, generate individual candidate events when the behavioral evidence of the corresponding pet meets the necessary evidence conditions.

[0151] This step translates the evidentiary conditions stipulated in the aforementioned event support structure into specific behavioral data.

[0152] For individual facts, only valid behavioral evidence of the pet itself needs to be examined; for facts of joint activities, the location, time, and movement status of all participating pets within the same time frame need to be examined simultaneously.

[0153] This avoids the situation where two pets are in close proximity, have become friends, or have had an NFC scan, and thus automatically become known to walk or exercise together.

[0154] This step specifically includes the following steps.

[0155] S401. Read the valid behavioral evidence of each participating pet corresponding to the facts of the joint activity, and determine the valid time intersection based on the valid data intervals corresponding to each participating pet.

[0156] Based on the time window and time uncertainty formed in S103, the conservative time overlap ratio is further calculated for the effective action windows of both parties. .

[0157] The The numerator is the intersection length of the valid intervals of the data from both sides after deducting the time uncertainty boundary, and the denominator is the length of the time interval to be compared.

[0158] In one implementation of a shared walking activity, the following can be set up: The minimum modal integrity score must be 0.80, and the minimum modal integrity score for each necessary modality must be 0.80. The total duration of the common activity intervals that meet these conditions must be no less than 180 seconds.

[0159] Once the time check is passed, it only indicates that both parties may engage in behavior simultaneously within the corresponding time period. Further assessment is still needed to determine whether the two pets meet the corresponding activity conditions in their spatial locations.

[0160] S402. Within the effective time intersection, determine the spatial nearest neighbor status based on the location and positioning accuracy radius of each participating pet, and determine the movement speed and movement direction based on the positioning data.

[0161] Let the distance between participating pet A and participating pet B at the corresponding time be . Their positioning accuracy radii are respectively and The distance threshold corresponding to the shared activity scenario is .

[0162] when: At that time, it can be determined that both parties meet the nearest neighbor condition; when: At that time, it can be determined that the two parties do not meet the nearest neighbor condition; The remaining cases are treated as uncertain nearest neighbor states.

[0163] In one implementation of outdoor shared walking, the distance threshold D can be configured to 30 meters. However, the fact that the two parties are within 30 meters of each other is not sufficient to prove that they are walking together; it is also necessary to consider the inertial behavior and direction of movement of both parties.

[0164] Within the effective movement range of both parties, the movement speed, speed difference, and cosine of the angle between the speed vectors can be calculated separately. For states with movement speeds below the determinable speed, directional similarity is not used as a basis for joint activity to avoid false consistent movement directions caused by static positioning jitter.

[0165] Once the spatial conditions are determined, further verification will be conducted by combining the inertial behaviors of both parties.

[0166] S403. Determine the corresponding gait or activity state based on the inertial data of each participating pet, and check the consistency between the gait or activity state and the spatial proximity state, movement speed and movement direction.

[0167] When both parties' inertial behavior models are identified as walking and have a continuous effective gait, and the spatial nearest neighbor state and movement direction continuously meet the corresponding conditions, it can be considered that the relevant windows have behavioral support for walking together.

[0168] When one party is stationary and the other party is continuously moving away, or when there is no actual overlap in the effective time of the actions of both parties, the corresponding joint activity candidate is stopped or reduced.

[0169] To distinguish between walking together and traveling in the same vehicle, the system also checks whether the positioning displacement is consistent with the inertial gait. If the positions of both parties change synchronously, but there is a persistent lack of gait evidence, or the positioning speed exceeds the normal walking range, or the vehicle pattern judgment is already established, then walking together is not considered a fact.

[0170] When the system lacks the ability to classify vehicles with verification, it merely marks them as not meeting the criteria for evidence of walking together, without further inferring the specific mode of transportation.

[0171] For joint activities, corresponding classification models can also be used to assist in the judgment.

[0172] In one implementation, the input includes standardized behavioral characteristics of both parties, the probabilities of walking and running for both parties, the conservative time overlap ratio, the nearest neighbor ratio, the speed difference, the directional similarity, and the corresponding effective mask.

[0173] Each pet's individual characteristics are first mapped using a shared 16-unit ReLU method. Then, the sum and absolute difference of the feature maps from both sides are concatenated with symmetric spatiotemporal statistics. Finally, the data are processed using a 32-unit ReLU method and four-class classification outputs: co-walking, co-movement, co-domain but unconfirmed co-activity, and uncertain category.

[0174] The training labels for the co-activity model come from synchronized observations or verified videos, and do not use friend relationships, NFC reading results, or pre-generated pet social texts as training labels.

[0175] Candidate confidence can be expressed as: in, Indicates the confidence level of candidates for joint activities. This represents the output of the joint activity model. and This indicates the quality of the behavioral data of both parties. This represents the cross-modal consistency coefficient.

[0176] NFC authentication level, duration of friendship, and number of likes are not used to increase confidence in physical co-activity.

[0177] S404. When the effective time intersection, spatial proximity state, and activity evidence of each participating pet continuously meet the necessary evidence conditions corresponding to the fact of joint activity, a candidate event of joint walking or joint exercise is formed; when there is only location overlap, vehicle displacement, or lack of effective activity evidence of participating pets, the candidate event of joint walking or joint exercise is not formed.

[0178] Continuous joint activities can be controlled by using entry and exit thresholds to form hysteresis control.

[0179] For example, you can set a timer to enter a shared walk state after three consecutive windows meet the conditions for a shared walk; if short-term data is missing, only pause the activity time accumulation instead of ending the activity directly; if data is missing for more than 20 seconds or the two parties are clearly separated for more than the corresponding time, end the current shared activity event.

[0180] The pause period is not included in the duration of the joint activity. When the conditions are met again later, a new event can be created, or it can be merged with the previous event according to the pre-set time interval rules, while retaining the independent evidence references corresponding to each valid interval.

[0181] Event merging is determined based on the group of participating pets, the type of event, the duration of continuous activity, and the source of evidence. Repeatedly opening a page, performing NFC reads, or making repeated network requests by the owner will not create new physical activity events or increase the number of shared activities.

[0182] For group activities involving three or more pets, facts about the group are established based on verified evidence of pairwise joint activities. The fact that pet A and pet B engage in joint activities, or that pet B and pet C engage in joint activities, does not automatically imply that pet A and pet C also engage in joint activities. Group facts are only generated when each mentioned participant in the group possesses valid evidence of behavior and authority that meets the requirements.

[0183] For individual behavioral facts, the above-mentioned multi-pet comparison process is unnecessary.

[0184] For example, when MoMo is moving alone in an authorized public park, no prior NFC interaction is required. The system can determine whether MoMo is walking or running based on its own location data and inertial behavior window.

[0185] In a home resting scenario, resting candidates can be formed based on continuous low dynamic acceleration, low angular velocity, and evidence of stillness; a home gateway connection can only prove that the collar is within the corresponding communication range, and cannot prove that the pet is asleep or has arrived home.

[0186] After processing via S400, the system has obtained candidate events supported by corresponding evidence. However, "facts being established" is not the same as "all content being publicly available." For example, the fact of a joint activity may be established, but the participating pets may not have been mentioned by name without authorization, or the activity location may be in a sensitive area near the home. Therefore, the next step is to further implement privacy and access control measures for the candidate events.

[0187] Please see Figure 6 S500: Sensitive location isolation and participant permission intersection are performed on the candidate events to form an external field set; when the location, participating pet, or evidence field is removed or becomes invalid, the necessary evidence for social facts is re-examined along the event support structure, and only social facts that are still supported by evidence and comply with authorization are retained; social facts that no longer meet the corresponding necessary evidence conditions are deleted; when the remaining valid evidence can fully support other fact types, the corresponding fact type and its evidence relationship are newly created based on the remaining valid evidence, and the desensitized content generation input is formed.

[0188] This step addresses the public scope of candidate events and whether the facts still hold true after field changes.

[0189] If you only delete the pet's name or location from the already generated text, you may encounter situations such as "the participating pet has been deleted, but the semantics of walking together are still retained" or "the location is no longer public, but the fact of the first visit based on that location is still retained".

[0190] Therefore, this step is not simply about modifying social text, but rather about first determining the fields that can be used externally based on privacy and permissions; if a field is deleted or becomes invalid, the facts themselves are then re-examined along the event support structure established in S300.

[0191] Only if, after re-examination, there is still complete supporting evidence and the facts are consistent with the current authorization, can subsequent content generation proceed.

[0192] This step specifically includes the following steps.

[0193] S501. Perform sensitive location isolation and participant permission intersection on the candidate events, and determine the participating pets, locations and evidence fields that can be provided to the outside world based on the processing results, forming a set of external fields.

[0194] The shared dynamic allowed reception range can be determined by the intersection of event rules, authorization from the first pet owner, authorization from the second pet owner, valid relationships, and location privacy conditions.

[0195] For example, if the first pet corresponds to the allowed receiving set {A, B, C}, and the second pet corresponds to the allowed receiving set {B, C, D}, and there are no further restrictions on other conditions, the final allowed receiving set will be {B, C}.

[0196] If the receiving set is empty after the intersection, the private events that each owner can view can be retained, but no corresponding public social content will be generated.

[0197] The privacy projection module 360 ​​receives structured facts, not the complete raw log, and processes them separately for identity, time, location, numerical values, and media information. The owner's private view can retain the precise location, while the public view only outputs information about public areas that meet the public criteria.

[0198] Sensitive locations may include the home address set by the owner, the parents' residence, locations that are off-limits to the public, and other locations that require restrictions.

[0199] The positioning point p and the positioning accuracy radius r together form the positioning uncertainty region. When this uncertainty region intersects with the outer buffer zone corresponding to the sensitive location, the corresponding precise location is not output even if the positioning center is located outside the buffer zone.

[0200] For public points of interest, when their coverage area intersects with a family protection zone, they can be processed into a coarser-grained urban or outdoor area; if the public conditions are still not met, the location field should be removed.

[0201] When allowing public access to the trajectory summary, trajectory points within the sensitive area are deleted first, followed by data points within the protection period before and after the pet enters and leaves the sensitive area. In one implementation, the protection period is 120 seconds.

[0202] If the sensitive location entrance can still be directly inferred from the remaining endpoints after processing, then the corresponding route will not be output; only the distance or duration corresponding to the grade value will be output.

[0203] Time can be expressed in 15-minute intervals, distance in 0.5-kilometer increments, and duration in 5-minute intervals.

[0204] Public fields may include external event identifiers, authorized display names, fact categories, classification indicators, public location tags, versions of expression, and public media derived references, while home addresses, latitude and longitude, original tracks, NFC keys, internal pet IDs, evidence download addresses, and original environmental recordings are not included in the public fields set.

[0205] S501 has identified which fields can continue to be used for public expression. However, since field deletion may alter the validity of the facts themselves, the next step is to re-perform a fact support check.

[0206] S502. When the participating pet, location, or evidence field is removed or becomes invalid, the required evidence expression for the corresponding social fact is re-examined along the event support structure.

[0207] The re-examination does not involve textual judgment of already generated sentences, but rather a re-examination of the factual and evidentiary dependencies stored in S300.

[0208] Removing the location field does not improve the quality of behavioral evidence, and anonymizing the pet's name does not obtain authorization from other pet owners to share it.

[0209] If the necessary evidence expression for a social fact still has complete and valid support after field processing, it can be retained; if the original fact has lost its necessary evidence, it should be further processed in accordance with S503 or S504.

[0210] S503. When the facts of a joint activity no longer meet the corresponding necessary evidence conditions due to the removal of the participating pets, the original facts of the joint activity are not retained by simply deleting the names of the participating pets; when the remaining pets have complete individual behavioral evidence, individual facts and their evidentiary relationships are newly established based on the individual behavioral evidence.

[0211] For example, the original fact is "MoMo and Lucky took a walk together".

[0212] If Lucky's owner revokes the named mention or public access permission for shared activities, causing Lucky to no longer be able to participate as a publicly accessible pet, then the sentence cannot be directly changed to "MoMo is taking a walk with friends" while maintaining the original shared activity semantics.

[0213] At this point, MoMo's individual behavioral evidence should be re-examined. If the valid location and inertial behavior evidence for MoMo still fully supports the individual walking, a new individual fact can be established: "MoMo completed a walk today," and the new fact type and corresponding evidentiary relationship can be saved.

[0214] The re-established individual facts no longer include Lucky's identity, nor do they retain the private statistics that can only be obtained by comparing MoMo and Lucky.

[0215] S504. When the location field is removed or becomes invalid, delete the fact that the location is a necessary condition; for behavioral facts with independent and complete behavioral evidence, retain them after re-examining the corresponding necessary evidence expression, and generate desensitized content input based on the facts that are still valid after re-examination.

[0216] For example, if the original fact is "MoMo is taking a walk in a park", and the location of the park cannot be disclosed, the location fact can be deleted if the evidence of MoMo's walking behavior is still complete, while the behavioral fact of "MoMo is taking a walk" can be retained.

[0217] However, if the original fact is "MoMo visited a certain park for the first time", the location itself is a necessary condition for the stated fact. After deleting the location, the fact of "first visit to a certain park" as a whole no longer holds. The conclusion of "first visit" cannot be retained simply by deleting the park name.

[0218] Similarly, when the distance indicator becomes invalid, comparative facts such as "going further than yesterday" formed by relying on the indicator also become invalid.

[0219] When relevant evidence is revoked, the system can use reverse indexing to locate fact nodes that are directly or indirectly dependent on that evidence and recalculate according to the dependency relationship.

[0220] If a public fact still has another complete and valid set of alternative evidence, it can be retained in the new revision; if all evidence is invalid, the fact should be deleted or withdrawn.

[0221] Recalculation always uses the currently valid license as the data boundary and will not read the original sensor data that has lost its license in order to reconstruct public content.

[0222] After processing by S500, the system no longer obtains the original candidate events, nor simply sentences after removing sensitive fields, but rather de-identified content that has passed evidence and permission checks. This result can be directly provided to the content generation module in the next step, without requiring the content generation model to determine which facts actually exist.

[0223] Please see Figure 7 S600, Generate pet social content based on the desensitized content input.

[0224] This step follows the input for generating desensitized content from S500, and is mainly used to convert facts that have valid evidence and comply with the current authorization into pet social content that can be displayed or published.

[0225] Since the pets, behaviors, locations, and values ​​involved have already undergone fact-support verification in the preceding steps, this step restricts the content generation module to only express information based on the allowed input facts and fields, and it cannot guess new pets, locations, or behaviors from the context.

[0226] Once pet-related social content is generated, it is further linked to identity, evidence, and authorized versions. This ensures that any authorization revocation, identity change, or evidence revision that occurs between the completion of content generation and actual delivery can promptly prevent the continued publication of old content.

[0227] This step specifically includes the following steps.

[0228] S601. Provide the desensitized content generation input to the content generation module. The desensitized content generation input includes facts that support inspection, authorized aliases, classification indicators, and expression templates. Generate pet social content based on the desensitized content generation input.

[0229] The input for content generation can also include the pet's public name, language information, and permitted public media references.

[0230] The content generation module 370 cannot directly read the original complete trajectory, NFC tag key, or owner's private file.

[0231] Different fact types use different expression structures. For example, a single walk fact can include the subject, the behavior, and the duration, a shared walk fact further adds authorized participating pets, and a new friend fact uses the relationship confirmation object without attaching the duration of the non-existent physical activity.

[0232] When using deterministic templates, first-person pet social content can be generated based on predefined factual grammar.

[0233] For example, taking a walk together can be expressed as "Today I took a walk with {pet friend alias} for {duration}", and a public location tag can be added if the location is allowed to be public; adding a new pet friend can be expressed as "I have added {pet friend alias} to my pet friends list".

[0234] Each template slot is associated with a corresponding fact identifier and field source, and you are not allowed to freely fill in unsupported values, locations, or pet names.

[0235] When using a generative language model, facts can first be converted into placeholder information with clear types, such as subjects, verified behaviors, participants, and time periods. The model can then select allowed sentence structures or simply generate connecting text that does not add new facts. Finally, the program can write the specific pet name, value, and location into the corresponding slots.

[0236] After the content is generated, verify the subject, participants, actions, time, values, and location. If the generated result includes non-existent pet owner names, extends the activity duration, describes uncertain activities as certain behaviors, or adds unsubstantiated health and psychological states, revert to a definitive template or enter the owner review state.

[0237] Personification only changes the way the story is told, not the corresponding fact itself. For example, the verified fact of walking can be expressed as "I took a walk today," but it cannot automatically express "I was especially happy today" because of increased activity.

[0238] Multilingual generation uses the same underlying fact object, only changing the language resources. Switching languages ​​will not re-evaluate pet behavior, change the scope of authorization, or alter the time corresponding to the evidence.

[0239] Please see Figure 8 S602. Bind the content summary of the pet social content with the identity binding version, evidence revision number and authorization version of the participating pet to form a publishing credential, and review the content summary and corresponding version when submitting the publishing.

[0240] Publishing credentials may also include an event identifier, content revision number, fact support summary, relationship version, location rule version, model version, receiving set summary, and expiration time.

[0241] The content digest can be calculated according to a fixed field order and numerical format, such as using a SHA-256 digest, to determine whether the content at the submission stage is consistent with that at the generation stage.

[0242] When submitting a release, the release transaction module 380 reads and locks the referenced identities, relationships, and authorized versions in a predetermined order, and recalculates the content digest and allowed receiving set.

[0243] Publishing transactions and permission update transactions can use the same locking mechanism or be isolated by serializable transactions, thereby preventing undetected authorization changes from occurring after permission checks have passed and before the public object is actually written.

[0244] If all versions and summaries are consistent and the publication credentials have not expired, the data is atomically written to the public object and the record to be sent; if any correspondence is no longer consistent, the original publication process is stopped and the corresponding factual support relationship is reassessed.

[0245] S603. Maintain a reverse index from identity, relationship, evidence, and permission versions to candidate events, pending records, and public content; when any corresponding version becomes invalid, determine the affected object based on the reverse index, stop sending the corresponding old publishing credentials, and re-determine the publishable facts or rebuild the allowed fields based on the current valid permissions.

[0246] Records to be sent can be constructed using an event identifier, a content revision number, and a receiving group identifier to form an idempotent key.

[0247] The sending worker only reads the confirmed public projection data and does not have the authority to read the original precise trajectory or the original ambient sound.

[0248] Before each record to be sent is actually dequeued, the current authorized version is checked again. If the corresponding permission has expired or been revoked, sending is stopped; if the network return status is uncertain, the existing sending result is retrieved based on the original idempotent key and retried, instead of recreating another identical record.

[0249] When device unbinding, pet ownership transfer, friend removal, usage authorization revocation, or behavior evidence revision occurs, the inverse index corresponding to identity, relationship, evidence, and permission version is used to locate the affected candidate events, pending records, and historical public content.

[0250] Objects that have not yet been sent become invalid; historical content that already exists in the application will have its allowed fields regenerated according to the current permissions or will return to an inaccessible state; short-term signature addresses corresponding to public media will cease to be issued and the cache will be updated according to the current permissions.

[0251] Thus, a continuous data processing relationship is formed from the raw sensor data of the smart collar to the final pet social content: location data and inertial data are first processed by identity, time, window, and quality to form behavioral evidence; near-field interaction, friend confirmation, and purpose-based permissions are used to limit the participants that can be compared; the event support structure further determines the evidence required for different social facts; the co-activity module forms candidate events based on time, location, and actual activity status; after the candidate events are processed by location privacy and participant permissions, they are checked for fact support again; finally, only facts that still have valid evidence and conform to the current authorization are used to generate and publish pet social content.

[0252] Please see Figure 9 In order to enable the pet behavior model to be gradually adjusted according to the pet's own activity characteristics, this embodiment can also set up an owner calibration mechanism.

[0253] Level 1 calibration focuses on observable behavior, such as allowing the owner to correct the system's recognition result to walking, running, standing still, or undetermined activity; Level 2 calibration focuses on the facts of the scene and the participants, such as correcting "walking together" to "moving in the same vehicle," or indicating that the collar was actually being worn by another pet at the time.

[0254] Regular sharing confirmation only indicates whether the owner agrees to the posting; it does not directly become a training label for the behavior model.

[0255] In one implementation of video calibration, 5 frames are extracted per second and scaled to 224×224. The normalized RGB data is input into three 3×3 convolutional layers with 32, 64 and 128 channels respectively and a stride of 2. Each layer is followed by ReLU, and then global average pooling is used to form frame features. The corresponding time mean and standard deviation are calculated and input into a 32-unit classification layer along with sound statistics and effective mask.

[0256] Only after the pet's identity is clearly identified in the video and the corresponding verification has been completed can the video content be used as evidence of behavior. The account that uploads the video cannot automatically replace the actual pet's identity in the video.

[0257] Individual model updates can fix the common feature extraction layer and only adjust a limited number of pet individual output layer parameters. And limit the parameters between the old and new models. distance.

[0258] In one implementation, the upper limit of the parameter distance is set to 0.05, while limiting the number of updates per day.

[0259] The new model needs to be further checked in independent replay sets for errors in behavior categories, the proportion of unknown categories, association of incorrect participants, and blocking of sensitive facts. Only after all requirements are met will the new model version be switched to; otherwise, the original model will be retained.

[0260] After the owner revokes the model learning authorization, the corresponding data will no longer be added to new training tasks, and the affected individual models will be retrained or rolled back according to the corresponding deletion policy. Model learning permissions and social publishing permissions are independent of each other; disabling automatic publishing does not mean that the related data can continue to be used for model learning.

[0261] Please see Figure 10 In the implementation of audio encoding / decoding, speaker 150, and microphone 130 in the smart collar 100, the owner can select preset recall sounds, record the owner's voice, or establish real-time audio interaction through a mobile application.

[0262] Playback commands include command identifier, target device, audio summary, duration, volume limit, permission version, and validity period.

[0263] After completing the command check, the smart collar drives the speaker and records the actual playback start time, end time, and playback result. Repeated commands return to the previously executed state, preventing playback from being lost due to a receipt.

[0264] To prevent the owner's voice played by the speaker from being re-captured by the microphone and mistakenly identified as a pet's bark, the actual playback range... Further expanding based on time uncertainty and the tail sound of the sound: Where I represents the sound interference range, and These represent the actual start and end times of playback, respectively. Indicates time uncertainty, This indicates the protection time before playback begins. Indicates the protection time for the tail tone of a sound.

[0265] Microphone frames that overlap with intervention interval I are set with an invalid sound mask and are not included in the pet barking count and normal sound baseline update.

[0266] After playback ends and the corresponding protection time has elapsed, an independent behavior response window can be established to generate responses based on the pet's location and inertial changes, such as approaching the owner, changes in activity, or unpredictable events.

[0267] The completion of playback does not directly indicate that the pet has completed the recall, sit, or other training actions; the corresponding training facts still require valid evidence of actual behavior.

[0268] Mobile application and media application scenarios: Mobile applications may include entry points for functions such as baby updates, sharing, celebrity dogs, training classes, private messages, lifestyle, logs, AI challenges, and personal information.

[0269] Among them, the "ZaiZai Dynamics" section can display individual activities, new friends, joint activities, and authorized periodic review events that have been generated through the aforementioned process.

[0270] The platform allows users to receive images or videos uploaded by the owner. After integrity verification, uploaded media is stored separately as private originals and public derivatives. Public derivatives have their location metadata removed, and the platform further checks for potentially location-leaking information such as house numbers, maps, and audio addresses in the image. If these details cannot be reliably processed, the platform will require owner review or removal of the media.

[0271] When an owner chooses the name of a pet friend in the media, it only indicates that they want to be mentioned; it cannot be used as a tag to identify shared activities.

[0272] The "Celebrity Dog" section can display verified activities or achievements that the owner has consented to be made public, but voting results are stored separately from the collar's original behavioral data.

[0273] The training class generates a corresponding training progress based on the verified actions or responses. The purchase of a course or the click on a page are not evidence that the pet has completed a certain behavior.

[0274] The private messaging function authenticates participants based on their account and relationship permissions. Once a friend relationship is established, a messaging channel can be opened when both parties agree, but real-time location or device control credentials will not be automatically sent.

[0275] For asynchronous operations such as NFC reading, address search, friend confirmation, and media upload, the mobile application can save the page generation, the current pet version, and the request sequence number. When the asynchronous result is returned, the interface is only updated if the corresponding state is still consistent with the current page state; when the page is destroyed, the corresponding page generation is invalidated first, then the task is canceled and the exclusive media resources are released.

[0276] The following uses the pets MoMo and Lucky as examples to further illustrate this embodiment.

[0277] MoMo is managed by the first owner, and Lucky is managed by the second owner. Both pets wear smart collars that have been linked to their identities.

[0278] The second owner enables Lucky to display limited business cards and receive friend requests. The first owner selects MoMo as the current pet in the mobile app and brings the mobile device close to the NFC tag on Lucky's collar.

[0279] After the mobile terminal reads the opaque tag reference, it sends it to the server. The server checks the current valid tag, device and pet binding relationship of Lucky, and creates a near-field interaction session associated with MoMo, Lucky and the corresponding identity binding version.

[0280] During the active interactive session, the first owner initiates a request to add a pet as a friend. Once the second owner accepts, the server establishes a friendship between MoMo and Lucky.

[0281] At this point, only the relationship fact of "new pet friend Lucky" is formed, and the fact of "the two pets have met" or "have taken a walk together" is not generated.

[0282] Only after both parties further enable joint activity data processing and corresponding usage permissions will the system read evidence of both parties' behavior to establish a joint activity comparison task.

[0283] For example, the observation interval is from 10:00 to 10:05, and the uncertainty of both clocks is within the allowable range, corresponding to an effective time overlap ratio of 0.90.

[0284] During the continuous qualified time period, the distance between the positioning centers of the two parties is 8 meters, and the positioning accuracy radii are 5 meters and 6 meters respectively. Therefore, the conservative upper limit of the distance is: It is below the configured threshold of 30 meters for shared activity distance.

[0285] Meanwhile, both MoMo and Lucky's corresponding inertial models were identified as walking continuously with valid gait evidence. Their movement direction and positioning speed met the conditions for walking together, and the total effective time of their joint activity was 240 seconds.

[0286] At this point, establish the fact that MoMo and Lucky are walking together, and save the identity references of both parties, their respective walking windows, the results of the joint time calculation, and the corresponding quality information.

[0287] Previously formed NFC interaction sessions will still only be stored as a source of friend relationships and will not be used to compensate for missing location or inertial behavior evidence, nor will they increase the confidence in the physical behavior of walking together.

[0288] If the allowed receiving set corresponding to MoMo is {A, B, C}, and the allowed receiving set corresponding to Lucky is {B, C, D}, then, without further restrictions under other conditions, the allowed common receiving set is {B, C}.

[0289] Once the park's location is separated from sensitive areas, it can generate pet-related social content such as "I took a walk with Lucky for a while today." If a numerical duration is used, it will use time gradations that correspond to the actual 240 seconds, and will not generate content that exceeds the scope of evidence, such as "walked for ten minutes."

[0290] If the second owner disables Lucky's named mention permission after the content is generated but before it is actually sent, and the publishing transaction discovers that the permission version has changed before sending, then it will stop sending the original content.

[0291] If the current authorization allows anonymous joint activities, it can be reprocessed according to the independent anonymous fact rules; if it does not allow the disclosure of any information on joint activities between the parties, but the evidence of MoMo's own individual walk is still complete, then a single fact of "a walk was completed today" and a new content revision number can be established.

[0292] Conversely, if the first owner carries a mobile phone to read Lucky's NFC tag while Momo is actually at home, both owners can still complete the friend confirmation and establish a pet-friend relationship. However, the joint activity check will find that Momo and Lucky do not have the required time, location, and activity evidence, so no dynamic of the two pets meeting or walking together will be generated.

[0293] If MoMo and Lucky are in the same vehicle and there is no gait evidence, no fact of them walking together will be generated even if their locations remain close.

[0294] If one of the smart collars goes offline, causing the time to be out of sync, then we wait for later verifiable historical data or simply retain the facts of the relationship, without using the phone's NFC reading results to fill in the missing evidence of the pet's physical behavior.

[0295] The server can provide interfaces for sensor access, tag parsing, authentication challenge, friend request, friend confirmation, usage permission change, activity comparison, fact query, dynamic preview, publishing, retraction, behavior calibration, and audio receipt.

[0296] Each interface carries a request identifier, target object, and corresponding expected version to determine whether the current operation is still valid during concurrent requests or asynchronous returns.

[0297] For example, the three overlapping time windows are as follows: [0,30), [10,40), [20,50) Its effective union length is 50 seconds, not 90 seconds. Therefore, the cumulative time of common activities is calculated using the effective interval union length, rather than simply using the number of windows multiplied by the window length.

[0298] If the mass vector is: (0.96, 0.90, 0.95, 1, 1, 0.99) The overall quality score calculated using the aforementioned quality weights is approximately 0.968. However, if the necessary localization modality corresponding to the joint activity is removed, even if other quality dimensions are high, the joint activity facts cannot be generated due to the lack of necessary evidence.

[0299] It can also perform fault injection verification in cases such as clock restart, data delay, tag unbinding, challenge repetition, friend concurrent confirmation, pet switching, usage authorization revocation, lost delivery receipt, and delayed sound playback receipt.

[0300] The corresponding checks include at least the following: a confirmed session will not generate duplicate friend relationships; lack of necessary behavioral evidence will not generate shared walks; once a public field is deleted, the original fact that lacks supporting evidence will not be retained; after authorization is revoked, old publishing credentials will not generate new valid transmissions; repeatedly executing the same sound playback command will not generate a second actual playback.

[0301] Depending on the specific hardware conditions, the positioning unit 110 can use satellite navigation, other wireless positioning methods that can output the corresponding position, or a combination of both, and the inertial measurement unit 120 can use a six-axis or nine-axis measurement unit.

[0302] When the smart collar lacks sound, air pressure, or secure NFC capabilities, it only disables the fact-judgment branch that relies on the corresponding data or hardware capabilities; other pet social event generation processes with complete evidence support can still be executed normally.

[0303] Behavior recognition can employ rules, lightweight neural networks, or a combination of both, while pet social content generation can utilize structured templates or constrained generation models. Regardless of the alternative implementation method used, the separation of identity information from behavioral evidence, the re-verification of factual support after privacy processing, and the review of the release version are all maintained.

[0304] The above method can establish a continuous and traceable data processing relationship between the actual pet behavior collected by the smart collar, NFC near-field identity interaction, friend relationship, owner authorization, and the final social content. This avoids mistakenly using relationship information or near-field reading results as evidence of pets' joint activities, and allows for a reassessment of whether the facts still hold true after changes in participants, locations, authorization, or evidence. This ensures that the final generated and published pet social content is consistent with the corresponding pet's identity, actual behavior, and current valid authorization.

[0305] Example 2 Please see Figure 1 This embodiment provides a pet social event generation system based on multimodal perception, used to execute the pet social event generation method based on multimodal perception described in Embodiment 1.

[0306] The system includes a smart collar 100, an NFC tag 190, a mobile terminal 200, a communication node 250, and a data processing device 300. The smart collar 100 includes a positioning unit 110, an inertial measurement unit 120, a processor 160, a memory 170, and a wireless communication unit 180, and may further include a microphone 130, a barometer 140, an audio codec, and a speaker 150, depending on the actual configuration. The mobile terminal 200 includes an NFC reading unit 210 and a mobile application 220. The NFC tag 190 and the wireless communication unit 180 use independent data entry points; reading the NFC tag does not indicate that the smart collar is currently online, nor does it directly indicate that the corresponding pets are engaging in joint activities.

[0307] The data processing device 300 includes an access and timing module 310, a quality and individual perception module 320, an identity relationship module 330, an event support module 350, a shared activity module 340, a privacy projection module 360, a content generation module 370, and a publishing transaction module 380, and may further include a calibration and execution feedback module 390.

[0308] The access and time module 310 is used to receive the positioning data and inertial data collected by the smart collar 100, and determine the identity binding between the device and the pet and the corresponding collection time; the quality and individual perception module 320 is used to form behavioral evidence associated with the corresponding pet based on the positioning data and inertial data.

[0309] The identity relationship module 330 is used to process NFC near-field interaction, friend confirmation and permission based on purpose, determine comparable participants, and establish the association between participants and corresponding behavioral evidence.

[0310] The event support module 350 is used to establish an event support structure based on the comparable participants and corresponding behavioral evidence, and to determine the necessary evidence corresponding to different social facts; the joint activity module 340 is used to check the necessary evidence corresponding to the joint activity facts based on the event support structure and the behavioral evidence of each participating pet, and to form joint activity candidate events that meet the conditions.

[0311] The privacy projection module 360 ​​is used to perform sensitive location isolation and participant permission processing on candidate events, and when the participating pet, location or evidence field is removed or invalidated, it re-examines the necessary evidence of social facts along the event support structure, thereby forming desensitized content generation input.

[0312] The content generation module 370 is used to generate pet social content based on the desensitized content generation input; the publishing transaction module 380 is used to bind the pet social content with the identity binding version, evidence revision number and authorization version of the participating pet, and to perform version verification during the submission and subsequent sending process.

[0313] The calibration and execution feedback module 390 is used to process master calibration, evidence revision, authorization revocation and sound playback execution feedback. Its specific processing method is the same as that in Embodiment 1, and will not be repeated here.

[0314] The modules described above work together to sequentially convert location data and inertial data into behavioral evidence, comparable participants, event support relationships, candidate events, anonymized content input, and pet social content. The specific data processing procedures for each module and the processing relationships between them are as described in Example 1, and will not be repeated here.

[0315] Example 3 This embodiment provides a computer-readable storage medium storing a computer program thereon. When the computer program is executed by a processor, it implements the pet social event generation method based on multimodal perception as described in Embodiment 1.

[0316] Specifically, when the computer program is executed by the processor, it is used to receive location data and inertial data corresponding to the pet and form behavioral evidence; process near-field interaction, friend confirmation and usage-based permissions to determine comparable participants; establish an event support structure based on the participants and their corresponding behavioral evidence; check the necessary evidence corresponding to individual behavioral facts or joint activity facts based on the event support structure and form candidate events; perform privacy and authorization processing on the candidate events, and re-examine the fact support relationship when relevant fields are removed or invalidated; generate pet social content based on facts that are still valid after re-examination and comply with authorization, and verify the corresponding identity, evidence and authorization version.

[0317] The time correction, window division, behavioral evidence formation, joint activity judgment, event support establishment, privacy projection, content generation, publication control, and reprocessing after authorization revocation are all the same as in Example 1, and will not be repeated here.

[0318] The computer-readable storage medium can be disposed in a data processing device having a processor and a memory. When the computer program is executed by the processor, the data processing device performs the method described in Embodiment 1, thereby realizing continuous data processing from pet sensor data access to pet social content generation and publishing control.

[0319] It should be noted that the method of this embodiment can be executed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario, where multiple devices cooperate to complete the task. In such a distributed scenario, one of these devices may execute only one or more steps of the method of this embodiment, and the multiple devices will interact with each other to complete the method described.

Claims

1. A method for generating pet social events based on multimodal perception, characterized in that, The method includes the following steps: S100: Receive positioning data and inertial data with device identification and collection time, verify the identity binding between the device and the pet, and form behavioral evidence associated with the corresponding pet based on the positioning data and inertial data; S200, Process near-field interaction, friend confirmation and permission based on purpose, determine comparable participants, and associate the behavioral evidence with the corresponding participants. The near-field reading or relationship confirmation record is used to determine the interaction object or relationship status, and does not replace the sensor evidence representing the pet's joint activities. S300. Based on the comparable participants and their corresponding behavioral evidence, establish an event support structure to save the participating pet set, fact type, required evidence type and corresponding evidence reference for the social fact to be expressed, so as to establish the support relationship between the social fact and identity, behavioral evidence and authorization conditions. S400. According to the event support structure, check the necessary evidence corresponding to the social facts. For joint activity facts, generate a joint activity candidate event when each participating pet has valid data processing authorization and the corresponding behavioral evidence meets the necessary evidence conditions. For individual behavioral facts, generate an individual candidate event when the behavioral evidence of the corresponding pet meets the necessary evidence conditions. S500: Sensitive location isolation and participant permission intersection are performed on the candidate events to form an external field set; when the location, participating pet, or evidence field is removed or becomes invalid, the necessary evidence for social facts is re-examined along the event support structure, and only social facts that are still supported by evidence and comply with authorization are retained; social facts that no longer meet the corresponding necessary evidence conditions are deleted; when the remaining valid evidence can fully support other fact types, the corresponding fact type and its evidence relationship are newly created based on the remaining valid evidence, and the desensitized content generation input is formed; S600: Generate pet social content based on the desensitized content.

2. The pet social event generation method based on multimodal perception according to claim 1, characterized in that, S100 includes: S101. Obtain the time anchor point between the smart collar's monotonic clock and the reference clock. Fit the clock ratio and time offset based on multiple time anchor points to obtain: in, Indicates a monotonic clock on the collar. Indicates the reference collection time. Indicates clock ratio, Indicates time offset; S102, the acquisition time of positioning data and inertial data is corrected according to the clock ratio and time offset, and the time uncertainty of the corresponding data is determined according to the fitting residual and communication delay; S103, the positioning data and inertial data are mapped to the corresponding time window according to the corrected acquisition time, and the effective time intersection is determined after deducting the corresponding time uncertainty boundary in the effective data interval of different pets, so that the time window and the effective time intersection can be used for behavioral evidence inspection of the facts of joint activities; when the device restarts or there is a lack of effective time anchor points, it is prohibited to splice joint activity events across startup generations.

3. The pet social event generation method based on multimodal perception according to claim 2, characterized in that, The S100 further includes: S104. Behavioral evidence is formed based on the valid acquisition window corresponding to the positioning data and inertial data. The behavioral evidence stores the device identifier, start identifier, acquisition sequence number, sensor type, source type and payload summary. S105. Determine the quality quantity based on the effective acquisition window. The quality quantity includes completeness, freshness, time synchronization degree, positioning accuracy, required modal coverage and non-abnormal ratio. S106. Determine the corresponding required modalities and hard thresholds based on the fact type of the social fact to be expressed, and judge the validity of each required modality based on the quality quantity; when a required modality is missing or expires, do not replace the required evidence of the fact with a high score in other quality dimensions. Among them, near-field interaction, owner confirmation, mobile phone location and collar collection have different source types, and only the collar's valid collection window or the behavior media that has been independently verified can serve as direct evidence of the corresponding physical activity facts.

4. The pet social event generation method based on multimodal perception according to claim 1, characterized in that, S200 includes: S201. The mobile terminal reads the opaque reference in the NFC tag of the target pet's collar. The server parses the valid tag, device, and pet binding relationship based on the opaque reference and determines the target pet. S202, create a near-field interaction session based on the current pet that initiated the account management and the target pet. The near-field interaction session saves the session identifier, initiating subject, target subject, identity binding version, expiration time and status. S203. When the near-field interaction session is valid, establish a friend relationship between the current pet and the target pet based on the confirmation record initiated by the first owner and accepted by the second owner, and store the permissions for displaying business cards, processing data of joint activities, mentioning participants, receiving dynamic messages and communicating messages respectively. S204. Determine comparable participants based on the friend relationship and shared activity data processing permissions, and read the behavioral evidence corresponding to each participant according to the identity binding relationship. The establishment of a friend relationship does not automatically enable real-time location sharing or shared activity data processing, and near-field interaction is only used to limit the comparison objects.

5. The pet social event generation method based on multimodal perception according to claim 1, characterized in that, The S300 includes: S301. Based on the comparable participants and the behavioral evidence corresponding to each participant, determine the set of participating pets and the type of fact for the social fact to be expressed; S302. Determine one or more sets of necessary evidence according to the fact type, and save the evidence references corresponding to each necessary evidence to form an event support structure. The social facts in the event support structure are dependent on at least one of pet identity, sensor window, relationship confirmation and use authorization. S303. Perform identity, time, quality, and permission checks on the required evidence set, and determine that the social fact is established only when at least one complete required evidence set meets the corresponding conditions; for multiple alternative required evidence sets, do not select partial evidence from multiple incomplete required evidence sets to construct undefined alternative evidence.

6. The pet social event generation method based on multimodal perception according to claim 5, characterized in that, The S400 includes: S401. Read the valid behavioral evidence of each participating pet corresponding to the facts of the joint activity, and determine the valid time intersection based on the valid data intervals corresponding to each participating pet. S402. Within the effective time intersection, determine the spatial nearest neighbor status based on the location and positioning accuracy radius of each participating pet, and determine the movement speed and movement direction based on the positioning data. S403. Determine the corresponding gait or activity state based on the inertial data of each participating pet, and check the consistency between the gait or activity state and the spatial proximity state, movement speed and movement direction. S404. When the effective time intersection, spatial proximity state, and activity evidence of each participating pet continuously meet the necessary evidence conditions corresponding to the fact of joint activity, a candidate event of joint walking or joint exercise is formed; when there is only location overlap, vehicle displacement, or lack of effective activity evidence of participating pets, the candidate event of joint walking or joint exercise is not formed.

7. The pet social event generation method based on multimodal perception according to claim 5, characterized in that, The S500 includes: S501. Perform sensitive location isolation and participant permission intersection on the candidate events, and determine the participating pets, locations and evidence fields that can be provided externally based on the processing results, forming an external field set; S502. When the pet, location, or evidence field is removed or becomes invalid, the required evidence expression for the corresponding social fact is re-examined along the event support structure. S503. When the facts of a joint activity no longer meet the corresponding necessary evidentiary conditions due to the removal of participating pets, the original facts of the joint activity are not retained by simply deleting the names of the participating pets; when the remaining pets have complete individual behavioral evidence, individual facts and their evidentiary relationships are newly established based on the individual behavioral evidence. S504. When the location field is removed or becomes invalid, delete the fact that the location is a necessary condition; for behavioral facts with independent and complete behavioral evidence, retain them after re-examining the corresponding necessary evidence expression, and generate desensitized content input based on the facts that are still valid after re-examination.

8. The method for generating pet social events based on multimodal perception according to claim 1, characterized in that, The S600 includes: S601. Provide the desensitized content generation input to the content generation module. The desensitized content generation input includes facts that support inspection, authorized aliases, classification indicators and expression templates. Generate pet social content based on the desensitized content generation input. S602. Bind the content summary of the pet social content with the identity binding version, evidence revision number and authorization version of the participating pet to form a publishing credential, and review the content summary and corresponding version when submitting the publishing; S603. Maintain a reverse index from identity, relationship, evidence, and permission versions to candidate events, pending records, and public content; when any corresponding version becomes invalid, determine the affected object based on the reverse index, stop sending the corresponding old publishing credentials, and re-determine the publishable facts or rebuild the allowed fields based on the current valid permissions.

9. A pet social event generation system based on multimodal perception, characterized in that, Includes smart collars, NFC tags, mobile terminals, communication nodes, and data processing devices; The smart collar includes a positioning unit, an inertial measurement unit, a processor, a memory, and a wireless communication unit; the mobile terminal includes an NFC reading unit. The data processing device includes an access and time module, a quality and individual perception module, an identity relationship module, an event support module, a shared activity module, a privacy projection module, a content generation module, and a publishing transaction module. The access and time module is used to receive positioning data and inertial data, and to determine the identity binding between the device and the pet and the collection time; The quality and individual perception module is used to form behavioral evidence associated with the corresponding pet based on the positioning data and inertial data; The identity relationship module is used to process near-field interaction, friend confirmation, and permission based on purpose, to determine comparable participants, and to establish the association between participants and corresponding behavioral evidence. The event support module is used to establish an event support structure based on the comparable participants and corresponding behavioral evidence, and to establish a support relationship between social facts and corresponding necessary evidence. The joint activity module is used to check the necessary evidence corresponding to the joint activity facts based on the behavioral evidence and event support structure, and generate joint activity candidate events that meet the corresponding evidence conditions. The privacy projection module is used to isolate sensitive locations and process participant permissions for candidate events. When the pet, location, or evidence fields are removed or invalidated, the necessary evidence of social facts is re-examined along the event support structure to form desensitized content generation input. The content generation module is used to generate pet social content based on the desensitized content input. The publishing module is used to bind the pet social content with identity, evidence, and authorized version, and to review it when submitting for publication.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the pet social event generation method based on multimodal perception as described in any one of claims 1 to 8.