{"id":"independent_paa_distance","title":"Independent-channel paa block means distance","family":"feature-based","definition":"reference","intro_en":"Extract paa block means separately in each of two channels, compute one Euclidean distance per channel, then take their arithmetic mean. The displayed input concatenates channels only for visualization; the computation preserves channel boundaries and has no cross-channel dependence term.","intro_zh":"分别从两个通道提取PAA 分段均值，各自计算一个欧氏距离，再取算术平均。图中的输入仅为展示而按通道拼接；计算始终保留通道边界，不包含跨通道依赖项。","steps_en":["Keep corresponding channel identities and units aligned.","Extract paa block means independently from each channel.","Compute the Euclidean feature distance inside each channel.","Average the two channel distances with equal weights."],"steps_zh":["保持对应通道身份与单位一致。","逐通道独立提取PAA 分段均值。","分别计算每个通道内部的欧氏特征距离。","对两个通道距离等权平均。"],"animation_steps_en":["Keep the two channel identities aligned; display them consecutively.","Extract four consecutive block means separately in each channel.","Compute one Euclidean PAA-vector distance per channel.","Average the two distances; cross-channel dependence is not measured."],"formula":"d(X,Y) = mean_c ||phi(X[:,c])-phi(Y[:,c])||_2","caveats_en":["The displayed Euclidean feature distance is unscaled; the usual length-scaled PAA lower bound additionally multiplies it by sqrt(n/w).","Short events within a block can cancel, and moving a block boundary can alter the representation.","A metric on these feature vectors can be only a pseudometric on the original series when the representation loses information.","Averaging independent channel distances cannot detect cross-channel timing or dependence changes that preserve each marginal descriptor."],"caveats_zh":["图中欧氏特征距离未经长度缩放；常用 PAA 下界还需乘以 sqrt(n/w)。","区间内的短暂事件可能互相抵消，改变分段边界也会改变表示。","当表示损失信息时，特征空间中的度量在原序列空间上可能只是伪度量。","独立通道距离的平均无法识别保持各通道边缘描述不变的跨通道时序或依赖变化。"],"sources":[{"label":"tslearn: piecewise aggregate approximation","url":"https://tslearn.readthedocs.io/en/stable/gen_modules/piecewise/tslearn.piecewise.PiecewiseAggregateApproximation.html"},{"label":"Imported registry: named feature and comparison conventions","url":"https://github.com/ZipengWu365/EchoTime/blob/main/src/echotime/data/ts_similarity_package_v2_registry.csv"},{"label":"Exact illustrative inputs and encoder definitions","url":"https://github.com/ZipengWu365/EchoTime/blob/main/tools/method_animation_data/feature_model_embedding.py"}],"x":[0.0,0.8769216919004693,0.8094744111674236,0.7863961030678929,0.3905255888325767,-0.5769216919004693,-0.6000000000000001,-0.09587051423531628,0.2094744111674235,1.0863961030678926,1.5905255888325764,0.9958705142353173,0.6000000000000002,0.20412948576468337,-0.39052558883257615,0.11360389693210537,0.4,0.15360679774997898,-0.26360679774997897,-0.23360679774997903,0.2436067977499789,0.55,0.3036067977499791,-0.11360679774997892,-0.08360679774997909,0.3936067977499788,0.7,0.4536067977499798,0.03639320225002113,0.06639320225002088,0.5436067977499787,0.85],"y":[-0.2003300858899106,0.185,0.5703300858899106,1.005,1.0003300858899107,0.3250000000000002,-0.35033008588991066,-0.3550000000000001,0.07966991411008931,0.46499999999999997,0.8503300858899105,1.2849999999999995,1.2803300858899114,0.6050000000000002,-0.07033008588991083,-0.07500000000000043,0.45263659640173104,-0.13144121120883534,-0.6444290133512534,-0.34975578305380517,0.3729894112121631,0.552636596401731,-0.03144121120883547,-0.5444290133512534,-0.2497557830538053,0.472989411212163,0.652636596401731,0.06855878879116573,-0.4444290133512534,-0.1497557830538063,0.5729894112121622,0.7526365964017315],"input_label":"Two synthetic channels shown consecutively (samples 0–15 and 16–31)","parameters":{"n_segments":4,"block_size":4,"z_normalization":false,"distance_length_scaling":false,"channels":2,"channel_weights":[0.5,0.5],"raw_X":[[0.0,0.4],[0.8769216919004693,0.15360679774997898],[0.8094744111674236,-0.26360679774997897],[0.7863961030678929,-0.23360679774997903],[0.3905255888325767,0.2436067977499789],[-0.5769216919004693,0.55],[-0.6000000000000001,0.3036067977499791],[-0.09587051423531628,-0.11360679774997892],[0.2094744111674235,-0.08360679774997909],[1.0863961030678926,0.3936067977499788],[1.5905255888325764,0.7],[0.9958705142353173,0.4536067977499798],[0.6000000000000002,0.03639320225002113],[0.20412948576468337,0.06639320225002088],[-0.39052558883257615,0.5436067977499787],[0.11360389693210537,0.85]],"raw_Y":[[-0.2003300858899106,0.45263659640173104],[0.185,-0.13144121120883534],[0.5703300858899106,-0.6444290133512534],[1.005,-0.34975578305380517],[1.0003300858899107,0.3729894112121631],[0.3250000000000002,0.552636596401731],[-0.35033008588991066,-0.03144121120883547],[-0.3550000000000001,-0.5444290133512534],[0.07966991411008931,-0.2497557830538053],[0.46499999999999997,0.472989411212163],[0.8503300858899105,0.652636596401731],[1.2849999999999995,0.06855878879116573],[1.2803300858899114,-0.4444290133512534],[0.6050000000000002,-0.1497557830538063],[-0.07033008588991083,0.5729894112121622],[-0.07500000000000043,0.7526365964017315]],"display_layout":"channel-major flattening only"},"result":{"label":"distance","value":0.47351383627529686,"detail":"Channel distances 0.61269408 and 0.33433359; arithmetic mean."},"frames":[{"phase":0,"caption":"Channel 1: extract the same paa descriptor independently.","panel":{"kind":"bars","title":"Channel 1: PAA block means","a":[0.6181980515339465],"a_label":"x features","b":[0.39],"b_label":"y features","labels":["block 1"],"marker":0},"input_highlight":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]},{"phase":0,"caption":"Channel 1: extract the same paa descriptor independently.","panel":{"kind":"bars","title":"Channel 1: PAA block means","a":[0.6181980515339465,-0.22056665432580225],"a_label":"x features","b":[0.39,0.15500000000000003],"b_label":"y features","labels":["block 1","block 2"],"marker":1},"input_highlight":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]},{"phase":0,"caption":"Channel 1: extract the same paa descriptor independently.","panel":{"kind":"bars","title":"Channel 1: PAA block means","a":[0.6181980515339465,-0.22056665432580225,0.9705666543258025],"a_label":"x features","b":[0.39,0.15500000000000003,0.6699999999999998],"b_label":"y features","labels":["block 1","block 2","block 3"],"marker":2},"input_highlight":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]},{"phase":0,"caption":"Channel 1: extract the same paa descriptor independently.","panel":{"kind":"bars","title":"Channel 1: PAA block means","a":[0.6181980515339465,-0.22056665432580225,0.9705666543258025,0.1318019484660532],"a_label":"x features","b":[0.39,0.15500000000000003,0.6699999999999998,0.4350000000000001],"b_label":"y features","labels":["block 1","block 2","block 3","block 4"],"marker":3},"input_highlight":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]},{"phase":1,"caption":"Channel 1: compute its own Euclidean feature distance.","panel":{"kind":"bars","title":"Channel 1 squared feature differences","a":[0.05207435072388968],"a_label":"contributions","labels":["block 1"],"marker":0},"value":0.22819805153394646,"value_label":"channel 1 distance"},{"phase":1,"caption":"Channel 1: compute its own Euclidean feature distance.","panel":{"kind":"bars","title":"Channel 1 squared feature differences","a":[0.05207435072388968,0.14105031184147665],"a_label":"contributions","labels":["block 1","block 2"],"marker":1},"value":0.43945951186129345,"value_label":"channel 1 distance"},{"phase":1,"caption":"Channel 1: compute its own Euclidean feature distance.","panel":{"kind":"bars","title":"Channel 1 squared feature differences","a":[0.05207435072388968,0.14105031184147665,0.09034031369260655],"a_label":"contributions","labels":["block 1","block 2","block 3"],"marker":2},"value":0.5324142900580082,"value_label":"channel 1 distance"},{"phase":1,"caption":"Channel 1: compute its own Euclidean feature distance.","panel":{"kind":"bars","title":"Channel 1 squared feature differences","a":[0.05207435072388968,0.14105031184147665,0.09034031369260655,0.09192905845398193],"a_label":"contributions","labels":["block 1","block 2","block 3","block 4"],"marker":3},"value":0.6126940792205804,"value_label":"channel 1 distance"},{"phase":1,"caption":"Channel 2: extract the same paa descriptor independently.","panel":{"kind":"bars","title":"Channel 2: PAA block means","a":[0.014098300562505252],"a_label":"x features","b":[-0.1682473528030407],"b_label":"y features","labels":["block 1"],"marker":0},"input_highlight":[16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]},{"phase":1,"caption":"Channel 2: extract the same paa descriptor independently.","panel":{"kind":"bars","title":"Channel 2: PAA block means","a":[0.014098300562505252,0.24590169943749482],"a_label":"x features","b":[-0.1682473528030407,0.08743894576345132],"b_label":"y features","labels":["block 1","block 2"],"marker":1},"input_highlight":[16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]},{"phase":1,"caption":"Channel 2: extract the same paa descriptor independently.","panel":{"kind":"bars","title":"Channel 2: PAA block means","a":[0.014098300562505252,0.24590169943749482,0.3659016994374949],"a_label":"x features","b":[-0.1682473528030407,0.08743894576345132,0.2361072533378136],"b_label":"y features","labels":["block 1","block 2","block 3"],"marker":2},"input_highlight":[16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]},{"phase":1,"caption":"Channel 2: extract the same paa descriptor independently.","panel":{"kind":"bars","title":"Channel 2: PAA block means","a":[0.014098300562505252,0.24590169943749482,0.3659016994374949,0.37409830056250515],"a_label":"x features","b":[-0.1682473528030407,0.08743894576345132,0.2361072533378136,0.1828603028022085],"b_label":"y features","labels":["block 1","block 2","block 3","block 4"],"marker":3},"input_highlight":[16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]},{"phase":2,"caption":"Channel 2: compute its own Euclidean feature distance.","panel":{"kind":"bars","title":"Channel 2 squared feature differences","a":[0.03324993730130784],"a_label":"contributions","labels":["block 1"],"marker":0},"value":0.18234565336554595,"value_label":"channel 2 distance"},{"phase":2,"caption":"Channel 2: compute its own Euclidean feature distance.","panel":{"kind":"bars","title":"Channel 2 squared feature differences","a":[0.03324993730130784,0.025110444301960588],"a_label":"contributions","labels":["block 1","block 2"],"marker":1},"value":0.24157893451886162,"value_label":"channel 2 distance"},{"phase":2,"caption":"Channel 2: compute its own Euclidean feature distance.","panel":{"kind":"bars","title":"Channel 2 squared feature differences","a":[0.03324993730130784,0.025110444301960588,0.016846598238323074],"a_label":"contributions","labels":["block 1","block 2","block 3"],"marker":2},"value":0.274238910152428,"value_label":"channel 2 distance"},{"phase":2,"caption":"Channel 2: compute its own Euclidean feature distance.","panel":{"kind":"bars","title":"Channel 2 squared feature differences","a":[0.03324993730130784,0.025110444301960588,0.016846598238323074,0.03657197178736723],"a_label":"contributions","labels":["block 1","block 2","block 3","block 4"],"marker":3},"value":0.33433359333001333,"value_label":"channel 2 distance"},{"phase":3,"caption":"Average the two completed channel distances; no cross-channel terms are added.","panel":{"kind":"bars","title":"Independent channel distances","a":[0.6126940792205804,0.33433359333001333],"a_label":"channel distance","labels":["channel 1","channel 2"],"marker":0},"value":0.47351383627529686,"value_label":"mean channel distance"},{"phase":3,"caption":"Average the two completed channel distances; no cross-channel terms are added.","panel":{"kind":"bars","title":"Independent channel distances","a":[0.6126940792205804,0.33433359333001333],"a_label":"channel distance","labels":["channel 1","channel 2"],"marker":1},"value":0.47351383627529686,"value_label":"mean channel distance"},{"phase":3,"caption":"Average the two completed channel distances; no cross-channel terms are added.","panel":{"kind":"bars","title":"Independent channel distances","a":[0.6126940792205804,0.33433359333001333],"a_label":"channel distance","labels":["channel 1","channel 2"],"marker":0},"value":0.47351383627529686,"value_label":"mean channel distance"},{"phase":3,"caption":"Average the two completed channel distances; no cross-channel terms are added.","panel":{"kind":"bars","title":"Independent channel distances","a":[0.6126940792205804,0.33433359333001333],"a_label":"channel distance","labels":["channel 1","channel 2"],"marker":1},"value":0.47351383627529686,"value_label":"mean channel distance"}],"input_breaks":[16],"echotime_status":"Possible addition","echotime_api":""}
